public function set_body($body)
{
$this->request_body = $body;
return $this;
}
public function testExceptionGet() { $httpCore = null; $exception = false; try { $httpCore = new RequestCore("http://www.notexistsitexx.com"); $httpCore->set_body(""); $httpCore->set_method("GET"); $httpCore->connect_timeout = 10; $httpCore->timeout = 10; $res = $httpCore->send_request(); } catch (RequestCore_Exception $e) { $exception = true; } $this->assertTrue($exception); }