public function testRewindingTwoLinesFile() { $file = new File(FILES_DIR . 'two_lines_file'); $this->assertEquals(1, $file->getCurrentLine()); $this->assertEquals(0, $file->getCurrentPos()); $file->nextChar(); $this->assertTrue($file->goBack()); $this->assertEquals(1, $file->getCurrentLine()); $this->assertEquals(0, $file->getCurrentPos()); }