3 require_once 'tests.config.php';
4 ini_set('include_path', ini_get('include_path') . ':' . TEST_PATH_TO_ISSO
);
6 if (!defined('PHPUnit_MAIN_METHOD'))
8 define('PHPUnit_MAIN_METHOD', 'DatabaseTests');
11 require_once 'PHPUnit/Framework.php';
12 require_once 'PHPUnit/TextUI/TestRunner.php';
16 public static function main()
18 PHPUnit_TextUI_TestRunner
::run(self
::suite());
21 public static function suite()
23 $suite = new PHPUnit_Framework_TestSuite('ISSO Database');
25 require_once 'DatabaseMySQLTest.php';
26 $suite->addTestSuite('DatabaseMySQLTest');
28 require_once 'DatabaseMySQLiTest.php';
29 $suite->addTestSuite('DatabaseMySQLiTest');
35 if (PHPUnit_MAIN_METHOD
== 'DatabaseTests')
37 DatabaseTests
::main();