Fix newline issues in tests.
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / Strategy / CoreTest.php
blobd5f9e27e8894b2a3d39ee488bfa25f16f6c6a503
1 <?php
3 class HTMLPurifier_Strategy_CoreTest extends HTMLPurifier_StrategyHarness
6 function setUp() {
7 parent::setUp();
8 $this->obj = new HTMLPurifier_Strategy_Core();
11 function testBlankInput() {
12 $this->assertResult('');
15 function testMakeWellFormed() {
16 $this->assertResult(
17 '<b>Make well formed.',
18 '<b>Make well formed.</b>'
22 function testFixNesting() {
23 $this->assertResult(
24 '<b><div>Fix nesting.</div></b>',
25 '<b></b><div>Fix nesting.</div>'
29 function testRemoveForeignElements() {
30 $this->assertResult(
31 '<asdf>Foreign element removal.</asdf>',
32 'Foreign element removal.'
36 function testFirstThree() {
37 $this->assertResult(
38 '<foo><b><div>All three.</div></b>',
39 '<b></b><div>All three.</div>'