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