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

testResettingRoutes() public method

Tests that routing is fully reset when calling Router::reset().
public testResettingRoutes ( )
    public function testResettingRoutes()
    {
        Router::connect('/{:controller}', array('controller' => 'Posts'));
        $this->request->url = '/hello';
        $expected = array('controller' => 'Hello', 'action' => 'index');
        $result = Router::parse($this->request);
        $this->assertEqual($expected, $result->params);
        Router::reset();
        $this->assertNull(Router::parse($this->request));
    }
RouterTest