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

Commit

Permalink
update tests to cover
Browse files Browse the repository at this point in the history
  • Loading branch information
uwetews committed Oct 18, 2017
1 parent cff7d20 commit 8beca79
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,20 @@ public function dataTestDoubleQuoted()
* @expectedException SmartyCompilerException
* @expectedExceptionMessage unclosed "{if}" in doubled quoted string
*/
public function testtestDoubleQuotedUnclosedBlock_001()
public function testDoubleQuotedUnclosedBlock_001()
{
$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'));
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"{if true}hello world{/if}"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"hello {if true} world"}
{"{if true} world"}

0 comments on commit 8beca79

Please sign in to comment.