From b5bd57a43b107c840a6393a886969e6987d38b47 Mon Sep 17 00:00:00 2001 From: xaav Date: Thu, 9 Jun 2011 07:40:41 -0700 Subject: [PATCH] Added ErrorException handler. --- tests/bootstrap.php | 4 ++++ 1 file changed, 4 insertions(+) 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