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

Commit

Permalink
New PHP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uwetews committed May 23, 2015
1 parent ef2621d commit a0e1348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UnitTests/SecurityTests/SecurityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function testSmartyPhpQuoteAsp()
public function testSmartyPhpRemove()
{
$this->smarty->security_policy->php_handling = Smarty::PHP_REMOVE;
$this->assertEquals(' echo "hello world"; ', $this->smarty->fetch('eval:<?php echo "hello world"; ?>'));
$this->assertEquals('', $this->smarty->fetch('eval:<?php echo "hello world"; ?>'));
}

public function testSmartyPhpRemoveAsp()
Expand All @@ -233,7 +233,7 @@ public function testSmartyPhpRemoveAsp()
$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"; %>'));
}

/**
Expand Down

0 comments on commit a0e1348

Please sign in to comment.