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', 'AllTests');
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');
25 require_once 'DateTest.php';
26 $suite->addTestSuite('DateTest');
28 require_once 'FunctionsTest.php';
29 $suite->addTestSuite('FunctionsTest');
31 require_once 'InputTest.php';
32 $suite->addTestSuite('InputTest');
34 require_once 'AppTest.php';
35 $suite->addTestSuite('AppTest');
37 require_once 'TemplateTest.php';
38 $suite->addTestSuite('TemplateTest');
40 require_once 'XmlTest.php';
41 $suite->addTestSuite('XmlTest');
43 require_once 'DatabaseTests.php';
44 $suite->addTestSuite(DatabaseTests
::suite());
50 if (PHPUnit_MAIN_METHOD
== 'AllTests')