public function testSetAndGetParent() { $root = new Node(); $child = new Node('foo'); $child->setParent($root); $this->assertEquals($root, $child->getParent()); }