You are here

public function AppendStreamTest::testClosesEachStream in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/tests/AppendStreamTest.php \GuzzleHttp\Tests\Psr7\AppendStreamTest::testClosesEachStream()

File

vendor/guzzlehttp/psr7/tests/AppendStreamTest.php, line 86

Class

AppendStreamTest

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testClosesEachStream() {
  $s1 = Psr7\stream_for('foo');
  $a = new AppendStream([
    $s1,
  ]);
  $a
    ->close();
  $this
    ->assertSame('', (string) $a);
}