2006-09-24 21:58:14 +00:00
|
|
|
<?php
|
|
|
|
|
2007-06-30 16:13:10 +00:00
|
|
|
// ATTENTION! DO NOT EDIT THIS FILE!
|
2007-06-30 05:02:27 +00:00
|
|
|
// This file is necessary to run the unit tests and profiling scripts.
|
|
|
|
// Please copy it to 'test-settings.php' and make the necessary edits.
|
|
|
|
|
2007-06-30 16:13:10 +00:00
|
|
|
// Some of these scripts run a long time, so it is recommended that you
|
|
|
|
// turn off the time limit
|
2007-06-30 05:02:27 +00:00
|
|
|
set_time_limit(0);
|
|
|
|
|
|
|
|
// Turning off output buffering will prevent mysterious errors from core dumps
|
2008-02-17 18:21:45 +00:00
|
|
|
$data = @ob_get_clean();
|
|
|
|
if ($data !== false && $data !== '') {
|
|
|
|
echo "Output buffer contains data [".urlencode($data)."]\n";
|
|
|
|
exit;
|
|
|
|
}
|
2006-09-24 21:58:14 +00:00
|
|
|
|
2007-06-30 16:13:10 +00:00
|
|
|
// Where is SimpleTest located?
|
|
|
|
$simpletest_location = '/path/to/simpletest/';
|
2006-09-24 21:58:14 +00:00
|
|
|
|
2007-12-12 21:46:30 +00:00
|
|
|
// Where is CSSTidy located?
|
|
|
|
$csstidy_location = '/path/to/csstidy/';
|
|
|
|
|
2008-01-07 00:17:49 +00:00
|
|
|
// For tests/multitest.php, which versions to test?
|
|
|
|
$versions_to_test = array();
|
|
|
|
|
2008-02-17 18:21:45 +00:00
|
|
|
// Stable PHP binary to use when invoking maintenance scripts.
|
|
|
|
$php = 'php';
|
|
|
|
|
2008-01-07 00:17:49 +00:00
|
|
|
// For tests/multitest.php, what is the multi-version executable? It must
|
|
|
|
// accept an extra parameter (version number) before all other arguments
|
|
|
|
$phpv = 'phpv';
|
|
|
|
|
2006-09-24 21:58:14 +00:00
|
|
|
// How many times should profiling scripts iterate over the function? More runs
|
|
|
|
// means more accurate results, but they'll take longer to perform.
|
|
|
|
$GLOBALS['HTMLPurifierTest']['Runs'] = 2;
|
|
|
|
|