From 5f9e85303578112a3a06cfeaf3676446b30b3701 Mon Sep 17 00:00:00 2001 From: uwetews Date: Mon, 21 Dec 2015 23:33:41 +0100 Subject: [PATCH] update strip test --- .../TemplateSource/TagTests/Strip/CompileStripTest.php | 7 +++++++ .../TagTests/Strip/templates/strip_html_tag.tpl | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/UnitTests/TemplateSource/TagTests/Strip/templates/strip_html_tag.tpl diff --git a/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php b/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php index ee343e39..0785c328 100644 --- a/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php +++ b/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php @@ -39,6 +39,13 @@ class CompileStripTest extends PHPUnit_Smarty { $this->assertContains('
[X]
foobar', $this->smarty->fetch('strip_multi_line_html_tag.tpl')); } + /** + * test strip tag multi line html + */ + public function testStripHtmlTag() + { + $this->assertContains('', $this->smarty->fetch('strip_html_tag.tpl')); + } /** * test strip tag multi line html */ diff --git a/tests/UnitTests/TemplateSource/TagTests/Strip/templates/strip_html_tag.tpl b/tests/UnitTests/TemplateSource/TagTests/Strip/templates/strip_html_tag.tpl new file mode 100644 index 00000000..b9479616 --- /dev/null +++ b/tests/UnitTests/TemplateSource/TagTests/Strip/templates/strip_html_tag.tpl @@ -0,0 +1,10 @@ +{strip} + +{/strip} \ No newline at end of file