コード例 #1
0
 /**
  * Test isServerError
  */
 public function testIsServerError()
 {
     $r1 = new Slim_Http_Response();
     $r2 = new Slim_Http_Response();
     $r1->status(500);
     $r2->status(400);
     $this->assertTrue($r1->isServerError());
     $this->assertFalse($r2->isServerError());
 }