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