예제 #1
0
 public function test_is_client_error()
 {
     $response = new HttpResponse();
     $this->assertFalse($response->isClientError());
     $response->setStatusCode(HttpStatusCode::NOT_FOUND);
     $this->assertTrue($response->isClientError());
 }