DefinitionTest.php 574 B

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