public function FunctionsTest::testCopiesToStringStopsWhenReadFails in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testCopiesToStringStopsWhenReadFails()
File
- vendor/
guzzlehttp/ psr7/ tests/ FunctionsTest.php, line 20
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testCopiesToStringStopsWhenReadFails() {
$s1 = Psr7\stream_for('foobaz');
$s1 = FnStream::decorate($s1, [
'read' => function () {
return '';
},
]);
$result = Psr7\copy_to_string($s1);
$this
->assertEquals('', $result);
}