Exemplo n.º 1
0
 public function testSetScope()
 {
     $this->view->loadTemplate('string:{block name="testBlock"}Content{$test}{/block}');
     $this->view->setScope(1);
     $this->view->assign('test', 'Variable');
     $this->assertArrayCount(1, $this->view->Engine()->tpl_vars);
     $this->view->clearAssign();
     $this->view->setScope(3);
     $this->view->assign('test', 'Variable');
     $this->assertArrayCount(0, $this->view->Engine()->tpl_vars);
 }