Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class TimeTest extends TestCase |
||
9 | { |
||
10 | /** |
||
11 | * @dataProvider providerTime |
||
12 | * |
||
13 | * @param null|string|string[] $separators |
||
14 | * @param string[] $formatBlocks |
||
15 | */ |
||
16 | public function testTime(string $expectedResult, $separators, array $formatBlocks): void |
||
17 | { |
||
18 | $wizard = new Time($separators, ...$formatBlocks); |
||
19 | self::assertSame($expectedResult, (string) $wizard); |
||
20 | } |
||
21 | |||
22 | public function providerTime(): array |
||
29 | ]; |
||
30 | } |
||
32 |