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

testParseScopeWithRelativeAndPrefixedAttachment() public method

    public function testParseScopeWithRelativeAndPrefixedAttachment()
    {
        $request = new Request(array('host' => 'www.amiga.com', 'scheme' => 'http', 'url' => '/web'));
        Router::attach('app', array('absolute' => false, 'host' => 'www.atari.com', 'scheme' => 'http', 'prefix' => '/web'));
        $result = Router::invokeMethod('_parseScope', array('app', $request));
        $this->assertIdentical('/', $result);
    }
RouterTest