Fix two minor bugs, updating Phorum and removing unused $dir variable.
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / PHPT / loading / standalone-with-prefix.phpt
blob721dd7d176ddf5fce1022e3bac86b75e548b20f0
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>