opps
[core.git] / application / tests / exceptions.php
index ed824148ec45a4bd92b721e3b9400718d7f113fe..3d91a741159681e5e15daa2f2fe70453cfca73fa 100644 (file)
@@ -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 = '<em>Unknown</em>';
@@ -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');