/** * Verify that the end of the file can be checked. */ public function testCheckForTheEndOfTheFile() { fwrite($this->stream, 'test'); fseek($this->stream, 0); self::assertFalse($this->manager->eof(), 'The cursor should not be at the end of the file.'); fseek($this->stream, 4); self::assertTrue($this->manager->eof(), 'The cursor should be at the end of the file.'); }