Esempio n. 1
0
 /**
  * @dataProvider isErrorTrueValues
  */
 public function testIsError($statusCode)
 {
     $this->assertTrue(StatusCode::isError($statusCode));
 }
Esempio 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);
 }