Problem/Motivation
Symfony's PHPUnit bridge has not yet been adjusted to support PHPUnit 10
https://github.com/symfony/symfony/issues/49069
and recently some comments were posted hinting that in the future significant parts of it may be dropped
https://github.com/sebastianbergmann/phpunit/issues/5532
With PHPUnit 11 being release Feb 2, 2024, our testing suite tech gap is growing.
We may have to start considering an option to drop this dependency if the upstream gap is not closed in time for Drupal 11. What to do alternatively, though, needs discussion.
Proposed resolution
Replace symfony/phpunit-bridge
with our own error handler and deprecation tracking code.
Things to request upstream
- Process isolation not on single class as annotation/attribute but on higher level (base class? suite?)
- Include deprecations/warnings as failures in the junit report
- Add a 'deprecation ignore file' option to replace our own backfill of the similar functionality that was provided by symfony/phpunit-bridge
Remaining tasks
None
User interface changes
None
API changes
PHPUnit test runners likely need to pass the --process-isolation
flag when running tests as this can no longer be controlled from base classes.
Data model changes
None