From: Roland Häder Date: Thu, 18 May 2017 20:54:40 +0000 (+0200) Subject: opps X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=afe4936b8a55f38736e1af5191a964a926d7255a;p=core.git opps Signed-off-by: Roland Häder --- diff --git a/application/tests/exceptions.php b/application/tests/exceptions.php index ed824148..3d91a741 100644 --- a/application/tests/exceptions.php +++ b/application/tests/exceptions.php @@ -101,7 +101,7 @@ Backtrace: } // Error handler -function test_error_handler ($errno, $errstr, $errfile, $errline, array $errcontext) { +function tests_error_handler ($errno, $errstr, $errfile, $errline, array $errcontext) { // Construct the message $message = sprintf('File: %s, Line: %s, Code: %s, Message: %s', basename($errfile), @@ -115,7 +115,7 @@ function test_error_handler ($errno, $errstr, $errfile, $errline, array $errcont } // END - function // Assertion handler -function test_assert_handler ($file, $line, $code) { +function tests_assert_handler ($file, $line, $code) { // Empty code? if ($code === '') { $code = 'Unknown'; @@ -136,7 +136,7 @@ function test_assert_handler ($file, $line, $code) { } // END - function // Set error handler -//set_error_handler('test_error_handler'); +//set_error_handler('tests_error_handler'); // Set the new handler set_exception_handler('tests_exception_handler'); @@ -146,4 +146,4 @@ assert_options(ASSERT_ACTIVE , true); assert_options(ASSERT_WARNING , false); assert_options(ASSERT_BAIL , true); assert_options(ASSERT_QUIET_EVAL, false); -assert_options(ASSERT_CALLBACK , 'test_assert_handler'); +assert_options(ASSERT_CALLBACK , 'tests_assert_handler');