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