Fix newline issues in tests.
[htmlpurifier.git] / tests / HTMLPurifier / PHPT / loading / auto-with-autoload.phpt
blob9fcf606eb69ec3357e715954fb41ab8dbdadb84f
1 --TEST--
2 HTMLPurifier.auto.php using spl_autoload_register with __autoload() already defined loading test
3 --SKIPIF--
4 <?php
5 if (!function_exists('spl_autoload_register')) {
6     echo "skip - spl_autoload_register() not available";
8 --FILE--
9 <?php
10 function __autoload($class) {
11     echo "Autoloading $class...
13     eval("class $class {}");
16 require '../library/HTMLPurifier.auto.php';
17 require 'HTMLPurifier/PHPT/loading/_autoload.inc';
18 $config = HTMLPurifier_Config::createDefault();
19 $purifier = new HTMLPurifier($config);
20 echo $purifier->purify('<b>Salsa!') . "
23 // purposely invoke older autoload
24 $bar = new Bar();
26 --EXPECT--
27 <b>Salsa!</b>
28 Autoloading Bar...