PHPUnit: convert deprecations to exceptions by swissspidy · Pull Request #5994 · wp-cli/wp-cli
Since PHPUnit 9.5.10 and 8.5.21, PHP deprecations are no longer converted to exceptions by default (convertDeprecationsToExceptions="true" can be configured to enable this).
This commit reverts PHPUnit to the previous behaviour by adding convertDeprecationsToExceptions="true" to the PHPUnit configuration. It also adds the other related directives for consistency.
See similar change in core: WordPress/wordpress-develop@7c2b54e