3 class HTMLPurifier_AttrTransform_NameTest
extends HTMLPurifier_AttrTransformHarness
8 $this->obj
= new HTMLPurifier_AttrTransform_Name();
11 function testEmpty() {
12 $this->assertResult( array() );
15 function testTransformNameToID() {
17 array('name' => 'free'),
22 function testExistingIDOverridesName() {
24 array('name' => 'tryit', 'id' => 'tobad'),
25 array('id' => 'tobad')