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