diff --git a/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php b/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php index bcfc8311..1cdeb5da 100644 --- a/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php +++ b/tests/UnitTests/TemplateSource/TagTests/Php/CompilePhpTest.php @@ -96,8 +96,8 @@ public function testPHP_REMOVE_php() public function testPHP_QUOTE_php() { $this->smarty->setPhpHandling(Smarty::PHP_QUOTE); - $content = $this->smarty->fetch("string:qaqe"); - $this->assertEquals("qa<?php echo 'hello world'; ?>qe", $content, 'qoute '); + $content = $this->smarty->fetch("string:qaqe"); + $this->assertEquals("qa<?php echo 'hello world';\necho ' multiline'; ?>qe", $content, 'qoute '); } /** * test <%...%> tag @@ -135,9 +135,9 @@ public function testPHP_REMOVE_php() public function testPHP_ALLOW_asp() { $this->smartyBC->setPhpHandling(Smarty::PHP_ALLOW); - $content = $this->smartyBC->fetch("string:aa <% echo 'hello world';%> ae"); + $content = $this->smartyBC->fetch("string:aa <% echo 'hello world';\n echo ' multiline';%> ae"); if (ini_get('asp_tags')) { - $this->assertEquals('aa hello world ae', $content, 'allow <% %>'); + $this->assertEquals('aa hello world multiline ae', $content, 'allow <% %>'); } else { $this->assertEquals("aa <% echo 'hello world';%> ae", $content, 'allow asp disabled <% %>'); } @@ -149,8 +149,8 @@ public function testPHP_REMOVE_php() public function testPHP_ALLOW_script() { $this->smartyBC->setPhpHandling(Smarty::PHP_ALLOW); - $content = $this->smartyBC->fetch("string:aa ae"); - $this->assertEquals('aa hello world ae', $content, "allow ae"); + $this->assertEquals('aa hello world multiline ae', $content, "allow