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

testQueryString() public method

public testQueryString ( )
    public function testQueryString()
    {
        Router::connect('/{:controller}/{:action}');
        Router::connect('/{:controller}/{:action}/{:id:[0-9]+}', array('id' => null));
        $result = Router::match(array('Posts::edit', '?' => array('key' => 'value')));
        $this->assertIdentical('/posts/edit?key=value', $result);
        $result = Router::match(array('Posts::edit', 'id' => 42, '?' => array('key' => 'value', 'test' => 'foo')));
        $this->assertIdentical('/posts/edit/42?key=value&test=foo', $result);
    }
RouterTest