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.

15 lines
571B

  1. --TEST--
  2. HTMLPurifier.standalone.php with HTMLPURIFIER_PREFIX loading test
  3. --FILE--
  4. <?php
  5. define('HTMLPURIFIER_PREFIX', realpath('../library'));
  6. require '../library/HTMLPurifier.path.php';
  7. require 'HTMLPurifier.standalone.php';
  8. require 'HTMLPurifier/Filter/YouTube.php';
  9. require 'HTMLPurifier/PHPT/loading/_no-autoload.inc';
  10. $config = HTMLPurifier_Config::createDefault();
  11. $purifier = new HTMLPurifier($config);
  12. echo $purifier->purify('<b>Salsa!');
  13. assert('in_array(realpath("../library/HTMLPurifier/Filter/YouTube.php"), get_included_files())');
  14. --EXPECT--
  15. <b>Salsa!</b>