diff --git a/tests/UnitTests/Compiler/Delimiter/DelimiterTest.php b/tests/UnitTests/Compiler/Delimiter/DelimiterTest.php index 3bddff1b..11e333ef 100644 --- a/tests/UnitTests/Compiler/Delimiter/DelimiterTest.php +++ b/tests/UnitTests/Compiler/Delimiter/DelimiterTest.php @@ -89,4 +89,14 @@ class DelimiterTest extends PHPUnit_Smarty $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)); + } }