public function StreamTest::testStreamClosesHandleOnDestruct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/StreamTest.php \GuzzleHttp\Tests\Psr7\StreamTest::testStreamClosesHandleOnDestruct()
File
- vendor/
guzzlehttp/ psr7/ tests/ StreamTest.php, line 35
Class
- StreamTest
- @covers GuzzleHttp\Psr7\Stream
Namespace
GuzzleHttp\Tests\Psr7Code
public function testStreamClosesHandleOnDestruct() {
$handle = fopen('php://temp', 'r');
$stream = new Stream($handle);
unset($stream);
$this
->assertFalse(is_resource($handle));
}