Code Duplication    Length = 11-11 lines in 2 locations

tests/Unit/DsnTest.php 2 locations

@@ 55-65 (lines=11) @@
52
     *
53
     * @dataProvider hostValues
54
     */
55
    public function testHost($dsn, $host)
56
    {
57
        $dsn = new DSN($dsn);
58
        if (is_array($host)) {
59
            foreach ($dsn->getHosts() as $index => $h) {
60
                $this->assertEquals($host[$index], $h['host']);
61
            }
62
        } else {
63
            $this->assertEquals($host, $dsn->getFirstHost());
64
        }
65
    }
66
67
    /**
68
     * @static
@@ 101-111 (lines=11) @@
98
     *
99
     * @dataProvider portValues
100
     */
101
    public function testPort($dsn, $port)
102
    {
103
        $dsn = new DSN($dsn);
104
        if (is_array($port)) {
105
            foreach ($dsn->getHosts() as $index => $host) {
106
                $this->assertEquals($port[$index], $host['port']);
107
            }
108
        } else {
109
            $this->assertEquals($port, $dsn->getFirstPort());
110
        }
111
    }
112
113
    /**
114
     * @static