3 class HTMLPurifier_AttrTypesTest
extends HTMLPurifier_Harness
7 $types = new HTMLPurifier_AttrTypes();
9 $this->assertIdentical(
11 new HTMLPurifier_AttrDef_Text()
14 $this->expectError('Cannot retrieve undefined attribute type foobar');
15 $types->get('foobar');
17 $this->assertIdentical(
18 $types->get('Enum#foo,bar'),
19 new HTMLPurifier_AttrDef_Enum(array('foo', 'bar'))