diff --git a/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php b/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php
index 72d29675..547b3929 100644
--- a/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php
+++ b/tests/UnitTests/TemplateSource/TagTests/Strip/CompileStripTest.php
@@ -57,4 +57,20 @@ class CompileStripTest extends PHPUnit_Smarty
foobar'), $this->smarty->fetch('strip_multi_line_textarea_html_tag.tpl'));
}
+
+ /**
+ * test strip tag output tag
+ */
+ public function testStripOutputTag()
+ {
+ $this->assertEquals('
1 italic
', $this->smarty->fetch('strip_with_output_tag.tpl'));
+ }
+
+ /**
+ * test strip tag no output tag
+ */
+ public function testStripNoOutputTag()
+ {
+ $this->assertEquals('italic
', $this->smarty->fetch('strip_with_no_output_tag.tpl'));
+ }
}
diff --git a/tests/UnitTests/TemplateSource/TagTests/Strip/templates/strip_with_no_output_tag.tpl b/tests/UnitTests/TemplateSource/TagTests/Strip/templates/strip_with_no_output_tag.tpl
new file mode 100644
index 00000000..3a6fe026
--- /dev/null
+++ b/tests/UnitTests/TemplateSource/TagTests/Strip/templates/strip_with_no_output_tag.tpl
@@ -0,0 +1,3 @@
+{strip}
+ {counter assign=foo} italic
+{/strip}
\ No newline at end of file
diff --git a/tests/UnitTests/TemplateSource/TagTests/Strip/templates/strip_with_output_tag.tpl b/tests/UnitTests/TemplateSource/TagTests/Strip/templates/strip_with_output_tag.tpl
new file mode 100644
index 00000000..b23240a6
--- /dev/null
+++ b/tests/UnitTests/TemplateSource/TagTests/Strip/templates/strip_with_output_tag.tpl
@@ -0,0 +1,3 @@
+{strip}
+ {counter} italic
+{/strip}
\ No newline at end of file