public function testGenerateLocationHeader() { $response = new RedirectResponse('foo.bar'); $this ->assertTrue($response->headers ->has('Location')); $this ->assertEquals('foo.bar', $response->headers ->get('Location')); }