Exemplo n.º 1
0
 function testStatuses()
 {
     $resp = new Response();
     $resp->setStatus(100);
     $this->assertTrue($resp->isInformational());
     $resp->setStatus(200);
     $this->assertTrue($resp->isOk());
     $this->assertTrue($resp->isSuccess());
     $resp->setStatus(300);
     $this->assertTrue($resp->isRedirection());
     $resp->setStatus(400);
     $this->assertTrue($resp->isClientError());
     $resp->setStatus(500);
     $this->assertTrue($resp->isServerError());
 }