Uwe Tews
2017-10-18 09:12:59 +02:00
parent fd1846a286
commit 37288b44e0
3 changed files with 14 additions and 2 deletions

View File

@@ -86,9 +86,20 @@ class DoubleQuotedStringTest extends PHPUnit_Smarty
* @expectedException SmartyCompilerException * @expectedException SmartyCompilerException
* @expectedExceptionMessage unclosed "{if}" in doubled quoted string * @expectedExceptionMessage unclosed "{if}" in doubled quoted string
*/ */
public function testtestDoubleQuotedUnclosedBlock_001() public function testDoubleQuotedUnclosedBlock_001()
{ {
$this->smarty->fetch('001_unclosedBlock.tpl'); $this->smarty->fetch('001_unclosedBlock.tpl');
} }
/**
*
* test closed block tag
* {"{if true}hello world{/if}"}
*
*/
public function testDoubleQuotedClosedBlock_001()
{
$this->assertEquals('hello world', $this->smarty->fetch('001_closedBlock.tpl'));
}
} }

View File

@@ -0,0 +1 @@
{"{if true}hello world{/if}"}

View File

@@ -1 +1 @@
{"hello {if true} world"} {"{if true} world"}