public static function factory(array $tree = null, array $config = array()) { return new self($tree, $config); }
public function testConstructor() { $this->assertInstanceOf('Pop\\Nav\\Nav', new Nav(array(), array())); $this->assertInstanceOf('Pop\\Nav\\Nav', Nav::factory(array(), array())); }