Total Complexity | 3 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class ErrorTest extends TestCase |
||
12 | { |
||
13 | public function dataGetValuePath(): array |
||
14 | { |
||
15 | return [ |
||
16 | 'null' => [ |
||
17 | ['user', 'data.age'], |
||
18 | ['user', 'data.age'], |
||
19 | null, |
||
20 | ], |
||
21 | 'symbol' => [ |
||
22 | ['user', 'the.data\-age'], |
||
23 | ['user', 'the.data-age'], |
||
24 | '-', |
||
25 | ], |
||
26 | |||
27 | // deprecated |
||
28 | 'true' => [ |
||
29 | ['user', 'data\.age'], |
||
30 | ['user', 'data.age'], |
||
31 | true, |
||
32 | ], |
||
33 | |||
34 | // deprecated |
||
35 | 'false' => [ |
||
36 | ['user', 'data.age'], |
||
37 | ['user', 'data.age'], |
||
38 | false, |
||
39 | ], |
||
40 | ]; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @dataProvider dataGetValuePath |
||
45 | */ |
||
46 | public function testGetValuePath(array $expectedValuePath, array $valuePath, bool|string|null $escape): void |
||
51 | } |
||
52 | |||
53 | public function testTooLongEscapeSymbol(): void |
||
62 |