root/trunk/tests/runIntegration.php

Revision 129, 2.5 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  */
7 define('TEST_CWD', dirname(__FILE__));
8 define('EXAMPLES_DIR', realpath(dirname(__FILE__) . '/../examples'));
9 require_once TEST_CWD . '/../simpletest/reporter.php';
10 require_once TEST_CWD . '/../simpletest/unit_tester.php';
11 require_once TEST_CWD . '/../XJConf/XJConf.php';
12 /**
13  * Test runner for XJConf.
14  *
15  * @package     XJConf
16  * @subpackage  test
17  */
18 class XJConfIntegrationTestRunner
19 {
20     public function main()
21     {
22         $test = new TestSuite('Integration tests');
23         $test->addTestFile(TEST_CWD . '/integration/Example1TestCase.php');
24         $test->addTestFile(TEST_CWD . '/integration/Example2TestCase.php');
25         $test->addTestFile(TEST_CWD . '/integration/Example3TestCase.php');
26         $test->addTestFile(TEST_CWD . '/integration/ExampleClassLoaderTestCase.php');
27         $test->addTestFile(TEST_CWD . '/integration/ExampleCollectionTestCase.php');
28         $test->addTestFile(TEST_CWD . '/integration/ExampleExtensionTestCase.php');
29         $test->addTestFile(TEST_CWD . '/integration/Test__setExplicitTestCase.php');
30         $test->addTestFile(TEST_CWD . '/integration/Test__setImplicitTestCase.php');
31         $test->addTestFile(TEST_CWD . '/integration/Test__setPublicPropertiesTestCase.php');
32         $test->addTestFile(TEST_CWD . '/integration/TestAttributesRequiredTestCase.php');
33         $test->addTestFile(TEST_CWD . '/integration/TestAutoPrimitivesTestCase.php');
34         $test->addTestFile(TEST_CWD . '/integration/TestCDataSetterTestCase.php');
35         $test->addTestFile(TEST_CWD . '/integration/TestConstructorTestCase.php');
36         $test->addTestFile(TEST_CWD . '/integration/TestDynamicSettersTestCase.php');
37         $test->addTestFile(TEST_CWD . '/integration/TestDynamicTypesTestCase.php');
38         $test->addTestFile(TEST_CWD . '/integration/TestEmptyConstructorTestCase.php');
39         $test->addTestFile(TEST_CWD . '/integration/TestInterfacesTestCase.php');
40         $test->addTestFile(TEST_CWD . '/integration/TestPrimitivesFactoryTestCase.php');
41         $test->addTestFile(TEST_CWD . '/integration/TestPrimitivesTestCase.php');
42         $test->addTestFile(TEST_CWD . '/integration/TestStaticClassTestCase.php');
43         $test->addTestFile(TEST_CWD . '/integration/TestXIncludeTestCase.php');
44         if (PHP_SAPI == 'cli') {
45             $reporter = new TextReporter();
46         } else {
47             $reporter = new HtmlReporter();
48         }
49         $test->run($reporter);
50     }
51 }
52 XJConfIntegrationTestRunner::main();
53 ?>
Note: See TracBrowser for help on using the browser.