3 class HTMLPurifier_AttrDef_HTML_BoolTest
extends HTMLPurifier_AttrDefHarness
7 $this->def
= new HTMLPurifier_AttrDef_HTML_Bool('foo');
8 $this->assertDef('foo');
9 $this->assertDef('', false);
10 $this->assertDef('bar', 'foo');
13 function test_make() {
14 $factory = new HTMLPurifier_AttrDef_HTML_Bool();
15 $def = $factory->make('foo');
16 $def2 = new HTMLPurifier_AttrDef_HTML_Bool('foo');
17 $this->assertIdentical($def, $def2);