function testCompileContentUntrusted() { $compil = new testJtplContentCompiler(); $compil->outputType = 'html'; $compil->trusted = false; $compil->setUserPlugins(array(), array('bla' => 'testjtplcontentUserFunction')); foreach ($this->contentUntrusted as $k => $t) { try { $this->assertEqualOrDiff($t[1], $compil->compileContent2($t[0])); } catch (Exception $e) { $this->fail("Test '{$k}', Unknown Exception: " . $e->getMessage()); } } }