0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 16:31:53 +00:00
htmlpurifier/test-settings.sample.php
2008-02-18 03:48:07 +00:00

50 lines
1.7 KiB
PHP

<?php
// ATTENTION! DO NOT EDIT THIS FILE!
// This file is necessary to run the unit tests and profiling scripts.
// Please copy it to 'test-settings.php' and make the necessary edits.
// Note: The minimum set of external libraries you need are PHP SimpleTest
// We've got a lot of tests, so we recommend turning the limit off.
set_time_limit(0);
// Turning off output buffering will prevent mysterious errors from core dumps.
$data = @ob_get_clean();
if ($data !== false && $data !== '') {
echo "Output buffer contains data [".urlencode($data)."]\n";
exit;
}
// -----------------------------------------------------------------------------
// RECOMMENDED SETTINGS
// Where is SimpleTest located?
$simpletest_location = '/path/to/simpletest/';
// Should PHPT tests be enabled? (This should already be in your path; if it
// isn't, set it here)
// set_include_path('/path/to/phpt/Core/src' . PATH_SEPARATOR . get_include_path());
$GLOBALS['HTMLPurifierTest']['PHPT'] = true;
// -----------------------------------------------------------------------------
// OPTIONAL SETTINGS
// Where is CSSTidy located?
$csstidy_location = '/path/to/csstidy/';
// For tests/multitest.php, which versions to test?
$versions_to_test = array();
// Stable PHP binary to use when invoking maintenance scripts.
$php = 'php';
// For tests/multitest.php, what is the multi-version executable? It must
// accept an extra parameter (version number) before all other arguments
$phpv = 'phpv';
// Should PEAR tests be run? If you've got a valid PEAR installation, set this
// to true (or, if it's not in the include path, to its install directory).
$GLOBALS['HTMLPurifierTest']['PEAR'] = false;