Exemplo n.º 1
0
 public function testSetAndGetParent()
 {
     $root = new Node();
     $child = new Node('foo');
     $child->setParent($root);
     $this->assertEquals($root, $child->getParent());
 }