Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function testDeserialize() |
||
26 | { |
||
27 | $data = json_decode('{"name":"Foobar","car":{"super_model":"val_model","car_size":"val_size","color":"val_color"},"birthday":"1995-07-14T20:07:41+02:00"}', true); |
||
28 | $obj = $this->deserialize($data, Owner::class); |
||
29 | |||
30 | $this->assertPropertyValue($obj, 'name', 'Foobar'); |
||
31 | $car = $obj->getCar(); |
||
32 | $this->assertInstanceOf(Car::class, $car); |
||
33 | $this->assertPropertyValue($car, 'color', 'val_color'); |
||
34 | } |
||
35 | } |
||
36 |