You are here

public function CachingStreamTest::testClosesBothStreams in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/psr7/tests/CachingStreamTest.php \GuzzleHttp\Tests\Psr7\CachingStreamTest::testClosesBothStreams()

File

vendor/guzzlehttp/psr7/tests/CachingStreamTest.php, line 150

Class

CachingStreamTest
@covers GuzzleHttp\Psr7\CachingStream

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testClosesBothStreams() {
  $s = fopen('php://temp', 'r');
  $a = Psr7\stream_for($s);
  $d = new CachingStream($a);
  $d
    ->close();
  $this
    ->assertFalse(is_resource($s));
}