Exemplo n.º 1
0
 public function test_is_error()
 {
     $response = new HttpResponse();
     $this->assertFalse($response->isError());
     $response->setStatusCode(HttpStatusCode::NOT_FOUND);
     $this->assertTrue($response->isError());
     $response->setStatusCode(HttpStatusCode::INTERNAL_SERVER_ERROR);
     $this->assertTrue($response->isError());
 }