1 | <?php |
||
21 | class DsnTest extends TestCase |
||
22 | { |
||
23 | /** |
||
24 | * @covers ::__construct |
||
25 | * @covers ::<private> |
||
26 | * @expectedException \InvalidArgumentException |
||
27 | */ |
||
28 | public function testInvalidDsn() |
||
33 | |||
34 | /** |
||
35 | * @covers ::__construct |
||
36 | * @covers ::<private> |
||
37 | * @expectedException \InvalidArgumentException |
||
38 | */ |
||
39 | public function testInvalidScheme() |
||
44 | |||
45 | /** |
||
46 | * @covers ::__construct |
||
47 | * @covers ::getScheme |
||
48 | * @covers ::<private> |
||
49 | * @expectedException \InvalidArgumentException |
||
50 | */ |
||
51 | public function testInvalidKeyValuePair() |
||
56 | |||
57 | /** |
||
58 | * @covers ::__construct |
||
59 | * @covers ::__toString |
||
60 | * @covers ::getScheme |
||
61 | * @covers ::getUsername |
||
62 | * @covers ::getPassword |
||
63 | * @covers ::getPort |
||
64 | * @covers ::getHost |
||
65 | * @covers ::getPath |
||
66 | * @covers ::getQuery |
||
67 | * @covers ::getParameters |
||
68 | * @covers ::<private> |
||
69 | * @uses \phpDocumentor\Path |
||
70 | */ |
||
71 | public function testValidDsnWithScheme() |
||
95 | |||
96 | /** |
||
97 | * @covers ::__construct |
||
98 | * @covers ::__toString |
||
99 | * @covers ::getScheme |
||
100 | * @covers ::getHost |
||
101 | * @covers ::getPort |
||
102 | * @covers ::getPath |
||
103 | * @covers ::<private> |
||
104 | * @uses \phpDocumentor\Path |
||
105 | */ |
||
106 | public function testValidDsnWithoutScheme() |
||
117 | |||
118 | /** |
||
119 | * @covers ::__construct |
||
120 | * @covers ::__toString |
||
121 | * @covers ::getScheme |
||
122 | * @covers ::getHost |
||
123 | * @covers ::getPort |
||
124 | * @covers ::getPath |
||
125 | * @covers ::<private> |
||
126 | * @uses \phpDocumentor\Path |
||
127 | */ |
||
128 | public function testValidWindowsDsnWithoutScheme() |
||
145 | |||
146 | /** |
||
147 | * @covers ::__construct |
||
148 | * @covers ::__toString |
||
149 | * @covers ::getScheme |
||
150 | * @covers ::getHost |
||
151 | * @covers ::getPort |
||
152 | * @covers ::getPath |
||
153 | * @covers ::<private> |
||
154 | * @uses \phpDocumentor\Path |
||
155 | */ |
||
156 | public function testValidWindowsDsnWithScheme() |
||
167 | |||
168 | /** |
||
169 | * @covers ::__construct |
||
170 | * @covers ::getScheme |
||
171 | * @covers ::getPort |
||
172 | * @covers ::<private> |
||
173 | */ |
||
174 | public function testCorrectDefaultPorts() |
||
184 | } |
||
185 |