public isChild ( mageekguy\atoum\template\data $child ) | ||
$child | mageekguy\atoum\template\data |
public function isChild(template\data $child)
{
return $child->parent === $this;
}
public function testIsChild() { $template = new atoum\template(); $childTemplate = new atoum\template(); $this->assert->boolean($template->isChild($childTemplate))->isFalse(); $template->addChild($childTemplate); $this->assert->boolean($template->isChild($childTemplate))->isTrue(); }