public function testObjectConstruction() { $response = new Net_Http_Response(200, array("Content-Type" => "text/plain"), "hello world"); $this->assertTrue($response->isOk()); $this->assertEquals("text/plain", $response->getHeader("Content-Type")); $this->assertEquals("hello world", $response->getBody()); }
/** * @return string */ public function getBody() { return $this->response->getBody(); }