| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | public function testDeserialize() { |
||
| 18 | $deserializer = new ModuleResponseDeserializer(new MissingNodeDeserializer()); |
||
| 19 | $this->assertEquals( |
||
| 20 | new ModuleResponse( |
||
| 21 | 'en', |
||
| 22 | new MissingNode(), |
||
| 23 | array('accuracy' => 1), |
||
| 24 | array('a') |
||
| 25 | ) |
||
| 26 | , |
||
| 27 | $deserializer->deserialize(array( |
||
| 28 | 'language' => 'en', |
||
| 29 | 'tree' => array('type' => 'missing'), |
||
| 30 | 'measures' => array('accuracy' => 1), |
||
| 31 | 'trace' => array('a') |
||
| 32 | )) |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |