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-without-spl-autoload.phpt 527B

12345678910111213141516171819
  1. --TEST--
  2. HTMLPurifier.auto.php without spl_autoload_register without userland autoload loading test
  3. --SKIPIF--
  4. <?php
  5. if (function_exists('spl_autoload_register')) {
  6. echo "skip - spl_autoload_register() available";
  7. }
  8. --FILE--
  9. <?php
  10. assert("!function_exists('__autoload')");
  11. require '../library/HTMLPurifier.auto.php';
  12. require 'HTMLPurifier/PHPT/loading/_autoload.inc';
  13. $config = HTMLPurifier_Config::createDefault();
  14. $purifier = new HTMLPurifier($config);
  15. echo $purifier->purify('<b>Salsa!') . "
  16. ";
  17. --EXPECT--
  18. <b>Salsa!</b>