runner.php 637 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env php
  2. <?php
  3. /**
  4. * @file
  5. * A nearly verbatim copy of phpunit script that ships with PEAR's PHPUnit.
  6. */
  7. require_once 'PHP/CodeCoverage/Filter.php';
  8. PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'PHPUNIT');
  9. if (extension_loaded('xdebug')) {
  10. // Drush comments out the following line for easier debugging.
  11. // xdebug_disable();
  12. }
  13. if (strpos('/usr/bin/php', '@php_bin') === 0) {
  14. set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
  15. }
  16. require_once 'PHPUnit/Autoload.php';
  17. define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');
  18. PHPUnit_TextUI_Command::main();