title: How to make https requests in symfony2 functional test?
body: <p>Hi i am using phpunit for testing and Symfony\Bundle\FrameworkBundle\Test\WebTestCase for unit testing. So far there were no problem but now we start to use https and my tests are not working anymore.I start to get 301 response code for my every request in my tests. My question is how do i tell to Symfony\Component\HttpKernel\Client to make requests to 
  <b>https</b>://localhost.com/uri instead of <b>http</b>://localhost.com/uri ?   </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>In symfony website <a href="http://symfony.com/doc/current/book/testing.html" rel="noreferrer">http://symfony.com/doc/current/book/testing.html</a> they show how to configure server parameters and there is a code peace like</p>
  
  <pre><code>$client-&gt;request(
   'GET',
   '/demo/hello/Fabien',
   array(),
   array(),
   array(
       'CONTENT_TYPE'          =&gt; 'application/json',
       'HTTP_REFERER'          =&gt; '/foo/bar',
       'HTTP_X-Requested-With' =&gt; 'XMLHttpRequest',
   )
  );
  </code></pre>
  
  <p>I tried to give HTTPS element as mentioned in <a href="http://php.net/manual/en/reserved.variables.server.php" rel="noreferrer">http://php.net/manual/en/reserved.variables.server.php</a> changed my code as</p>
  
  <pre><code>$client-&gt;request('GET',
           '/'.$version.'/agencies/'.$agencyId,
           array(), 
           array(),
           array('HTTPS' =&gt; 'on')
           );
  </code></pre>
  
  <p>However, it is still not working?</p>