Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit a0e1348

Browse files
committed
New PHP tests
1 parent ef2621d commit a0e1348

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnitTests/SecurityTests/SecurityTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function testSmartyPhpQuoteAsp()
223223
public function testSmartyPhpRemove()
224224
{
225225
$this->smarty->security_policy->php_handling = Smarty::PHP_REMOVE;
226-
$this->assertEquals(' echo "hello world"; ', $this->smarty->fetch('eval:<?php echo "hello world"; ?>'));
226+
$this->assertEquals('', $this->smarty->fetch('eval:<?php echo "hello world"; ?>'));
227227
}
228228

229229
public function testSmartyPhpRemoveAsp()
@@ -233,7 +233,7 @@ public function testSmartyPhpRemoveAsp()
233233
$this->markTestSkipped('asp tags disabled in php.ini');
234234
}
235235
$this->smarty->security_policy->php_handling = Smarty::PHP_REMOVE;
236-
$this->assertEquals(' echo "hello world"; ', $this->smarty->fetch('eval:<% echo "hello world"; %>'));
236+
$this->assertEquals('', $this->smarty->fetch('eval:<% echo "hello world"; %>'));
237237
}
238238

239239
/**

0 commit comments

Comments
 (0)