root/tags/RELEASE_0_2_0/tests/run.php

Revision 68, 0.7 kB (checked in by mikey, 2 years ago)

better access to simpletest

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