This job performs [PHPUnit](https://phpunit.readthedocs.io/) tests.
This job performs [PHPUnit](https://docs.phpunit.de/) tests.
It is bound to the `build` stage, and is automatically enabled if a PHPUnit [XML configuration file](https://docs.phpunit.de/en/10.2/configuration.html)
It is bound to the `build` stage, and is automatically enabled if a PHPUnit [XML configuration file](https://docs.phpunit.de/en/11.0/configuration.html)
is found in the project (`phpunit.xml` or `phpunit.xml.dist`).
It uses the following variable:
| Input / Variable | Description | Default value |
| `unit-disabled` / `PHP_UNIT_DISABLED` | Set to `true` to disable PHPUnit test (if some `phpunit.xml` or `phpunit.xml.dist` file unintentionally triggers the build) | _none_ (auto based on presence of `phpunit.xml` or `phpunit.xml.dist` file) |
:warning: in order to be able to compute [code coverage](https://docs.phpunit.de/en/10.2/code-coverage.html),
:warning: in order to be able to compute [code coverage](https://docs.phpunit.de/en/11.0/code-coverage.html),
your project shall have a (dev) dependency to [`php-code-coverage`](https://github.com/sebastianbergmann/php-code-coverage).
In addition to a textual report in the console, this job produces the following reports, kept for one day:
"description":"[PHPUnit](https://phpunit.readthedocs.io/) tests\n\nAutomatically enabled if a PHPUnit [XML configuration file](https://phpunit.readthedocs.io/en/9.5/configuration.html#appendixes-configuration) is found in the project (`phpunit.xml`)",
"description":"[PHPUnit](https://docs.phpunit.de/) tests\n\nAutomatically enabled if a PHPUnit [XML configuration file](https://docs.phpunit.de/en/11.0/configuration.html#appendixes-configuration) is found in the project (`phpunit.xml`)",