mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 09:54:27 +02:00
Cannot use in Smarty3 yet, revert to @expectedException
This commit is contained in:
0
expectException
Normal file
0
expectException
Normal 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}');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user