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)); }
public function testPluginProxyGetSet() { $proxy = new ProxyHelper(); $dwoo = new Dwoo(); $dwoo->setPluginProxy($proxy); $this->assertEquals($proxy, $dwoo->getPluginProxy()); }