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

testParseWithNotValidSchemeVariable() public method

    public function testParseWithNotValidSchemeVariable()
    {
        Router::attach('app', array('absolute' => true, 'host' => '{:subdomain:[a-z]+}.{:domain}.{:tld}', 'scheme' => '{:scheme:https}', 'prefix' => ''));
        $result = Router::attached('app', array('scheme' => 'http', 'subdomain' => 'admin', 'domain' => 'myserver', 'tld' => 'co.uk'));
        $expected = array('absolute' => true, 'host' => 'admin.myserver.co.uk', 'scheme' => '{:scheme:https}', 'base' => null, 'prefix' => '', 'pattern' => '@^(?P<scheme>https)://(?P<subdomain>[a-z]+)\\.' . '(?P<domain>[^/]+?)\\.(?P<tld>[^/]+?)/@', 'library' => 'app', 'params' => array('scheme', 'subdomain', 'domain', 'tld'), 'values' => array());
        $this->assertEqual($expected, $result);
    }
RouterTest