update strip test

This commit is contained in:
uwetews
2016-02-10 01:08:01 +01:00
parent 2f7c0f0a99
commit 150d24822d
3 changed files with 22 additions and 0 deletions

View File

@@ -57,4 +57,20 @@ class CompileStripTest extends PHPUnit_Smarty
</textarea> foobar'), $this->smarty->fetch('strip_multi_line_textarea_html_tag.tpl')); </textarea> foobar'), $this->smarty->fetch('strip_multi_line_textarea_html_tag.tpl'));
} }
/**
* test strip tag output tag
*/
public function testStripOutputTag()
{
$this->assertEquals('<h1>1 <em>italic</em></h1>', $this->smarty->fetch('strip_with_output_tag.tpl'));
}
/**
* test strip tag no output tag
*/
public function testStripNoOutputTag()
{
$this->assertEquals('<h1><em>italic</em></h1>', $this->smarty->fetch('strip_with_no_output_tag.tpl'));
}
} }

View File

@@ -0,0 +1,3 @@
{strip}
<h1>{counter assign=foo} <em>italic</em></h1>
{/strip}

View File

@@ -0,0 +1,3 @@
{strip}
<h1>{counter} <em>italic</em></h1>
{/strip}