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
10 // We've got a lot of tests, so we recommend turning the limit off.
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";
20 // -----------------------------------------------------------------------------
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 // -----------------------------------------------------------------------------
39 // Note on running PHPT:
40 // Vanilla PHPT from https://github.com/tswicegood/PHPT_Core should
41 // work fine on Linux w/o multitest.
43 // To do multitest or Windows testing, you'll need some more
44 // patches at https://github.com/ezyang/PHPT_Core
46 // I haven't tested the Windows setup in a while so I don't know if
49 // Should PHPT tests be enabled?
50 $GLOBALS['HTMLPurifierTest']['PHPT'] = false;
52 // If PHPT isn't in your Path via PEAR, set that here:
53 // set_include_path('/path/to/phpt/Core/src' . PATH_SEPARATOR . get_include_path());
55 // Where is CSSTidy located? (Include trailing slash. Leave false to disable.)
56 $csstidy_location = false;
58 // For tests/multitest.php, which versions to test?
59 $versions_to_test = array();
61 // Stable PHP binary to use when invoking maintenance scripts.
64 // For tests/multitest.php, what is the multi-version executable? It must
65 // accept an extra parameter (version number) before all other arguments
68 // Should PEAR tests be run? If you've got a valid PEAR installation, set this
69 // to true (or, if it's not in the include path, to its install directory).
70 $GLOBALS['HTMLPurifierTest']['PEAR'] = false;