Currently, core tests cannot be run by running the phpunit command directly. Instead, we have a custom entrypoint that wraps PHPUnit and calls it programmatically from tests/phpunit/phpunit.php.
We should convert all our logic in the wrapper to a PHPUnit bootstrap file, so that we (and other automated tools) can start PHPUnit through the regular entry point.
- Adjust configuration
- Do we still need two separate files? If not, merge. If yes, perhaps we could add a composer script to switch between configs easily.
- Note that we also have two different bootstrap files
- Move everything from phpunit.php to the bootstrap file
- Delete phpunit.php and fix everything that refers directly to it