Total Complexity | 2 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class EasyConnectStringTest extends TestCase |
||
11 | { |
||
12 | /** |
||
13 | * @param mixed[] $params |
||
14 | * |
||
15 | * @dataProvider connectionParametersProvider |
||
16 | */ |
||
17 | public function testFromConnectionParameters(array $params, string $expected) : void |
||
18 | { |
||
19 | $string = EasyConnectString::fromConnectionParameters($params); |
||
20 | |||
21 | $this->assertSame($expected, (string) $string); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @return mixed[] |
||
26 | */ |
||
27 | public static function connectionParametersProvider() : iterable |
||
61 | ], |
||
62 | ]; |
||
65 |