root/tags/RELEASE_0_2_1/tests/runIntegration.php

Revision 103, 2.6 kB (checked in by mikey, 1 year ago)

added implicit and explicit call to set as well as possibility for setting public properties
whitespace fixes

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