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