lithium\tests\cases\net\http\RouterTest::testMatchWithAbsoluteAndPrefixedAttachmentUsingBasedRequest PHP Метод

testMatchWithAbsoluteAndPrefixedAttachmentUsingBasedRequest() публичный Метод

    public function testMatchWithAbsoluteAndPrefixedAttachmentUsingBasedRequest()
    {
        $request = new Request(array('base' => '/requestbase'));
        Router::attach('app', array('absolute' => true, 'host' => 'app.mysite.com', 'scheme' => 'http', 'prefix' => 'prefix'));
        $result = Router::match('/controller/action/hello', $request, array('scope' => 'app'));
        $expected = 'http://app.mysite.com/requestbase/prefix/controller/action/hello';
        $this->assertIdentical($expected, $result);
    }
RouterTest