]> src.bluestatic.org Git - isso.git/blob - UnitTest/AllTests.php
Fixing another call to BSApp::GetType() and switching to using the ::Registry()
[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 'AppTest.php';
35 $suite->addTestSuite('AppTest');
36
37 require_once 'TemplateTest.php';
38 $suite->addTestSuite('TemplateTest');
39
40 require_once 'XmlTest.php';
41 $suite->addTestSuite('XmlTest');
42
43 require_once 'DatabaseTests.php';
44 $suite->addTestSuite(DatabaseTests::suite());
45
46 return $suite;
47 }
48 }
49
50 if (PHPUnit_MAIN_METHOD == 'AllTests')
51 {
52 AllTests::main();
53 }
54
55 ?>