コード例 #1
0
ファイル: DirectoryIterator.php プロジェクト: blar/filesystem
 public function next()
 {
     do {
         $this->current = readdir($this->handle);
     } while ($this->isDotFile($this->current));
     if ($this->valid()) {
         $this->key++;
         $this->current = Item::factory($this->path . '/' . $this->current);
     }
 }
コード例 #2
0
ファイル: FileTest.php プロジェクト: blar/filesystem
 /**
  * @expectedException RuntimeException
  */
 public function testFactory()
 {
     Item::factory('foobar');
 }