mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
update strip test
This commit is contained in:
@@ -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'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,3 @@
|
|||||||
|
{strip}
|
||||||
|
<h1>{counter assign=foo} <em>italic</em></h1>
|
||||||
|
{/strip}
|
@@ -0,0 +1,3 @@
|
|||||||
|
{strip}
|
||||||
|
<h1>{counter} <em>italic</em></h1>
|
||||||
|
{/strip}
|
Reference in New Issue
Block a user