Exemple #1
0
 public function testNodeBuilder()
 {
     $nodeBuilder = new NodeBuilder('root', array());
     $childNode = new NodeBuilder('child', array());
     $ret = $nodeBuilder->builder($childNode);
     $this->assertEquals(array('child' => $childNode), $nodeBuilder->children);
     $this->assertEquals($nodeBuilder, $ret);
 }