This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/unit_test/run_tests.php

46 lines
873 B
PHP
Raw Normal View History

<?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);
// disable emailing
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");
echo "\n";
include_once("test_image.php");
echo "\n";
include_once("test_application.php");
echo "\n";
include_once("test_error_log.php");
echo "\n";
include_once("test_filter.php");
2007-01-19 01:41:01 +00:00
echo "\n";
include_once("test_url.php");
echo "\n";
include_once("test_om_objects.php");
echo "\n";
include_once("test_appData.php");
echo "\n";
include_once("test_testData.php");
if($bTestSuccess == true)
{
echo "\nAll tests were successful\n";
} else
{
echo "\nSome test(s) failed!\n";
}
?>