Cannot use in Smarty3 yet, revert to @expectedException

This commit is contained in:
Simon Wisselink
2021-02-01 10:33:00 +01:00
parent 288a54f6b0
commit 8fc66e27a7
2 changed files with 2 additions and 2 deletions

0
expectException Normal file
View File

View File

@@ -385,10 +385,10 @@ class SecurityTest extends PHPUnit_Smarty
/**
* In security mode, accessing $smarty.template_object should be illegal.
* @expectedException SmartyCompilerException
*/
public function testSmartyTemplateObject() {
$this->expectException(SmartyCompilerException::class);
$this->smarty->display('string:{$smarty.template_object}');
$this->smarty->display('string:{$smarty.template_object}');
}
}