Extends
lithium\test\UnitSource
public function testReadWithModel() {
$http = new Http($this->_testConfig);
$query = new Query(array('model' => $this->_model));
$result = $http->read($query);
$expected = join("\r\n", array(
'GET /posts HTTP/1.1',
'Host: localhost:80',
'Connection: Close',
'User-Agent: Mozilla/5.0',
'', ''
));
$result = (string) $http->last->request;
$this->assertEqual($expected, $result);
}