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

testParseScopeWithAbsoluteAndPrefixAttachment() public method

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