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