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

testMatchingEmptyRoute() public method

Tests that a successful match against a route with template '/' operating at the root of a domain never returns an empty string.
    public function testMatchingEmptyRoute()
    {
        Router::connect('/', 'Users::view');
        $request = new Request(array('base' => '/'));
        $url = Router::match(array('controller' => 'users', 'action' => 'view'), $request);
        $this->assertIdentical('/', $url);
        $request = new Request(array('base' => ''));
        $url = Router::match(array('controller' => 'users', 'action' => 'view'), $request);
        $this->assertIdentical('/', $url);
    }
RouterTest