Exemplo n.º 1
0
 public function testNoMessage()
 {
     $this->assertFalse(StatusCode::message('asdlkj'));
 }
Exemplo n.º 2
0
 public function __toString()
 {
     return trim($this->protocol . ' ' . $this->status . ' ' . StatusCode::message($this->status) . (count($this->header) > 0 ? "\r\n" . $this->header : '') . "\r\n\r\n" . $this->body);
 }