mirror of
https://github.com/smarty-php/smarty.git
synced 2025-09-25 20:00:54 +02:00
Cannot use in Smarty3 yet, revert to @expectedException
This commit is contained in:
@@ -435,9 +435,9 @@ class CompileFunctionTest extends PHPUnit_Smarty
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Test handling of function names that are a security risk
|
* Test handling of function names that are a security risk
|
||||||
|
* @expectedException SmartyCompilerException
|
||||||
*/
|
*/
|
||||||
public function testIllegalFunctionName() {
|
public function testIllegalFunctionName() {
|
||||||
$this->expectException(SmartyCompilerException::class);
|
|
||||||
$this->smarty->fetch('string:{function name=\'rce(){};echo "hi";function \'}{/function}');
|
$this->smarty->fetch('string:{function name=\'rce(){};echo "hi";function \'}{/function}');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user