followMetaRefresh($followMetaRefresh); $client->setNextResponse(new Response($content)); $client->request('GET', 'http://www.example.com/foo/foobar'); $this->assertEquals($expectedEndingUrl, $client->getRequest()->getUri()); } public function getTestsForMetaRefresh() { return [ ['
', 'http://www.example.com/redirected'], ['', 'http://www.example.com/redirected'], ['', 'http://www.example.com/redirected'], ['', 'http://www.example.com/redirected'], ['', 'http://www.example.com/redirected'], ['', 'http://www.example.com/redirected'], ['', 'http://www.example.com/redirected'], ['