3 require_once 'HTMLPurifier/AttrTransform/BoolToCSS.php';
4 require_once 'HTMLPurifier/AttrTransformHarness.php';
6 class HTMLPurifier_AttrTransform_BoolToCSSTest
extends HTMLPurifier_AttrTransformHarness
11 $this->obj
= new HTMLPurifier_AttrTransform_BoolToCSS('foo', 'bar:3in;');
16 $this->assertResult( array() );
19 array('foo' => 'foo'),
20 array('style' => 'bar:3in;')
23 // boolean attribute just has to be set: we don't care about
27 array('style' => 'bar:3in;')
31 array('foo' => 'foo', 'style' => 'background-color:#F00;'),
32 array('style' => 'bar:3in;background-color:#F00;')