0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-08 06:48:42 +00: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
classes, because it handles PHPT files too.
. 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
# HTML Purifier is PHP 5 only! The 2.1.x branch will be maintained

View File

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

View File

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

View File

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

View File

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

View File

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