[3.1.0] Reconfigure tester to glob for test files using *Test.php pattern.
[htmlpurifier.git] / tests / HTMLPurifier / AttrDef / HTML / BoolTest.php
bloba82c45b3d7d4ecbf7953c41bcf858f1483402aae
1 <?php
3 class HTMLPurifier_AttrDef_HTML_BoolTest extends HTMLPurifier_AttrDefHarness
6 function test() {
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);