예제 #1
0
파일: NodeTest.php 프로젝트: rodenas2u/lol
 public function testRoot()
 {
     $root = (new Node('root'))->addChild((new Node('child'))->addChild($grandchild = new Node('grandchild')));
     $this->assertSame($root, $grandchild->root());
 }