phpunit 642 B

12345678910111213141516171819
  1. #!/usr/bin/env php
  2. <?php
  3. if (!ini_get('date.timezone')) {
  4. ini_set('date.timezone', 'UTC');
  5. }
  6. if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
  7. define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
  8. require PHPUNIT_COMPOSER_INSTALL;
  9. PHPUnit\TextUI\Command::main();
  10. } else {
  11. if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
  12. echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
  13. exit(1);
  14. }
  15. require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
  16. }