2008-02-17 18:21:45 +00:00
|
|
|
--TEST--
|
|
|
|
HTMLPurifier.standalone.php loading test
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2008-02-18 00:49:45 +00:00
|
|
|
require '../library/HTMLPurifier.standalone.php';
|
|
|
|
require 'HTMLPurifier/Filter/YouTube.php';
|
|
|
|
require 'HTMLPurifier/PHPT/loading/_no-autoload.inc';
|
2008-02-17 18:21:45 +00:00
|
|
|
$config = HTMLPurifier_Config::createDefault();
|
|
|
|
$purifier = new HTMLPurifier($config);
|
|
|
|
echo $purifier->purify('<b>Salsa!');
|
2008-02-18 00:49:45 +00:00
|
|
|
assert('in_array(realpath("../library/standalone/HTMLPurifier/Filter/YouTube.php"), get_included_files())');
|
2008-02-17 18:21:45 +00:00
|
|
|
--EXPECT--
|
|
|
|
<b>Salsa!</b>
|