コード例 #1
0
ファイル: NodeTest.php プロジェクト: rodenas2u/lol
 public function testIsRoot()
 {
     $root = new Node('root');
     $root->addChild($child = new Node('child'));
     $this->assertTrue($root->isRoot());
     $this->assertFalse($child->isRoot());
 }