You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BoolTest.php 570B

123456789101112131415161718192021222324
  1. <?php
  2. class HTMLPurifier_AttrDef_HTML_BoolTest extends HTMLPurifier_AttrDefHarness
  3. {
  4. public function test()
  5. {
  6. $this->def = new HTMLPurifier_AttrDef_HTML_Bool('foo');
  7. $this->assertDef('foo');
  8. $this->assertDef('', false);
  9. $this->assertDef('bar', 'foo');
  10. }
  11. public function test_make()
  12. {
  13. $factory = new HTMLPurifier_AttrDef_HTML_Bool();
  14. $def = $factory->make('foo');
  15. $def2 = new HTMLPurifier_AttrDef_HTML_Bool('foo');
  16. $this->assertIdentical($def, $def2);
  17. }
  18. }
  19. // vim: et sw=4 sts=4