test-settings.sample.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. // ATTENTION! DO NOT EDIT THIS FILE!
  3. // This file is necessary to run the unit tests and profiling scripts.
  4. // Please copy it to 'test-settings.php' and make the necessary edits.
  5. // Note: The only external library you *need* is SimpleTest; everything else
  6. // is optional.
  7. // We've got a lot of tests, so we recommend turning the limit off.
  8. set_time_limit(0);
  9. // Turning off output buffering will prevent mysterious errors from core dumps.
  10. $data = @ob_get_clean();
  11. if ($data !== false && $data !== '') {
  12. echo "Output buffer contains data [".urlencode($data)."]\n";
  13. exit;
  14. }
  15. // -----------------------------------------------------------------------------
  16. // REQUIRED SETTINGS
  17. // Note on running SimpleTest:
  18. // Because HTML Purifier is PHP5-only and E_STRICT compliant, SimpleTest
  19. // 1.0.1 will not work; you need to run SimpleTest off its trunk using:
  20. //
  21. // $ svn co https://simpletest.svn.sourceforge.net/svnroot/simpletest/simpletest/trunk simpletest
  22. //
  23. // If SimpleTest is borked with HTML Purifier, please contact me or
  24. // the SimpleTest devs; I am a developer for SimpleTest so I should be
  25. // able to quickly assess a fix. SimpleTest's problem is my problem!
  26. // Where is SimpleTest located? Remember to include a trailing slash!
  27. $simpletest_location = '/path/to/simpletest/';
  28. // -----------------------------------------------------------------------------
  29. // OPTIONAL SETTINGS
  30. // Note on running PHPT:
  31. // Vanilla PHPT from http://phpt.info will not work, because there are
  32. // a number of bugs that prevent HTML Purifier from doing what they need
  33. // to do. If you really want to run PHPT, you'll will need to apply the
  34. // patches in maintenance/phpt-modifications.patch on the PHPT Core trunk,
  35. // which can be checked out using:
  36. //
  37. // $ svn co https://svn.phpt.info/Core/trunk phpt-core
  38. // Should PHPT tests be enabled?
  39. $GLOBALS['HTMLPurifierTest']['PHPT'] = false;
  40. // If PHPT isn't in your Path via PEAR, set that here:
  41. // set_include_path('/path/to/phpt/Core/src' . PATH_SEPARATOR . get_include_path());
  42. // Where is CSSTidy located? (Include trailing slash. Leave false to disable.)
  43. $csstidy_location = false;
  44. // For tests/multitest.php, which versions to test?
  45. $versions_to_test = array();
  46. // Stable PHP binary to use when invoking maintenance scripts.
  47. $php = 'php';
  48. // For tests/multitest.php, what is the multi-version executable? It must
  49. // accept an extra parameter (version number) before all other arguments
  50. $phpv = false;
  51. // Should PEAR tests be run? If you've got a valid PEAR installation, set this
  52. // to true (or, if it's not in the include path, to its install directory).
  53. $GLOBALS['HTMLPurifierTest']['PEAR'] = false;
  54. // vim: et sw=4 sts=4