Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class JsonSerializerTest extends TestCase |
||
7 | { |
||
8 | /** |
||
9 | * @dataProvider dataProviderSerialize |
||
10 | */ |
||
11 | public function testSerialize($data): void |
||
12 | { |
||
13 | $serializer = new JsonSerializer(); |
||
14 | $value = $serializer->serialize($data); |
||
15 | $this->assertEquals(json_encode($data), $value); |
||
16 | $this->assertEquals($data, $serializer->unserialize($value)); |
||
17 | } |
||
18 | |||
19 | public function dataProviderSerialize(): array |
||
25 | ]; |
||
26 | } |
||
28 |