コード例 #1
0
 public function testIsEmpty()
 {
     $r1 = new \Slim\Http\Response();
     $r2 = new \Slim\Http\Response();
     $r1->setStatus(404);
     $r2->setStatus(201);
     $this->assertFalse($r1->isEmpty());
     $this->assertTrue($r2->isEmpty());
 }