3 class HTMLPurifier_AttrTransform_NameSyncTest
extends HTMLPurifier_AttrTransformHarness
8 $this->obj
= new HTMLPurifier_AttrTransform_NameSync();
9 $this->accumulator
= new HTMLPurifier_IDAccumulator();
10 $this->context
->register('IDAccumulator', $this->accumulator
);
11 $this->config
->set('Attr.EnableID', true);
14 function testEmpty() {
15 $this->assertResult( array() );
18 function testAllowSame() {
20 array('name' => 'free', 'id' => 'free')
24 function testAllowDifferent() {
26 array('name' => 'tryit', 'id' => 'thisgood')
30 function testCheckName() {
31 $this->accumulator
->add('notok');
33 array('name' => 'notok', 'id' => 'ok'),