예제 #1
0
 public function testRedirect()
 {
     $r = new respuesta_rest();
     $r->redirect('hola');
     $this->assertArrayHasKey('Location', $r->headers);
     $this->assertEquals($r->headers['Location'], 'hola');
 }