예제 #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());
 }
예제 #2
0
파일: Wrapper.php 프로젝트: mathroc/php-vfs
 /**
  * Resets directory iterator
  */
 public function dir_rewinddir()
 {
     $this->currently_opened->iterator()->rewind();
 }