lithium\tests\cases\action\RequestTest::testConvertToUrl2 PHP Method

testConvertToUrl2() public method

public testConvertToUrl2 ( )
    public function testConvertToUrl2()
    {
        $request = new Request(array('env' => array('HTTP_HOST' => 'foo.com', 'HTTPS' => 'on'), 'base' => '/the/base/path', 'url' => '/posts', 'params' => array('controller' => 'posts', 'action' => 'index'), 'query' => array('some' => 'query', 'parameter' => 'values')));
        $expected = 'https://foo.com/the/base/path/posts?some=query&parameter=values';
        $this->assertEqual($expected, $request->to('url'));
    }
RequestTest