From b55f4cf551c3fcb1e6a8e530457f1c78282c00fb Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Sat, 23 May 2015 18:53:25 +0200 Subject: [PATCH] New PHP tests --- tests/UnitTests/SecurityTests/SecurityTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/UnitTests/SecurityTests/SecurityTest.php b/tests/UnitTests/SecurityTests/SecurityTest.php index a040e79c..5401bf78 100644 --- a/tests/UnitTests/SecurityTests/SecurityTest.php +++ b/tests/UnitTests/SecurityTests/SecurityTest.php @@ -223,7 +223,7 @@ class SecurityTest extends PHPUnit_Smarty public function testSmartyPhpRemove() { $this->smarty->security_policy->php_handling = Smarty::PHP_REMOVE; - $this->assertEquals(' echo "hello world"; ', $this->smarty->fetch('eval:')); + $this->assertEquals('', $this->smarty->fetch('eval:')); } public function testSmartyPhpRemoveAsp() @@ -233,7 +233,7 @@ class SecurityTest extends PHPUnit_Smarty $this->markTestSkipped('asp tags disabled in php.ini'); } $this->smarty->security_policy->php_handling = Smarty::PHP_REMOVE; - $this->assertEquals(' echo "hello world"; ', $this->smarty->fetch('eval:<% echo "hello world"; %>')); + $this->assertEquals('', $this->smarty->fetch('eval:<% echo "hello world"; %>')); } /**