Merge remote-tracking branch 'origin/master' into iframe
[htmlpurifier/bfroehle.git] / tests / HTMLPurifier / AttrTransform / BorderTest.php
blobd10aa28e644ed546de8dd075bf31cb6c68c3b664
1 <?php
3 class HTMLPurifier_AttrTransform_BorderTest extends HTMLPurifier_AttrTransformHarness
6 function setUp() {
7 parent::setUp();
8 $this->obj = new HTMLPurifier_AttrTransform_Border();
11 function testEmptyInput() {
12 $this->assertResult( array() );
15 function testBasicTransform() {
16 $this->assertResult(
17 array('border' => '1'),
18 array('style' => 'border:1px solid;')
22 function testLenientTreatmentOfInvalidInput() {
23 $this->assertResult(
24 array('border' => '10%'),
25 array('style' => 'border:10%px solid;')
29 function testPrependNewCSS() {
30 $this->assertResult(
31 array('border' => '23', 'style' => 'font-weight:bold;'),
32 array('style' => 'border:23px solid;font-weight:bold;')
38 // vim: et sw=4 sts=4