예제 #1
0
파일: NodeTest.php 프로젝트: rodenas2u/lol
 public function testRemoveAllChildrenRemoveParentReferences()
 {
     $root = new Node();
     $root->addChild($child1 = new Node('child1'))->removeAllChildren();
     $this->assertNull($child1->getParent());
 }