function StreamCapturer::filter
Same name in other branches
- 9 core/tests/Drupal/Tests/StreamCapturer.php \Drupal\Tests\StreamCapturer::filter()
- 10 core/tests/Drupal/Tests/StreamCapturer.php \Drupal\Tests\StreamCapturer::filter()
File
-
core/
tests/ Drupal/ Tests/ StreamCapturer.php, line 19
Class
- StreamCapturer
- Captures output to a stream and stores it for retrieval.
Namespace
Drupal\TestsCode
public function filter($in, $out, &$consumed, $closing) : int {
while ($bucket = stream_bucket_make_writeable($in)) {
self::$cache .= $bucket->data;
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
}
return PSFS_FEED_ME;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.