3 class HTMLPurifier_AttrTypesTest
extends HTMLPurifier_Harness
6 public function test_get()
8 $types = new HTMLPurifier_AttrTypes();
10 $this->assertIdentical(
12 new HTMLPurifier_AttrDef_Text()
15 $this->expectError('Cannot retrieve undefined attribute type foobar');
16 $types->get('foobar');
18 $this->assertIdentical(
19 $types->get('Enum#foo,bar'),
20 new HTMLPurifier_AttrDef_Enum(array('foo', 'bar'))