root/trunk/tests/run.php

Revision 129, 1.0 kB (checked in by mikey, 1 year ago)

renamed XJConfLoader to XJConf

Line 
1 <?php
2 /**
3  * Test runner for XJConf.
4  *
5  * @author      Frank Kleine <mikey@xjconf.net>
6  * @package     XJConf
7  * @subpackage  test
8  */
9 require_once dirname(__FILE__) . '/../simpletest/unit_tester.php';
10 require_once dirname(__FILE__) . '/../simpletest/mock_objects.php';
11 require_once dirname(__FILE__) . '/../simpletest/reporter.php';
12 require_once dirname(__FILE__) . '/../XJConf/XJConf.php';
13 /**
14  * Test runner for XJConf.
15  *
16  * @package     XJConf
17  * @subpackage  test
18  */
19 class XJConfTestRunner
20 {
21     public function main()
22     {
23         $dir       = dirname(__FILE__);
24         $testSuite = new TestSuite('All tests.');
25         $testSuite->addTestFile($dir . '/converters/ConvertersTestSuite.php');
26         $testSuite->addTestFile($dir . '/definitions/DefinitionsTestSuite.php');
27         if (PHP_SAPI == 'cli') {
28             $reporter = new TextReporter();
29         } else {
30             $reporter = new HtmlReporter();
31         }
32         $testSuite->run($reporter);
33     }
34 }
35 XJConfTestRunner::main();
36 ?>
Note: See TracBrowser for help on using the browser.