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

testConvertToString() public method

public testConvertToString ( )
    public function testConvertToString()
    {
        $request = new Request(array('env' => array('HTTP_HOST' => 'foo.com', 'HTTPS' => 'on', 'CONTENT_TYPE' => 'text/html', 'HTTP_CUSTOM_HEADER' => 'foobar'), 'base' => '/the/base/path', 'url' => '/posts', 'query' => array('some' => 'query', 'parameter' => 'values')));
        $expected = join("\r\n", array('GET /the/base/path/posts?some=query&parameter=values HTTP/1.1', 'Host: foo.com', 'Connection: Close', 'User-Agent: Mozilla/5.0', 'Content-Type: text/html', 'Custom-Header: foobar', '', ''));
        $this->assertEqual($expected, $request->to('string'));
    }
RequestTest