Extends
lithium\test\UnitSource
public function testCustomPostMethod() {
$conn = Connections::get('mock-http-conn');
$result = $conn->do(array('title' => 'sup'));
$expected = join("\r\n", array(
'POST /do HTTP/1.1',
'Host: localhost:80',
'Connection: Close',
'User-Agent: Mozilla/5.0',
'Content-Type: application/x-www-form-urlencoded',
'Content-Length: 9',
'', 'title=sup'
));
$result = (string) $conn->last->request;
$this->assertEqual($expected, $result);
}