3 require_once 'HTMLPurifier/AttrTypes.php';
5 class HTMLPurifier_AttrTypesTest
extends HTMLPurifier_Harness
9 $types = new HTMLPurifier_AttrTypes();
11 $this->assertIdentical(
16 $this->expectError('Cannot retrieve undefined attribute type foobar');
17 $types->get('foobar');
19 $this->assertIdentical(
20 $types->get('Enum#foo,bar'),
21 new HTMLPurifier_AttrDef_Enum(array('foo', 'bar'))