Prepended constants with C_ to avoid reserved words as per https://www.php.net/manual...
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / Strategy / MakeWellFormed / SkipInjectorTest.php
blob1407a2634738f67b3e73552c88f33e2a3b771e2e
1 <?php
3 class HTMLPurifier_Strategy_MakeWellFormed_SkipInjectorTest extends HTMLPurifier_StrategyHarness
5 public function setUp()
7 parent::setUp();
8 $this->obj = new HTMLPurifier_Strategy_MakeWellFormed();
9 $this->config->set('AutoFormat.Custom', array(
10 new HTMLPurifier_Strategy_MakeWellFormed_SkipInjector()
11 ));
13 public function testEmpty()
15 $this->assertResult('');
17 public function testMultiply()
19 $this->assertResult('<br />', '<br /><br />');
21 public function testMultiplyMultiply()
23 $this->config->set('AutoFormat.Custom', array(
24 new HTMLPurifier_Strategy_MakeWellFormed_SkipInjector(),
25 new HTMLPurifier_Strategy_MakeWellFormed_SkipInjector()
26 ));
27 $this->assertResult('<br />', '<br /><br /><br /><br />');
31 // vim: et sw=4 sts=4