Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
23 | public function testNewNodeSimplifier() { |
||
24 | $factory = new NodeSimplifierFactory(); |
||
25 | |||
26 | $this->assertEquals( |
||
27 | new TripleNode( |
||
28 | new ResourceListNode(), |
||
29 | new FirstNode(new SortNode(new resourceListNode(), new StringResourceNode('foo'))), |
||
30 | new MissingNode() |
||
31 | ), |
||
32 | $factory->newNodeSimplifier()->simplify(new TripleNode( |
||
33 | new UnionNode(array()), |
||
34 | new FirstNode(new SortNode( |
||
35 | new IntersectionNode(array( |
||
36 | new LastNode(new ResourceListNode()) |
||
37 | )), |
||
38 | new StringResourceNode('foo') |
||
39 | )), |
||
40 | new MissingNode() |
||
41 | )) |
||
42 | ); |
||
43 | } |
||
44 | } |
||
45 |