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

testMatchWithAbsoluteScope() public method

    public function testMatchWithAbsoluteScope()
    {
        Router::attach('app', array('absolute' => true, 'host' => '{:domain}'));
        Router::scope('app', function () {
            Router::connect('/hello', 'Posts::index');
        });
        $request = new Request(array('url' => '/hello', 'base' => ''));
        $result = Router::process($request);
        $expected = 'http://' . $result->params['domain'] . '/hello';
        $result = Router::match($result->params, $request);
        $this->assertEqual($expected, $result);
    }
RouterTest