update strip test

This commit is contained in:
uwetews
2015-12-21 23:33:41 +01:00
parent 5af36fa255
commit 5f9e853035
2 changed files with 17 additions and 0 deletions

View File

@@ -39,6 +39,13 @@ class CompileStripTest extends PHPUnit_Smarty
{ {
$this->assertContains('<div style="float: right; cursor: url;">[<a onmouseover="this.style.cursor=\'pointer\'" onmouseup="document.getElementById(\'screenEdit_($screen.id)\').style.display=\'none\'";>X</a>]</div>foobar', $this->smarty->fetch('strip_multi_line_html_tag.tpl')); $this->assertContains('<div style="float: right; cursor: url;">[<a onmouseover="this.style.cursor=\'pointer\'" onmouseup="document.getElementById(\'screenEdit_($screen.id)\').style.display=\'none\'";>X</a>]</div>foobar', $this->smarty->fetch('strip_multi_line_html_tag.tpl'));
} }
/**
* test strip tag multi line html
*/
public function testStripHtmlTag()
{
$this->assertContains('<ul><li><a href="#">BlaBla</a></li><li><a href="#">BlaBla</a></li></ul>', $this->smarty->fetch('strip_html_tag.tpl'));
}
/** /**
* test strip tag multi line html * test strip tag multi line html
*/ */

View File

@@ -0,0 +1,10 @@
{strip}
<ul>
<li>
<a href="#">BlaBla</a>
</li>
<li>
<a href="#">BlaBla</a>
</li>
</ul>
{/strip}