lithium\tests\cases\net\http\RouterTest::testRouteRetrieval PHP Method

testRouteRetrieval() public method

Tests getting routes using Router::get(), and checking to see if the routes returned match the routes connected.
public testRouteRetrieval ( )
    public function testRouteRetrieval()
    {
        $expected = Router::connect('/hello', array('controller' => 'posts', 'action' => 'index'));
        $result = Router::get(0, true);
        $this->assertIdentical($expected, $result);
        list($result) = Router::get(null, true);
        $this->assertIdentical($expected, $result);
    }
RouterTest