3 class HTMLPurifier_AttrTransform_NameSyncTest
extends HTMLPurifier_AttrTransformHarness
6 public function setUp()
9 $this->obj
= new HTMLPurifier_AttrTransform_NameSync();
10 $this->accumulator
= new HTMLPurifier_IDAccumulator();
11 $this->context
->register('IDAccumulator', $this->accumulator
);
12 $this->config
->set('Attr.EnableID', true);
15 public function testEmpty()
17 $this->assertResult( array() );
20 public function testAllowSame()
23 array('name' => 'free', 'id' => 'free')
27 public function testAllowDifferent()
30 array('name' => 'tryit', 'id' => 'thisgood')
34 public function testCheckName()
36 $this->accumulator
->add('notok');
38 array('name' => 'notok', 'id' => 'ok'),