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

Convert to PHP 5 only codebase, adding visibility modifiers to all members and methods in the main library area (function only for test methods)

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1458 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-11-25 02:24:39 +00:00
parent 85a23bacb6
commit 43f01925cd
195 changed files with 1003 additions and 1064 deletions

View File

@@ -3,10 +3,11 @@
// call one file using /?f=FileTest.php , see $test_files array for
// valid values
error_reporting(E_ALL);
define('HTMLPurifierTest', 1);
define('HTMLPURIFIER_SCHEMA_STRICT', true); // validate schemas
if (isset($_GET['flush'])) shell_exec('php ../maintenance/flush-definition-cache.php');
// wishlist: automated calling of this file from multiple PHP versions so we
// don't have to constantly switch around
@@ -22,9 +23,11 @@ if (file_exists('../test-settings.php')) include '../test-settings.php';
require_once $simpletest_location . 'unit_tester.php';
require_once $simpletest_location . 'reporter.php';
require_once $simpletest_location . 'mock_objects.php';
require_once 'HTMLPurifier/SimpleTest/Reporter.php';
error_reporting(E_ALL | E_STRICT); // after SimpleTest is loaded, turn on compile time errors
// load Debugger
require_once 'HTMLPurifier/SimpleTest/Reporter.php';
require_once 'Debugger.php';
// load convenience functions