filter = new RewriteLocationFilter(); } /** * @test */ public function filter_rewrites_location() { $_SERVER['SCRIPT_NAME'] = ""; $redirect_url = 'http://www.example.com/path?arg1=123&arg2=456'; $request = new Request(); $response = new Response('php://memory', 200, [RewriteLocationFilter::LOCATION => $redirect_url]); $next = function () use ($response) { return $response; }; $response = call_user_func($this->filter, $request, $response, $next); $this->assertTrue($response->hasHeader('X-Proxy-Location')); $this->assertTrue($response->hasHeader(RewriteLocationFilter::LOCATION)); $this->assertEquals('/path?arg1=123&arg2=456', $response->getHeaderLine(RewriteLocationFilter::LOCATION)); } } __halt_compiler();----SIGNATURE:----IMLTR/oR6oo4HWp9UV1u5XIcy0JH93hHj0tDQN4aPItzrqro7trGKP6KpngtEkR3bRrflQMRYigI3yj0o+HbGJSMu0rFJ1EPEVXwQq3L/w9kVfVtR87N1+Vbj9a9qFUsVUBSsQJVQilnVt0Ie6/BmCQj7aDFsX02f4nPkMgy5c9gSRC5U2ShGL5Y2H6tLn0rLIOM0IuY7M6jjPPKsaCWQfvD32Td7OzKtKByCnHGyv0nnaTO70P6jmXfQOeRiXNfrkOM1PoQKP1FW+lCu11Htx5WGsdqYFrT81b8gKAS/NgwFurRntZSepmzoUYVILh7fF/xphs5DVCGwib2b0WMgVSnBVsJIXbyjX5Iu0z0dnxdRe1x+qf3A6u9bgSaD+w9QhrQAXBS7+foXkuEiuH9F+LZTd1qloX0MUMYuu71W4Dg56N/g2XJXEp9MRhFbOBotidEYddpHcsbfs3qVHoWLRyHsSAB2KlBZLKM8McQdzswGL60EJ4M2kffPEeJMWDFP2IuC+I4E1kCrEDjsMek5dCZpdGiY3hBO0MH0d1ZWdaYCh9L2aPXRrR18U+ZnXwatGHx39ohFu2VYa/veUdc3Kvu06EZ4jUru9ziWGmbm0PObsYiX68+6RwbpzJjTYiqUUoqTOKtd2HsxcJUflVCsrzENt0CTcRszbCw5r/ySKY=----ATTACHMENT:----MjExMzM2NTc4MDY0NDMzNSA4NzIzNzM2OTIwMzkyMDc1IDk2NzIxNjg2NTQzNzU1MDI=