title: How to get the current URL after a redirect in a Symfony2 WebTestCase?
body: <p>Using the Symfony2 WebTestCase, I have the following test :</p>
  
  <pre><code>$client-&gt;request('GET', '/');
  $this-&gt;assertTrue($client-&gt;getResponse() instanceof RedirectResponse);
  
  $crawler = $client-&gt;followRedirect();
  </code></pre>
  
  <p>I would like to test <strong>the new url, after the redirection</strong> ends with <code>/login</code> but I have found no way to access the new URL. </p>