Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
 /**
  * Resets directory iterator
  */
 public function dir_rewinddir()
 {
     $this->currently_opened->iterator()->rewind();
 }