Fix two minor bugs, updating Phorum and removing unused $dir variable.
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / AttrTransform / BoolToCSSTest.php
blob73f9d6b86af5241908b499984c199edc9f79f5b2
1 <?php
3 class HTMLPurifier_AttrTransform_BoolToCSSTest extends HTMLPurifier_AttrTransformHarness
6 function setUp() {
7 parent::setUp();
8 $this->obj = new HTMLPurifier_AttrTransform_BoolToCSS('foo', 'bar:3in;');
11 function testEmptyInput() {
12 $this->assertResult( array() );
15 function testBasicTransform() {
16 $this->assertResult(
17 array('foo' => 'foo'),
18 array('style' => 'bar:3in;')
22 function testIgnoreValueOfBooleanAttribute() {
23 $this->assertResult(
24 array('foo' => 'no'),
25 array('style' => 'bar:3in;')
29 function testPrependCSS() {
30 $this->assertResult(
31 array('foo' => 'foo', 'style' => 'background-color:#F00;'),
32 array('style' => 'bar:3in;background-color:#F00;')
38 // vim: et sw=4 sts=4