Beispiel #1
0
 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();
 }
Beispiel #2
0
 public function addToParent($mixed = array())
 {
     $this->setWith($mixed);
     return parent::addToParent();
 }
Beispiel #3
0
 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);
 }