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

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

    public function testCompileScopeAbsoluteWithPrefix()
    {
        $result = Router::invokeMethod('_compileScope', array(array('absolute' => true, 'host' => 'www.hostname.com', 'scheme' => 'http', 'prefix' => 'web/tests')));
        $expected = array('absolute' => true, 'host' => 'www.hostname.com', 'scheme' => 'http', 'base' => null, 'prefix' => 'web/tests', 'pattern' => '@^http://www\\.hostname\\.com/web/tests/@', 'params' => array());
        $this->assertEqual($expected, $result);
    }
RouterTest