Closed
Description
Symfony version(s) affected
7.0.0
Description
PHPUnit 11 checks for any leftovers in error handlers sebastianbergmann/phpunit#5619
How to reproduce
Run FrameworkBundle->boot()
in phpunit test.
It results in Test code or tested code did not remove its own exception handlers
thrown by phpunit.
Possible Solution
Introduce FrameworkBundle::shutdown()
that would cleanup error handler set in boot()
. IMO it's reasonable to have some cleanup in shutdown() of things initiated in boot().
Additional Context
No response