public function CachingStreamTest::testClosesBothStreams in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/CachingStreamTest.php \GuzzleHttp\Tests\Psr7\CachingStreamTest::testClosesBothStreams()
File
- vendor/
guzzlehttp/ psr7/ tests/ CachingStreamTest.php, line 150
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testClosesBothStreams() {
$s = fopen('php://temp', 'r');
$a = Psr7\stream_for($s);
$d = new CachingStream($a);
$d
->close();
$this
->assertFalse(is_resource($s));
}