I have following server variable in phpunit.xml:
<php>
<server name="APP_DEBUG" value="false"/>
</php>
Sometimes while developing, I want have APP_DEBUG enabled. What I usually do is add it into CLI command:
APP_DEBUG=true phpunit -c phpunit.xml
and in PHP:
$appDebug = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? null;
But this does not set $_SERVER['APP_DEBUG] to true, but leaves value from XML.
Is there any way to overwrite it from CLI?