mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
update tests to cover
https://github.com/smarty-php/smarty/issues/396 https://github.com/smarty-php/smarty/issues/397 https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392
This commit is contained in:
@@ -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'));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1 @@
|
|||||||
|
{"{if true}hello world{/if}"}
|
@@ -1 +1 @@
|
|||||||
{"hello {if true} world"}
|
{"{if true} world"}
|
Reference in New Issue
Block a user