Exemple #1
0
 public function testRedirect()
 {
     $url = 'http://google.com/';
     $code = 302;
     $response = new Response();
     $response->redirect($url, $code);
     $this->assertSame($code, $response->code());
     $this->assertSame($url, $response->headers()->get('location'));
     $this->assertTrue($response->isLocked());
 }