3 class HTMLPurifier_Strategy_CoreTest
extends HTMLPurifier_StrategyHarness
8 $this->obj
= new HTMLPurifier_Strategy_Core();
11 function testBlankInput() {
12 $this->assertResult('');
15 function testMakeWellFormed() {
17 '<b>Make well formed.',
18 '<b>Make well formed.</b>'
22 function testFixNesting() {
24 '<b><div>Fix nesting.</div></b>',
25 '<b></b><div>Fix nesting.</div>'
29 function testRemoveForeignElements() {
31 '<asdf>Foreign element removal.</asdf>',
32 'Foreign element removal.'
36 function testFirstThree() {
38 '<foo><b><div>All three.</div></b>',
39 '<b></b><div>All three.</div>'