Whoops, forgot to edit WHATSNEW
[htmlpurifier.git] / tests / HTMLPurifier / Strategy / CoreTest.php
blob89a13f49ae0a1b97b5cec6c8c51d6c8a0d30b738
1 <?php
3 class HTMLPurifier_Strategy_CoreTest extends HTMLPurifier_StrategyHarness
6 public function setUp()
8 parent::setUp();
9 $this->obj = new HTMLPurifier_Strategy_Core();
12 public function testBlankInput()
14 $this->assertResult('');
17 public function testMakeWellFormed()
19 $this->assertResult(
20 '<b>Make well formed.',
21 '<b>Make well formed.</b>'
25 public function testFixNesting()
27 $this->assertResult(
28 '<b><div>Fix nesting.</div></b>',
29 '<b></b><div><b>Fix nesting.</b></div><b></b>'
33 public function testRemoveForeignElements()
35 $this->assertResult(
36 '<asdf>Foreign element removal.</asdf>',
37 'Foreign element removal.'
41 public function testFirstThree()
43 $this->assertResult(
44 '<foo><b><div>All three.</div></b>',
45 '<b></b><div><b>All three.</b></div><b></b>'
51 // vim: et sw=4 sts=4