Using the Symfony2 WebTestCase, I have the following test :
$client->request('GET', '/');
$this->assertTrue($client->getResponse() instanceof RedirectResponse);
$crawler = $client->followRedirect();
I would like to test the new url, after the redirection ends with /login
but I have found no way to access the new URL.