I'm trying to run Symfony 2 PHP unit tests for a REST API in a custom environment, other than the default 'test' environment.
The purpose is to be able to do a quick sanity check after deploying the rest API, in any environment (e.g. int, prod)
I managed to pass the environment to the WebTestCase class, when creating a new kernel/client. My problem is that I'm now getting the following error:
"The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9"
I can fix that by changing the session storage to filesystem in the config.[targetenvironment].yml, but I don't want to use filesystem storage when in prod for instance.
framework:
test: ~
session:
storage_id: session.storage.filesystem
Is there any way around this issue?
Thanks