3 class HTMLPurifier_AttrTransform_NameTest
extends HTMLPurifier_AttrTransformHarness
6 public function setUp()
9 $this->obj
= new HTMLPurifier_AttrTransform_Name();
12 public function testEmpty()
14 $this->assertResult( array() );
17 public function testTransformNameToID()
20 array('name' => 'free'),
25 public function testExistingIDOverridesName()
28 array('name' => 'tryit', 'id' => 'tobad'),
29 array('id' => 'tobad')