Current state:
- using
<server ... in phpunit.xml.dist file to define default settings for test suite
- using
$_SERVER in test suite to use the above-defined settings
Problem:
Inability to override the above settings during GitHub Actions builds because we can set environment variables (readable through $_ENV) and not server variables (readable through $_SERVER).
Solution
Do so Find & Replace in the phpunit.xml.dist on GitHub Actions instead of providing environment variables like DRIVER_URL and such, that don't override what phpunit.xml.dist defines.
Current state:
<server ...inphpunit.xml.distfile to define default settings for test suite$_SERVERin test suite to use the above-defined settingsProblem:
Inability to override the above settings during GitHub Actions builds because we can set environment variables (readable through
$_ENV) and not server variables (readable through$_SERVER).Solution
Do so
Find & Replacein thephpunit.xml.diston GitHub Actions instead of providing environment variables likeDRIVER_URLand such, that don't override whatphpunit.xml.distdefines.