Skip to content

Commit 43d3f8d

Browse files
committed
docs: add test case
1 parent e335e79 commit 43d3f8d

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests/system/View/ParserTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,19 @@ public function testParserNoEscape()
605605
$this->assertSame('<script>Heroes</script>', $this->parser->renderString($template));
606606
}
607607

608+
public function testParserNoEscapeAndDelimiterChange()
609+
{
610+
$this->parser->setDelimiters('{{', '}}');
611+
612+
$data = [
613+
'title' => '<script>Heroes</script>',
614+
];
615+
$this->parser->setData($data);
616+
617+
$template = '{{! title !}}';
618+
$this->assertSame('<script>Heroes</script>', $this->parser->renderString($template));
619+
}
620+
608621
public function testIgnoresComments()
609622
{
610623
$data = [

0 commit comments

Comments
 (0)