public function testCustomGetMethodWithModel() { $config = $this->_testConfig + array('methods' => array('something' => array('method' => 'get', 'path' => '/something'))); $http = new Http($config); $query = new Query(array('model' => $this->_model)); $result = $http->something($query); $expected = join("\r\n", array('GET /something HTTP/1.1', 'Host: localhost:80', 'Connection: Close', 'User-Agent: Mozilla/5.0', '', '')); $result = (string) $http->last->request; $this->assertEqual($expected, $result); }