public function testEnd() { $someFile = vfsStream::newFile('multiline2.txt', 0777); $this->root->addChild($someFile); $someFile->setContent("PHPUNIT"); $file = new File($someFile->url()); $file->open('r'); $this->assertFalse($file->eof()); $file->end(); $this->assertTrue($file->eof()); }