コード例 #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());
 }