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.

DefinitionTest.php 596B

12345678910111213141516171819202122
  1. <?php
  2. class HTMLPurifier_DefinitionTest extends HTMLPurifier_Harness
  3. {
  4. public function test_setup()
  5. {
  6. $def = new HTMLPurifier_DefinitionTestable();
  7. $config = HTMLPurifier_Config::createDefault();
  8. $def->expectOnce('doSetup', array($config));
  9. $def->setup($config);
  10. }
  11. public function test_setup_redundant()
  12. {
  13. $def = new HTMLPurifier_DefinitionTestable();
  14. $config = HTMLPurifier_Config::createDefault();
  15. $def->expectNever('doSetup');
  16. $def->setup = true;
  17. $def->setup($config);
  18. }
  19. }
  20. // vim: et sw=4 sts=4