mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 16:31:53 +00:00
Make test script less chatty when log_errors is on.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
parent
143e1ad718
commit
df3100b1b3
1
NEWS
1
NEWS
@ -16,6 +16,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
where it's not allowed. Thanks Lars <lars@renoz.dk> for reporting.
|
where it's not allowed. Thanks Lars <lars@renoz.dk> for reporting.
|
||||||
- Remove +x bit and shebang from index.php; only supported mode is to
|
- Remove +x bit and shebang from index.php; only supported mode is to
|
||||||
explicitly call it with php.
|
explicitly call it with php.
|
||||||
|
- Make test script less chatty when log_errors is on.
|
||||||
|
|
||||||
4.1.0, released 2010-04-26
|
4.1.0, released 2010-04-26
|
||||||
! Support proprietary height attribute on table element
|
! Support proprietary height attribute on table element
|
||||||
|
@ -23,6 +23,16 @@
|
|||||||
* $test_files) do not have underscores in their names.
|
* $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('HTMLPurifierTest', 1);
|
||||||
define('HTMLPURIFIER_SCHEMA_STRICT', true); // validate schemas
|
define('HTMLPURIFIER_SCHEMA_STRICT', true); // validate schemas
|
||||||
chdir(dirname(__FILE__));
|
chdir(dirname(__FILE__));
|
||||||
|
Loading…
Reference in New Issue
Block a user