From df3100b1b335f43945ed0624f6e78273482eb478 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Thu, 20 May 2010 21:50:44 -0400 Subject: [PATCH] Make test script less chatty when log_errors is on. Signed-off-by: Edward Z. Yang --- NEWS | 1 + tests/index.php | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/NEWS b/NEWS index f8353a16..7a507bec 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier where it's not allowed. Thanks Lars for reporting. - Remove +x bit and shebang from index.php; only supported mode is to explicitly call it with php. +- Make test script less chatty when log_errors is on. 4.1.0, released 2010-04-26 ! Support proprietary height attribute on table element diff --git a/tests/index.php b/tests/index.php index 0c8c4e1a..48cddcd2 100644 --- a/tests/index.php +++ b/tests/index.php @@ -23,6 +23,16 @@ * $test_files) do not have underscores in their names. */ +// HTML Purifier runs error free on E_STRICT, so if code reports +// errors, we want to know about it. +error_reporting(E_ALL | E_STRICT); + +// Because we always want to know about errors, and because SimpleTest +// will notify us about them, logging the errors to stderr is +// counterproductive and in fact the wrong thing when a test case +// exercises an error condition to detect for it. +ini_set('log_errors', false); + define('HTMLPurifierTest', 1); define('HTMLPURIFIER_SCHEMA_STRICT', true); // validate schemas chdir(dirname(__FILE__)); -- 2.11.4.GIT