public function readAfterReadingAllLines() { $stream = new StringReader(new MemoryInputStream($line = 'Hello World' . "\n")); $this->assertEquals('Hello World', $stream->readLine()); $this->assertEquals(NULL, $stream->read()); }