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