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);
     }
 }
Exemple #2
0
 /**
  * @expectedException RuntimeException
  */
 public function testFactory()
 {
     Item::factory('foobar');
 }