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