let us more easily debug difficult or intermittent issues that users may not report. Add a cron to report logged errors to appdb admins every night. Implement some basic unit tests for the new error logging code
19 lines
348 B
PHP
19 lines
348 B
PHP
<?php
|
|
|
|
/* Main test function. To add new tests include_once() */
|
|
/* your test file here */
|
|
|
|
/* TODO: test the rest of the classes we have */
|
|
|
|
error_reporting(E_ALL ^ E_NOTICE);
|
|
|
|
include_once("test_user.php");
|
|
echo "\n";
|
|
include_once("test_query.php");
|
|
echo "\n";
|
|
include_once("test_image.php");
|
|
echo "\n";
|
|
include_once("test_error_log.php");
|
|
|
|
?>
|