diff --git a/UnitTests/Compiler/Delimiter/DelimiterTest.php b/UnitTests/Compiler/Delimiter/DelimiterTest.php index 3bddff1..11e333e 100644 --- a/UnitTests/Compiler/Delimiter/DelimiterTest.php +++ b/UnitTests/Compiler/Delimiter/DelimiterTest.php @@ -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)); + } }