Cannot use in Smarty3 yet, revert to @expectedException

This commit is contained in:
Simon Wisselink
2021-02-01 10:31:20 +01:00
parent 165f1bd4d2
commit 2543174460

View File

@@ -435,9 +435,9 @@ class CompileFunctionTest extends PHPUnit_Smarty
/**
* Test handling of function names that are a security risk
* @expectedException SmartyCompilerException
*/
public function testIllegalFunctionName() {
$this->expectException(SmartyCompilerException::class);
$this->smarty->fetch('string:{function name=\'rce(){};echo "hi";function \'}{/function}');
}