PopTest\Nav\NavTest::testGetNav PHP 메소드

testGetNav() 공개 메소드

public testGetNav ( )
    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());
    }