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.

auto-with-spl-autoload-default.phpt 599B

12345678910111213141516171819202122232425
  1. --TEST--
  2. HTMLPurifier.auto.php using spl_autoload_register default
  3. --SKIPIF--
  4. <?php
  5. if (!function_exists('spl_autoload_register')) {
  6. echo "skip - spl_autoload_register() not available";
  7. }
  8. --FILE--
  9. <?php
  10. spl_autoload_extensions(".php");
  11. spl_autoload_register();
  12. require '../library/HTMLPurifier.auto.php';
  13. require 'HTMLPurifier/PHPT/loading/_autoload.inc';
  14. $config = HTMLPurifier_Config::createDefault();
  15. $purifier = new HTMLPurifier($config);
  16. echo $purifier->purify('<b>Salsa!') . "
  17. ";
  18. // purposely invoke standard autoload
  19. $test = new default_load();
  20. --EXPECT--
  21. <b>Salsa!</b>
  22. Default loaded