phpunit 776 B

1234567891011121314151617181920212223
  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. if (PHP_VERSION_ID >= 80000) {
  8. require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
  9. } else {
  10. define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
  11. require PHPUNIT_COMPOSER_INSTALL;
  12. PHPUnit\TextUI\Command::main();
  13. }
  14. } else {
  15. if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
  16. echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
  17. exit(1);
  18. }
  19. require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
  20. }