public function testOffsetPositionMovesPointerCorrectly() { $file = new File('/file'); $file->setData('data'); $handler = new FileHandler(); $handler->setFile($file); $handler->offsetPosition(2); $this->assertEquals(2, $handler->position()); $handler->offsetPosition(2); $this->assertEquals(4, $handler->position()); }
/** * Resets directory iterator */ public function dir_rewinddir() { $this->currently_opened->iterator()->rewind(); }