PSR-2 reformatting PHPDoc corrections
[htmlpurifier.git] / tests / HTMLPurifier / Strategy / RemoveForeignElements_TidyTest.php
blob3f55665d80f8a099c29712ff78d62b02858fceb0
1 <?php
3 class HTMLPurifier_Strategy_RemoveForeignElements_TidyTest
4 extends HTMLPurifier_StrategyHarness
7 public function setUp()
9 parent::setUp();
10 $this->obj = new HTMLPurifier_Strategy_RemoveForeignElements();
11 $this->config->set('HTML.TidyLevel', 'heavy');
14 public function testCenterTransform()
16 $this->assertResult(
17 '<center>Look I am Centered!</center>',
18 '<div style="text-align:center;">Look I am Centered!</div>'
22 public function testFontTransform()
24 $this->assertResult(
25 '<font color="red" face="Arial" size="6">Big Warning!</font>',
26 '<span style="color:red;font-family:Arial;font-size:xx-large;">Big'.
27 ' Warning!</span>'
31 public function testTransformToForbiddenElement()
33 $this->config->set('HTML.Allowed', 'div');
34 $this->assertResult(
35 '<font color="red" face="Arial" size="6">Big Warning!</font>',
36 'Big Warning!'
40 public function testMenuTransform()
42 $this->assertResult(
43 '<menu><li>Item 1</li></menu>',
44 '<ul><li>Item 1</li></ul>'
50 // vim: et sw=4 sts=4