16 private static $_collectedData =
'';
30 public function filter($in, $out, &$consumed, $closing)
32 while ($bucket = stream_bucket_make_writeable($in)) {
33 self::$_collectedData .= $bucket->data;
34 $consumed += $bucket->datalen;
35 stream_bucket_append($out, $bucket);
42 self::$_collectedData =
'';
52 \PHPUnit\Framework\Assert::assertStringMatchesFormat(
54 self::$_collectedData,
55 'Expected data went through the stream.' static assertCollectedData($expectedData)
static resetCollectedData()
filter($in, $out, &$consumed, $closing)