3 class HTMLPurifier_AttrTransform_BorderTest
extends HTMLPurifier_AttrTransformHarness
6 public function setUp()
9 $this->obj
= new HTMLPurifier_AttrTransform_Border();
12 public function testEmptyInput()
14 $this->assertResult( array() );
17 public function testBasicTransform()
20 array('border' => '1'),
21 array('style' => 'border:1px solid;')
25 public function testLenientTreatmentOfInvalidInput()
28 array('border' => '10%'),
29 array('style' => 'border:10%px solid;')
33 public function testPrependNewCSS()
36 array('border' => '23', 'style' => 'font-weight:bold;'),
37 array('style' => 'border:23px solid;font-weight:bold;')