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

testMatchWithRelativeAndPrefixedAttachment() public method

    public function testMatchWithRelativeAndPrefixedAttachment()
    {
        Router::attach('tests', array('absolute' => false, 'host' => 'tests.mysite.com', 'scheme' => 'http', 'prefix' => '/prefix'));
        Router::scope('tests');
        $result = Router::match('/controller/action/hello');
        $this->assertIdentical('/prefix/controller/action/hello', $result);
    }
RouterTest