Net_URL2_AllTests   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A main() 0 5 1
A suite() 0 8 1
1
<?php
2
/**
3
 * Net_URL2, a class representing a URL as per RFC 3986.
4
 *
5
 * PHP version 5
6
 *
7
 * @category Networking
8
 * @package  Net_URL2
9
 * @author   Some Pear Developers <[email protected]>
10
 * @license  https://spdx.org/licenses/BSD-3-Clause BSD-3-Clause
11
 * @link     https://tools.ietf.org/html/rfc3986
12
 */
13
14
require_once 'PHPUnit/Autoload.php';
15
16
chdir(dirname(__FILE__) .  '/../');
17
18
require_once 'Net/URL2Test.php';
19
require_once 'Net/URL2.php';
20
21
/**
22
 * Test class for Net_URL2.
23
 *
24
 * @category Networking
25
 * @package  Net_URL2
26
 * @author   Some Pear Developers <[email protected]>
27
 * @license  https://spdx.org/licenses/BSD-3-Clause BSD-3-Clause
28
 * @version  Release: @package_version@
29
 * @link     https://pear.php.net/package/Net_URL2
30
 */
31
class Net_URL2_AllTests
32
{
33
    /**
34
     * main()
35
     *
36
     * @return void
37
     */
38
    public static function main()
39
    {
40
41
        PHPUnit_TextUI_TestRunner::run(self::suite());
42
    }
43
44
    /**
45
     * suite()
46
     *
47
     * @return PHPUnit_Framework_TestSuite
48
     */
49
    public static function suite()
50
    {
51
        $suite = new PHPUnit_Framework_TestSuite('Net_URL2 tests');
52
        /** Add testsuites, if there is. */
53
        $suite->addTestSuite('Net_URL2Test');
54
55
        return $suite;
56
    }
57
}
58
59
Net_URL2_AllTests::main();
60