This repository expects a standard PHP 8.4 CLI environment with the dependencies required for XML processing, PHPUnit, static analysis, and coverage.
At minimum, make sure the system provides:
Typical package names on Linux distributions look like:
php8.4-cliphp8.4-xmlphp8.4-xdebugcomposerExact package names can differ by platform or package manager, but the
runtime expectation stays the same: php must be a PHP 8.4 CLI binary
with xmlreader and xdebug available.
The repository does not require a global coverage mode in ini files.
Coverage is enabled only for the dedicated command:
composer test-coverage
That command uses:
php -d xdebug.mode=coverage ...
So the environment must satisfy two conditions:
-d xdebug.mode=coverage.Any platform-specific work to make CLI PHP load Xdebug should be done outside the repository commands.
php --ri xdebug works before running coverage.php command loads Xdebug in its default config;php --ri xdebug.php --ri xdebug.The repository assumes that by the time you run tests, these steps are already complete.
Check the loaded extensions:
php -m
php --ri xdebug
Then run:
composer test
composer test-coverage
composer phpstan-check
If composer test-coverage fails because Xdebug is missing, fix the
platform configuration first instead of changing the test command.