public function testEof() { $someFile = vfsStream::newFile('multiline2.txt', 0777); $this->root->addChild($someFile); $someFile->setContent("LINE1" . PHP_EOL . "LINE2" . PHP_EOL . "LINE3"); $file = new File($someFile->url()); $file->open('r'); $this->assertFalse($file->eof()); $file->readLine(); $file->readLine(); $file->readLine(); $this->assertTrue($file->eof()); }