Exemple #1
0
 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));
 }