Implement %HTML.AllowedComments and %HTML.AllowedCommentsRegexp
[htmlpurifier.git] / test-settings.sample.php
blobad7789cb8697535a9bf4888a67ac0ae2ffdec121
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 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
47 // it still works.
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.
62 $php = 'php';
64 // For tests/multitest.php, what is the multi-version executable? It must
65 // accept an extra parameter (version number) before all other arguments
66 $phpv = false;
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;
72 // vim: et sw=4 sts=4