Total Complexity | 1 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | final class ObjectParserTest extends TestCase |
||
11 | { |
||
12 | public function dataSkipStaticProperties(): array |
||
13 | { |
||
14 | return [ |
||
15 | [ |
||
16 | ['a' => 4, 'b' => 2], |
||
17 | new class () { |
||
18 | public int $a = 4; |
||
19 | public static int $b = 2; |
||
20 | }, |
||
21 | false, |
||
22 | ], |
||
23 | [ |
||
24 | ['a' => 4, 'c' => 'hello'], |
||
25 | new class () { |
||
26 | public int $a = 4; |
||
27 | public static int $b = 2; |
||
28 | public string $c = 'hello'; |
||
29 | }, |
||
30 | true, |
||
31 | ], |
||
32 | ]; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @dataProvider dataSkipStaticProperties |
||
37 | */ |
||
38 | public function testSkipStaticProperties(array $expectedData, object $object, bool $skipStaticProperties): void |
||
43 | } |
||
44 | |||
45 | public function testSkipStaticPropertiesDefault(): void |
||
46 | { |
||
55 | } |
||
56 | } |
||
57 |