Hack to fix #85
[htmlpurifier/darkodev.git] / test-settings.sample.php
blob480b66279b89ebcb2e7da01f213d6f9c953daec5
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 // You want the Git copy of SimpleTest, found here:
25 // https://github.com/simpletest/simpletest/
27 // If SimpleTest is borked with HTML Purifier, please contact me or
28 // the SimpleTest devs; I am a developer for SimpleTest so I should be
29 // able to quickly assess a fix. SimpleTest's problem is my problem!
31 // Where is SimpleTest located? Remember to include a trailing slash!
32 $simpletest_location = '/path/to/simpletest/';
34 // -----------------------------------------------------------------------------
35 // OPTIONAL SETTINGS
37 // Note on running PHPT:
38 // Vanilla PHPT from https://github.com/tswicegood/PHPT_Core should
39 // work fine on Linux w/o multitest.
41 // To do multitest or Windows testing, you'll need some more
42 // patches at https://github.com/ezyang/PHPT_Core
44 // I haven't tested the Windows setup in a while so I don't know if
45 // it still works.
47 // Should PHPT tests be enabled?
48 $GLOBALS['HTMLPurifierTest']['PHPT'] = false;
50 // If PHPT isn't in your Path via PEAR, set that here:
51 // set_include_path('/path/to/phpt/Core/src' . PATH_SEPARATOR . get_include_path());
53 // Where is CSSTidy located? (Include trailing slash. Leave false to disable.)
54 $csstidy_location = false;
56 // For tests/multitest.php, which versions to test?
57 $versions_to_test = array();
59 // Stable PHP binary to use when invoking maintenance scripts.
60 $php = 'php';
62 // For tests/multitest.php, what is the multi-version executable? It must
63 // accept an extra parameter (version number) before all other arguments
64 $phpv = false;
66 // Should PEAR tests be run? If you've got a valid PEAR installation, set this
67 // to true (or, if it's not in the include path, to its install directory).
68 $GLOBALS['HTMLPurifierTest']['PEAR'] = false;
70 // If PEAR is enabled, what PEAR tests should be run? (Note: you will
71 // need to ensure these libraries are installed)
72 $GLOBALS['HTMLPurifierTest']['Net_IDNA2'] = true;
74 // vim: et sw=4 sts=4