3 require_once 'tests.config.php';
4 define('ISSO', 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 'InstallerTest.php';
35 $suite->addTestSuite('InstallerTest');
37 require_once 'AppTest.php';
38 $suite->addTestSuite('AppTest');
40 require_once 'TemplateTest.php';
41 $suite->addTestSuite('TemplateTest');
43 require_once 'XmlTest.php';
44 $suite->addTestSuite('XmlTest');
46 require_once 'DatabaseTests.php';
47 $suite->addTestSuite(DatabaseTests
::suite());
49 require_once 'ApiTest.php';
50 $suite->addTestSuite('ApiTest');
56 if (PHPUnit_MAIN_METHOD
== 'AllTests')