public function testCanRemoveChild() { $node = new Node(Tree::ROOT_NODE_ID); $child = new Node('node', $node); $node->addChild($child); $node->removeChild($child); $this->assertTrue(0 === $node->getChildren()->count()); }