4 'HTMLPurifier_AttrDef',
5 'HTMLPurifier_AttrDefTestable',
8 class HTMLPurifier_AttrDefTest
extends HTMLPurifier_Harness
11 function test_parseCDATA() {
13 $def = new HTMLPurifier_AttrDefTestable();
15 $this->assertIdentical('', $def->parseCDATA(''));
16 $this->assertIdentical('', $def->parseCDATA("\t\n\r \t\t"));
17 $this->assertIdentical('foo', $def->parseCDATA("\t\n\r foo\t\t"));
18 $this->assertIdentical('translate to space', $def->parseCDATA("translate\nto\tspace"));
22 function test_make() {
24 $def = new HTMLPurifier_AttrDefTestable();
25 $def2 = $def->make('');
26 $this->assertIdentical($def, $def2);