- PHP >=8.2
- composer
- make
make install
Running phpunit without displaying deprecations details works as expected.
make phpunit-without-deprecation-details
First naiv approach to enable deprecations.
- phpunit.displayDetailsOnTestsThatTriggerDeprecations="true"
- phpunit.source.ignoreSuppressionOfDeprecations="true"
make phpunit-with-some-deprecations
BUT the deprecation baseline (some-deprecations-baseline.xml
) does not contain silenced deprecations.
Running the same command using the generated baseline will cause output of silenced deprecation:
make run-phpunit-with-some-deprecations-baseline
I checked a bit the code and I stumble over the fact if I ignore PHP warnings in the phpunit configuration file then the silenced deprecations also end up in baseline file:
make phpunit-with-all-deprecations
Running the same command against that generated baseline will not show any deprecations anymore.
make run-phpunit-with-all-deprecations-baseline