When I dump the environment variable that gets set in Kernel.php, it still shows "test":
// from my Kernel.php
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
{
echo "\n\nFROM KERNEL: APP_ENV = $this->environment\n\n";
...
}
There is no change in this behavior if is declare PANTHER_APP_ENV=panther before my test command, or when I add it to my phpunit.xml file. Am I missing something?
This env var works (it launches a visible browser instead of running headless):
This, however, doesn't seem to work:
When I dump the environment variable that gets set in
Kernel.php
, it still shows "test":There is no change in this behavior if is declare
PANTHER_APP_ENV=panther
before my test command, or when I add it to myphpunit.xml
file. Am I missing something?