]> src.bluestatic.org Git - isso.git/blob - UnitTest/AllTests.php
Cleaing up error reporting and error triggering in Api.php
[isso.git] / UnitTest / AllTests.php
1 <?php
2
3 require_once 'tests.config.php';
4 ini_set('include_path', ini_get('include_path') . ':' . TEST_PATH_TO_ISSO);
5
6 if (!defined('PHPUnit_MAIN_METHOD'))
7 {
8 define('PHPUnit_MAIN_METHOD', 'AllTests');
9 }
10
11 require_once 'PHPUnit/Framework.php';
12 require_once 'PHPUnit/TextUI/TestRunner.php';
13
14 class AllTests
15 {
16 public static function main()
17 {
18 PHPUnit_TextUI_TestRunner::run(self::suite());
19 }
20
21 public static function suite()
22 {
23 $suite = new PHPUnit_Framework_TestSuite('ISSO');
24
25 require_once 'DateTest.php';
26 $suite->addTestSuite('DateTest');
27
28 require_once 'FunctionsTest.php';
29 $suite->addTestSuite('FunctionsTest');
30
31 require_once 'InputTest.php';
32 $suite->addTestSuite('InputTest');
33
34 require_once 'InstallerTest.php';
35 $suite->addTestSuite('InstallerTest');
36
37 require_once 'AppTest.php';
38 $suite->addTestSuite('AppTest');
39
40 require_once 'TemplateTest.php';
41 $suite->addTestSuite('TemplateTest');
42
43 require_once 'XmlTest.php';
44 $suite->addTestSuite('XmlTest');
45
46 require_once 'DatabaseTests.php';
47 $suite->addTestSuite(DatabaseTests::suite());
48
49 return $suite;
50 }
51 }
52
53 if (PHPUnit_MAIN_METHOD == 'AllTests')
54 {
55 AllTests::main();
56 }
57
58 ?>