diff --git a/tests/bootstrap.php b/tests/bootstrap.php index b88c49eca..93808b4df 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -18,3 +18,7 @@ spl_autoload_register(function($class) } }); +function exception_error_handler($errno, $errstr, $errfile, $errline ) { + throw new ErrorException($errstr, 0, $errno, $errfile, $errline); +} +set_error_handler("exception_error_handler"); \ No newline at end of file