mageekguy\atoum\template::isChild PHP 메소드

isChild() 공개 메소드

public isChild ( mageekguy\atoum\template\data $child )
$child mageekguy\atoum\template\data
    public function isChild(template\data $child)
    {
        return $child->parent === $this;
    }

Usage Example

예제 #1
0
 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();
 }