Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

75 lines
2.6KB

  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. // You want the Git copy of SimpleTest, found here:
  19. // https://github.com/simpletest/simpletest/
  20. //
  21. // If SimpleTest is borked with HTML Purifier, please contact me or
  22. // the SimpleTest devs; I am a developer for SimpleTest so I should be
  23. // able to quickly assess a fix. SimpleTest's problem is my problem!
  24. // Where is SimpleTest located? Remember to include a trailing slash!
  25. $simpletest_location = '/path/to/simpletest/';
  26. // -----------------------------------------------------------------------------
  27. // OPTIONAL SETTINGS
  28. // Note on running PHPT:
  29. // Vanilla PHPT from https://github.com/tswicegood/PHPT_Core should
  30. // work fine on Linux w/o multitest.
  31. //
  32. // To do multitest or Windows testing, you'll need some more
  33. // patches at https://github.com/ezyang/PHPT_Core
  34. //
  35. // I haven't tested the Windows setup in a while so I don't know if
  36. // it still works.
  37. // Should PHPT tests be enabled?
  38. $GLOBALS['HTMLPurifierTest']['PHPT'] = false;
  39. // If PHPT isn't in your Path via PEAR, set that here:
  40. // set_include_path('/path/to/phpt/Core/src' . PATH_SEPARATOR . get_include_path());
  41. // Where is CSSTidy located? (Include trailing slash. Leave false to disable.)
  42. $csstidy_location = false;
  43. // For tests/multitest.php, which versions to test?
  44. $versions_to_test = array();
  45. // Stable PHP binary to use when invoking maintenance scripts.
  46. $php = 'php';
  47. // For tests/multitest.php, what is the multi-version executable? It must
  48. // accept an extra parameter (version number) before all other arguments
  49. $phpv = false;
  50. // Should PEAR tests be run? If you've got a valid PEAR installation, set this
  51. // to true (or, if it's not in the include path, to its install directory).
  52. $GLOBALS['HTMLPurifierTest']['PEAR'] = false;
  53. // If PEAR is enabled, what PEAR tests should be run? (Note: you will
  54. // need to ensure these libraries are installed)
  55. $GLOBALS['HTMLPurifierTest']['Net_IDNA2'] = true;
  56. // vim: et sw=4 sts=4