For some reason when i sent a new $client->request the headers I specify get lost:
public function testGetClientsAction()
{
$client = static::createClien
If you check the definition from Client.php, at method request, you will see in the docblock a very useful information:
This means that you should add a HTTP_ prefix to the header you want to send. For example if you want to pass header X-HTTP-Method-Override you specify it like so:
$client->request(
Request::METHOD_POST,
'/api/v1/something',
$body,
[],
['HTTP_X-HTTP-Method-Override' => Request::METHOD_GET]
);