test-settings.travis.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. // This file is the configuration for Travis testing.
  3. // Note: The only external library you *need* is SimpleTest; everything else
  4. // is optional.
  5. // We've got a lot of tests, so we recommend turning the limit off.
  6. set_time_limit(0);
  7. // Turning off output buffering will prevent mysterious errors from core dumps.
  8. $data = @ob_get_clean();
  9. if ($data !== false && $data !== '') {
  10. echo "Output buffer contains data [".urlencode($data)."]\n";
  11. exit;
  12. }
  13. // -----------------------------------------------------------------------------
  14. // REQUIRED SETTINGS
  15. // Note on running SimpleTest:
  16. // You want the Git copy of SimpleTest, found here:
  17. // https://github.com/simpletest/simpletest/
  18. //
  19. // If SimpleTest is borked with HTML Purifier, please contact me or
  20. // the SimpleTest devs; I am a developer for SimpleTest so I should be
  21. // able to quickly assess a fix. SimpleTest's problem is my problem!
  22. // Where is SimpleTest located? Remember to include a trailing slash!
  23. $simpletest_location = dirname(__FILE__) . '/simpletest/';
  24. // -----------------------------------------------------------------------------
  25. // OPTIONAL SETTINGS
  26. // Note on running PHPT:
  27. // Vanilla PHPT from https://github.com/tswicegood/PHPT_Core should
  28. // work fine on Linux w/o multitest.
  29. //
  30. // To do multitest or Windows testing, you'll need some more
  31. // patches at https://github.com/ezyang/PHPT_Core
  32. //
  33. // I haven't tested the Windows setup in a while so I don't know if
  34. // it still works.
  35. // Should PHPT tests be enabled?
  36. $GLOBALS['HTMLPurifierTest']['PHPT'] = false;
  37. // If PHPT isn't in your Path via PEAR, set that here:
  38. // set_include_path('/path/to/phpt/Core/src' . PATH_SEPARATOR . get_include_path());
  39. // Where is CSSTidy located? (Include trailing slash. Leave false to disable.)
  40. $csstidy_location = false;
  41. // For tests/multitest.php, which versions to test?
  42. $versions_to_test = array();
  43. // Stable PHP binary to use when invoking maintenance scripts.
  44. $php = 'php';
  45. // For tests/multitest.php, what is the multi-version executable? It must
  46. // accept an extra parameter (version number) before all other arguments
  47. $phpv = false;
  48. // Should PEAR tests be run? If you've got a valid PEAR installation, set this
  49. // to true (or, if it's not in the include path, to its install directory).
  50. $GLOBALS['HTMLPurifierTest']['PEAR'] = false;
  51. // If PEAR is enabled, what PEAR tests should be run? (Note: you will
  52. // need to ensure these libraries are installed)
  53. $GLOBALS['HTMLPurifierTest']['Net_IDNA2'] = true;
  54. // vim: et sw=4 sts=4