_no-autoload.inc 498 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * Tests if autoloading is off in HTML Purifier. If all tests pass, no output.
  4. */
  5. if (function_exists('spl_autoload_register')) {
  6. $__v = spl_autoload_functions();
  7. assert('$__v == false || !in_array(array("HTMLPurifier_Bootstrap", "autoload"), $__v)');
  8. } else {
  9. if (function_exists('__autoload')) {
  10. $__r = new ReflectionFunction('__autoload');
  11. assert('$__r->getFileName() != realpath("../library/HTMLPurifier.autoload.php")');
  12. }
  13. }
  14. // vim: et sw=4 sts=4