Total Complexity | 3 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | 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 | 'emoji' => [ |
||
27 | ['user', 'the.data\😎age'], |
||
28 | ['user', 'the.data😎age'], |
||
29 | '😎', |
||
30 | ], |
||
31 | |||
32 | // deprecated |
||
33 | 'true' => [ |
||
34 | ['user', 'data\.age'], |
||
35 | ['user', 'data.age'], |
||
36 | true, |
||
37 | ], |
||
38 | |||
39 | // deprecated |
||
40 | 'false' => [ |
||
41 | ['user', 'data.age'], |
||
42 | ['user', 'data.age'], |
||
43 | false, |
||
44 | ], |
||
45 | ]; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @dataProvider dataGetValuePath |
||
50 | */ |
||
51 | public function testGetValuePath(array $expectedValuePath, array $valuePath, bool|string|null $escape): void |
||
56 | } |
||
57 | |||
58 | public function testTooLongEscapeSymbol(): void |
||
67 |