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

testRouteFormattersAppliedOnMatch() public method

    public function testRouteFormattersAppliedOnMatch()
    {
        Router::reset();
        Router::connect('/{:controller:lists}/{:action:add}');
        $this->assertIdentical('/lists/add', Router::match(array('controller' => 'lists', 'action' => 'add')));
        Router::connect('/lists/{:action:add}', array('controller' => 'lists'));
        $this->assertIdentical('/lists/add', Router::match(array('controller' => 'lists', 'action' => 'add')));
    }
RouterTest