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