public function testIsRoot() { $data = new template\data(); $this->assert->boolean($data->isRoot())->isTrue(); $data->setParent(new template\tag(uniqid())); $this->assert->boolean($data->isRoot())->isFalse(); }
public function addToParent($mixed = array()) { $this->setWith($mixed); return parent::addToParent(); }
public function testBuild() { $this->if($data = new template\data())->then->object($data->build())->isIdenticalTo($data)->if($data = new template\data(uniqid()))->then->object($data->build())->isIdenticalTo($data); }