public function testSetAndGetMessage() { $r = new Response(200, array('Content-Type' => 'text/plain')); $r->setMessage('OK'); $this->assertEquals('OK', $r->getMessage()); $this->assertEquals('OK', Response::getMessageFromCode(200)); }