Closed
Description
Hi,
I've tried to override the test client HTTP_HOST
server param in my app config:
parameters:
test.client.parameters:
HTTP_HOST: symfony.com
However, in functional tests (WebTestCase), $client->getServerParameter('HTTP_HOST')
does not return symfony.com
but the default localhost
.
The client is actually correctly configured at
but the call on the next line $client->setServerParameters($server);
with an empty array erases HTTP_HOST
because of the method definition:
symfony/src/Symfony/Component/BrowserKit/Client.php
Lines 113 to 119 in cf3cd95