Skip to content

Commit

Permalink
Cannot use in Smarty3 yet, revert to @ExpectedException
Browse files Browse the repository at this point in the history
  • Loading branch information
wisskid committed Feb 1, 2021
1 parent 288a54f commit 8fc66e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Empty file added expectException
Empty file.
4 changes: 2 additions & 2 deletions tests/UnitTests/SecurityTests/SecurityTest.php
Expand Up @@ -385,10 +385,10 @@ public function testNotTrustedUri()

/**
* 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}');
}

}
Expand Down

0 comments on commit 8fc66e2

Please sign in to comment.