public function testConvertToStringWithPost()
{
$request = new Request(array('env' => array('HTTP_HOST' => 'li3.me', 'CONTENT_TYPE' => 'application/x-www-form-urlencoded', 'HTTP_USER_AGENT' => 'Mozilla/5.0'), 'url' => '/posts', 'data' => array('some' => 'body', 'parameter' => 'values')));
$expected = join("\r\n", array('GET /posts HTTP/1.1', 'Host: li3.me', 'Connection: Close', 'User-Agent: Mozilla/5.0', 'Content-Type: application/x-www-form-urlencoded', 'Content-Length: 26', '', 'some=body¶meter=values'));
$this->assertEqual($expected, $request->to('string'));
}