Пример #1
0
 public function testPluginProxy()
 {
     $proxy = new ProxyHelper('baz', true, 3);
     $dwoo = new Dwoo(DWOO_COMPILE_DIR, DWOO_CACHE_DIR);
     $dwoo->setPluginProxy($proxy);
     $tpl = new Dwoo_Template_String('{TestProxy("baz", true, 3)}');
     $tpl->forceCompilation();
     $this->assertEquals('valid', $dwoo->get($tpl, array(), $this->compiler));
 }
Пример #2
0
 public function testPluginProxyGetSet()
 {
     $proxy = new ProxyHelper();
     $dwoo = new Dwoo();
     $dwoo->setPluginProxy($proxy);
     $this->assertEquals($proxy, $dwoo->getPluginProxy());
 }