obj = new HTMLPurifier_Strategy_MakeWellFormed(); $this->config->set('AutoFormat.Custom', array( new HTMLPurifier_Strategy_MakeWellFormed_EndRewindInjector() )); } public function testBasic() { $this->assertResult(''); } public function testFunction() { $this->assertResult('asdf',''); } public function testFailedFunction() { $this->assertResult('asdasdfasdf',''); } public function testPadded() { $this->assertResult('asdf',''); } public function testDoubled() { $this->config->set('AutoFormat.Custom', array( new HTMLPurifier_Strategy_MakeWellFormed_EndRewindInjector(), new HTMLPurifier_Strategy_MakeWellFormed_EndRewindInjector(), )); $this->assertResult('asdf', ''); } } // vim: et sw=4 sts=4