diff --git a/core/tests/bootstrap.php b/core/tests/bootstrap.php index 56f7cd68a2477b7b8e359bf8a9d4b2b0b7131067..0d663410407d569f287db099b6a3730ccf9adf27 100644 --- a/core/tests/bootstrap.php +++ b/core/tests/bootstrap.php @@ -171,7 +171,7 @@ class_alias('\Drupal\Tests\DocumentElement', '\Behat\Mink\Element\DocumentElemen // DebugClassLoader, that occur before tests' setUp() methods are called. // We pass an instance of the PHPUnit error handler to redirect any error not // managed by our layer back to PHPUnit. - set_error_handler(new BootstrapErrorHandler(new PhpUnitErrorHandler())); + set_error_handler(new BootstrapErrorHandler(PhpUnitErrorHandler::instance())); // Enable the DebugClassLoader to get deprecations for methods' signature // changes.