Example #1
0
 public function testPluginProxyGetSet()
 {
     $proxy = new ProxyHelper();
     $dwoo = new Dwoo_Core();
     $dwoo->setPluginProxy($proxy);
     $this->assertEquals($proxy, $dwoo->getPluginProxy());
 }
Example #2
0
 public function testPluginProxy()
 {
     $proxy = new ProxyHelper('baz', true, 3);
     $dwoo = new Dwoo_Core(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));
 }