1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-10 09:16:20 +02:00

- Make phpt files svn:eol-style=native

- Add missing NEWS entry

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1556 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-02-17 00:19:27 +00:00
parent 9f851b2139
commit 212958a9c7
6 changed files with 79 additions and 77 deletions

2
NEWS
View File

@ -51,6 +51,8 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
. htmlpurifier_add_test() preferred method to translate test files in to . htmlpurifier_add_test() preferred method to translate test files in to
classes, because it handles PHPT files too. classes, because it handles PHPT files too.
. Debugger class is deprecated and will be removed soon. . Debugger class is deprecated and will be removed soon.
. Command line argument parsing for testing scripts revamped, now --opt value
format is supported.
3.0.0, released 2008-01-06 3.0.0, released 2008-01-06
# HTML Purifier is PHP 5 only! The 2.1.x branch will be maintained # HTML Purifier is PHP 5 only! The 2.1.x branch will be maintained

View File

@ -1,11 +1,11 @@
--TEST-- --TEST--
HTMLPurifier.auto.php and HTMLPurifier.includes.php loading test HTMLPurifier.auto.php and HTMLPurifier.includes.php loading test
--FILE-- --FILE--
<?php <?php
require_once '../library/HTMLPurifier.auto.php'; require_once '../library/HTMLPurifier.auto.php';
require_once 'HTMLPurifier.includes.php'; require_once 'HTMLPurifier.includes.php';
$config = HTMLPurifier_Config::createDefault(); $config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config); $purifier = new HTMLPurifier($config);
echo $purifier->purify('<b>Salsa!'); echo $purifier->purify('<b>Salsa!');
--EXPECT-- --EXPECT--
<b>Salsa!</b> <b>Salsa!</b>

View File

@ -1,25 +1,25 @@
--TEST-- --TEST--
HTMLPurifier.auto.php using spl_autoload_register with __autoload() already defined loading test HTMLPurifier.auto.php using spl_autoload_register with __autoload() already defined loading test
--SKIPIF-- --SKIPIF--
<?php <?php
if (!function_exists('spl_autoload_register')) { if (!function_exists('spl_autoload_register')) {
echo "skip - spl_autoload_register() not available"; echo "skip - spl_autoload_register() not available";
} }
--FILE-- --FILE--
<?php <?php
function __autoload($class) { function __autoload($class) {
echo "Autoloading $class..." . PHP_EOL; echo "Autoloading $class..." . PHP_EOL;
eval("class $class {}"); eval("class $class {}");
} }
require_once '../library/HTMLPurifier.auto.php'; require_once '../library/HTMLPurifier.auto.php';
$config = HTMLPurifier_Config::createDefault(); $config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config); $purifier = new HTMLPurifier($config);
echo $purifier->purify('<b>Salsa!') . PHP_EOL; echo $purifier->purify('<b>Salsa!') . PHP_EOL;
// purposely invoke older autoload // purposely invoke older autoload
$bar = new Bar(); $bar = new Bar();
--EXPECT-- --EXPECT--
<b>Salsa!</b> <b>Salsa!</b>
Autoloading Bar... Autoloading Bar...

View File

@ -1,25 +1,25 @@
--TEST-- --TEST--
HTMLPurifier.auto.php using spl_autoload_register with userland spl_autoload registration loading test HTMLPurifier.auto.php using spl_autoload_register with userland spl_autoload registration loading test
--SKIPIF-- --SKIPIF--
<?php <?php
if (!function_exists('spl_autoload_register')) { if (!function_exists('spl_autoload_register')) {
echo "skip - spl_autoload_register() not available"; echo "skip - spl_autoload_register() not available";
} }
--FILE-- --FILE--
<?php <?php
function __autoload($class) { function __autoload($class) {
echo "Autoloading $class..." . PHP_EOL; echo "Autoloading $class..." . PHP_EOL;
eval("class $class {}"); eval("class $class {}");
} }
require_once '../library/HTMLPurifier.auto.php'; require_once '../library/HTMLPurifier.auto.php';
$config = HTMLPurifier_Config::createDefault(); $config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config); $purifier = new HTMLPurifier($config);
echo $purifier->purify('<b>Salsa!') . PHP_EOL; echo $purifier->purify('<b>Salsa!') . PHP_EOL;
// purposely invoke older autoload // purposely invoke older autoload
$bar = new Bar(); $bar = new Bar();
--EXPECT-- --EXPECT--
<b>Salsa!</b> <b>Salsa!</b>
Autoloading Bar... Autoloading Bar...

View File

@ -1,10 +1,10 @@
--TEST-- --TEST--
HTMLPurifier.auto.php loading test HTMLPurifier.auto.php loading test
--FILE-- --FILE--
<?php <?php
require_once '../library/HTMLPurifier.auto.php'; require_once '../library/HTMLPurifier.auto.php';
$config = HTMLPurifier_Config::createDefault(); $config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config); $purifier = new HTMLPurifier($config);
echo $purifier->purify('<b>Salsa!'); echo $purifier->purify('<b>Salsa!');
--EXPECT-- --EXPECT--
<b>Salsa!</b> <b>Salsa!</b>

View File

@ -1,6 +1,6 @@
--TEST-- --TEST--
PHPT testing framework smoketest PHPT testing framework smoketest
--FILE-- --FILE--
Foobar Foobar
--EXPECT-- --EXPECT--
Foobar Foobar