obj = new HTMLPurifier_Strategy_MakeWellFormed(); $this->config->set('AutoFormat.Custom', array( new HTMLPurifier_Strategy_MakeWellFormed_EndRewindInjector() )); } function testBasic() { $this->assertResult(''); } function testFunction() { $this->assertResult('asdf',''); } function testFailedFunction() { $this->assertResult('asdasdfasdf',''); } function testPadded() { $this->assertResult('asdf',''); } 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