public function testGetNav() { $_SERVER['REQUEST_URI'] = '/first'; $tree = array(array('name' => 'First Nav Item', 'href' => '/first'), array('name' => 'Second Nav Item', 'href' => '/second')); $n = new Nav($tree); $this->assertInstanceOf('Pop\\Dom\\Child', $n->nav()); }