aboutsummaryrefslogtreecommitdiff
path: root/vendors/simpletest/test/unit_tests.php
blob: 04dbc46ca47bb100028f5c39387b55059c34f71f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
// $Id: unit_tests.php 1661 2008-02-26 21:04:31Z pp11 $
require_once(dirname(__FILE__) . '/../autorun.php');
require_once(dirname(__FILE__) . '/../unit_tester.php');
require_once(dirname(__FILE__) . '/../shell_tester.php');
require_once(dirname(__FILE__) . '/../mock_objects.php');
require_once(dirname(__FILE__) . '/../web_tester.php');
require_once(dirname(__FILE__) . '/../extensions/pear_test_case.php');
require_once(dirname(__FILE__) . '/../extensions/phpunit_test_case.php');

class UnitTests extends TestSuite {
    function UnitTests() {
        $this->TestSuite('Unit tests');
        $path = dirname(__FILE__);
        $this->addFile($path . '/errors_test.php');
        if (version_compare(phpversion(), '5') >= 0) {
            $this->addFile($path . '/exceptions_test.php');
        }
        $this->addFile($path . '/autorun_test.php');
        $this->addFile($path . '/compatibility_test.php');
        $this->addFile($path . '/simpletest_test.php');
        $this->addFile($path . '/dumper_test.php');
        $this->addFile($path . '/expectation_test.php');
        $this->addFile($path . '/unit_tester_test.php');
        if (version_compare(phpversion(), '5', '>=')) {
            $this->addFile($path . '/reflection_php5_test.php');
        } else {
            $this->addFile($path . '/reflection_php4_test.php');
        }
        $this->addFile($path . '/mock_objects_test.php');
        if (version_compare(phpversion(), '5', '>=')) {
            $this->addFile($path . '/interfaces_test.php');
        }
        $this->addFile($path . '/collector_test.php');
        $this->addFile($path . '/adapter_test.php');
        $this->addFile($path . '/socket_test.php');
        $this->addFile($path . '/encoding_test.php');
        $this->addFile($path . '/url_test.php');
        $this->addFile($path . '/cookies_test.php');
        $this->addFile($path . '/http_test.php');
        $this->addFile($path . '/authentication_test.php');
        $this->addFile($path . '/user_agent_test.php');
        $this->addFile($path . '/parser_test.php');
        $this->addFile($path . '/tag_test.php');
        $this->addFile($path . '/form_test.php');
        $this->addFile($path . '/page_test.php');
        $this->addFile($path . '/frames_test.php');
        $this->addFile($path . '/browser_test.php');
        $this->addFile($path . '/web_tester_test.php');
        $this->addFile($path . '/shell_tester_test.php');
        $this->addFile($path . '/xml_test.php');
        $this->addFile($path . '/../extensions/testdox/test.php');
    }
}
?>