Fix missing numbers when pass/fail count is zero.
[htmlpurifier/darkodev.git] / test-settings.sample.php
blob1583024864d6ecf766f7d72f2acc7f0264290277
1 <?php
3 // ATTENTION! DO NOT EDIT THIS FILE!
4 // This file is necessary to run the unit tests and profiling scripts.
5 // Please copy it to 'test-settings.php' and make the necessary edits.
7 // Note: The only external library you *need* is SimpleTest; everything else
8 // is optional.
10 // We've got a lot of tests, so we recommend turning the limit off.
11 set_time_limit(0);
13 // Turning off output buffering will prevent mysterious errors from core dumps.
14 $data = @ob_get_clean();
15 if ($data !== false && $data !== '') {
16 echo "Output buffer contains data [".urlencode($data)."]\n";
17 exit;
20 // -----------------------------------------------------------------------------
21 // REQUIRED SETTINGS
23 // Note on running SimpleTest:
24 // Because HTML Purifier is PHP5-only and E_STRICT compliant, SimpleTest
25 // 1.0.1 will not work; you need to run SimpleTest off its trunk using:
27 // $ svn co https://simpletest.svn.sourceforge.net/svnroot/simpletest/simpletest/trunk simpletest
29 // If SimpleTest is borked with HTML Purifier, please contact me or
30 // the SimpleTest devs; I am a developer for SimpleTest so I should be
31 // able to quickly assess a fix. SimpleTest's problem is my problem!
33 // Where is SimpleTest located? Remember to include a trailing slash!
34 $simpletest_location = '/path/to/simpletest/';
36 // -----------------------------------------------------------------------------
37 // OPTIONAL SETTINGS
39 // Note on running PHPT:
40 // Vanilla PHPT from http://phpt.info will not work, because there are
41 // a number of bugs that prevent HTML Purifier from doing what they need
42 // to do. If you really want to run PHPT, you'll will need to apply the
43 // patches in maintenance/phpt-modifications.patch on the PHPT Core trunk,
44 // which can be checked out using:
46 // $ svn co https://svn.phpt.info/Core/trunk phpt-core
48 // Should PHPT tests be enabled?
49 $GLOBALS['HTMLPurifierTest']['PHPT'] = false;
51 // If PHPT isn't in your Path via PEAR, set that here:
52 // set_include_path('/path/to/phpt/Core/src' . PATH_SEPARATOR . get_include_path());
54 // Where is CSSTidy located? (Include trailing slash. Leave false to disable.)
55 $csstidy_location = false;
57 // For tests/multitest.php, which versions to test?
58 $versions_to_test = array();
60 // Stable PHP binary to use when invoking maintenance scripts.
61 $php = 'php';
63 // For tests/multitest.php, what is the multi-version executable? It must
64 // accept an extra parameter (version number) before all other arguments
65 $phpv = false;
67 // Should PEAR tests be run? If you've got a valid PEAR installation, set this
68 // to true (or, if it's not in the include path, to its install directory).
69 $GLOBALS['HTMLPurifierTest']['PEAR'] = false;
71 // vim: et sw=4 sts=4