コード例 #1
0
ファイル: template.php プロジェクト: xihewang/atoum
 public function build($mixed = array())
 {
     foreach ($this->setWith($mixed)->children as $child) {
         $this->addData($child->getData());
     }
     return parent::build();
 }
コード例 #2
0
ファイル: data.php プロジェクト: xihewang/atoum
 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);
 }