Revert "Issue #3445896 by mstrelan, mondrake: PHPUnit\Runner\ErrorHandler::__construct is private since PHPUnit 11.1"
This reverts commit 3232e588.
Closes #3446164