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.

standalone.phpt 469B

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