Update ExtractStyleBlocks tests for modern CSSTidy at https://github.com/Cerdic/CSSTidy
[htmlpurifier/darkodev.git] / test-settings.sample.php
blob886b974867fd16251e24ccc74989e67c89b4b4f0
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 // If PEAR is enabled, what PEAR tests should be run? (Note: you will
73 // need to ensure these libraries are installed)
74 $GLOBALS['HTMLPurifierTest']['Net_IDNA2'] = true;
76 // vim: et sw=4 sts=4