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

Commit

Permalink
added test - bugfix some custom left and right delimiters like '{^' '…
Browse files Browse the repository at this point in the history
  • Loading branch information
uwetews committed Aug 31, 2018
1 parent bc7715d commit ec11f61
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions UnitTests/Compiler/Delimiter/DelimiterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,14 @@ public function testDelimiter5()
$tpl = $this->smarty->createTemplate('eval:{=assign var=foo value="hello world" nocache=}{=$foo=}');
$this->assertEquals("hello world", $this->smarty->fetch($tpl));
}
/**
* test {= =} delimiter for conficts with option flags
*/
public function testDelimiterIssue450()
{
$this->smarty->left_delimiter = '{^';
$this->smarty->right_delimiter = '^}';
$tpl = $this->smarty->createTemplate('eval:{^assign var=foo value="hello world" nocache^}{^$foo^}');
$this->assertEquals("hello world", $this->smarty->fetch($tpl));
}
}

0 comments on commit ec11f61

Please sign in to comment.