Prepended constants with C_ to avoid reserved words as per https://www.php.net/manual...
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / AttrTransform / BorderTest.php
blobd59674d58334892d8a83461d303b8516a8211919
1 <?php
3 class HTMLPurifier_AttrTransform_BorderTest extends HTMLPurifier_AttrTransformHarness
6 public function setUp()
8 parent::setUp();
9 $this->obj = new HTMLPurifier_AttrTransform_Border();
12 public function testEmptyInput()
14 $this->assertResult( array() );
17 public function testBasicTransform()
19 $this->assertResult(
20 array('border' => '1'),
21 array('style' => 'border:1px solid;')
25 public function testLenientTreatmentOfInvalidInput()
27 $this->assertResult(
28 array('border' => '10%'),
29 array('style' => 'border:10%px solid;')
33 public function testPrependNewCSS()
35 $this->assertResult(
36 array('border' => '23', 'style' => 'font-weight:bold;'),
37 array('style' => 'border:23px solid;font-weight:bold;')
43 // vim: et sw=4 sts=4