Keep track of global success or failure and print out a summary success or failure when the
tests are complete. Makes it less likely that a test failure will be missed.
This commit is contained in:
@@ -11,6 +11,9 @@ error_reporting(E_ALL);
|
||||
if(!defined("DISABLE_EMAIL"))
|
||||
define("DISABLE_EMAIL", true);
|
||||
|
||||
// default to the tests being successful
|
||||
$bTestSuccess = true;
|
||||
|
||||
include_once("test_user.php");
|
||||
echo "\n";
|
||||
include_once("test_query.php");
|
||||
@@ -28,4 +31,12 @@ echo "\n";
|
||||
include_once("test_om_objects.php");
|
||||
echo "\n";
|
||||
include_once("test_appData.php");
|
||||
|
||||
if($bTestSuccess == true)
|
||||
{
|
||||
echo "\nAll tests were successful\n";
|
||||
} else
|
||||
{
|
||||
echo "\nSome test(s) failed!\n";
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user