All values, including empty, are valid HTML bools.
[htmlpurifier.git] / tests / HTMLPurifier / AttrDef / HTML / BoolTest.php
blob8d05f03ab0e09d96fe8447cec8586486c38851f5
1 <?php
3 class HTMLPurifier_AttrDef_HTML_BoolTest extends HTMLPurifier_AttrDefHarness
6 public function test()
8 $this->def = new HTMLPurifier_AttrDef_HTML_Bool('foo');
9 $this->assertDef('foo');
10 $this->assertDef('', 'foo');
11 $this->assertDef('bar', 'foo');
14 public function test_make()
16 $factory = new HTMLPurifier_AttrDef_HTML_Bool();
17 $def = $factory->make('foo');
18 $def2 = new HTMLPurifier_AttrDef_HTML_Bool('foo');
19 $this->assertIdentical($def, $def2);
24 // vim: et sw=4 sts=4