Flush the error log before performing the error log test, otherwise pending errors can throw the tests error count off
and cause it to improperly fail
This commit is contained in:
@@ -5,6 +5,8 @@ require_once(BASE."include/incl.php");
|
||||
|
||||
function test_error_log_log_error()
|
||||
{
|
||||
error_log::flush(); /* flush the error log */
|
||||
|
||||
error_log::log_error(ERROR_SQL, "This is a sql error");
|
||||
error_log::log_error(ERROR_GENERAL, "This is a general error");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user