Ejemplo n.º 1
0
 public function testIsRedirect()
 {
     $r1 = new \Slim\Http\Response();
     $r2 = new \Slim\Http\Response();
     $r1->setStatus(307);
     $r2->setStatus(304);
     $this->assertTrue($r1->isRedirect());
     $this->assertFalse($r2->isRedirect());
 }