Пример #1
0
 public function testIsServerError()
 {
     $e = new StatusCodeException('foo', 500);
     $this->assertFalse($e->isInformational());
     $this->assertFalse($e->isSuccessful());
     $this->assertFalse($e->isRedirection());
     $this->assertFalse($e->isClientError());
     $this->assertTrue($e->isServerError());
 }