From 8fc66e27a7566e0ecba77ee2412406dc2154ce4b Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Mon, 1 Feb 2021 10:33:00 +0100 Subject: [PATCH] Cannot use in Smarty3 yet, revert to @expectedException --- expectException | 0 tests/UnitTests/SecurityTests/SecurityTest.php | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 expectException diff --git a/expectException b/expectException new file mode 100644 index 00000000..e69de29b diff --git a/tests/UnitTests/SecurityTests/SecurityTest.php b/tests/UnitTests/SecurityTests/SecurityTest.php index 4af37e16..bbb8b4e8 100644 --- a/tests/UnitTests/SecurityTests/SecurityTest.php +++ b/tests/UnitTests/SecurityTests/SecurityTest.php @@ -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}'); } }