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:
Chris Morgan
2007-03-31 17:12:55 +00:00
committed by WineHQ
parent c494af3eb5
commit e2b15c0566
11 changed files with 136 additions and 25 deletions

View File

@@ -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";
}
?>