]> Raphaƫl G. Git Repositories - blog/blob - bin/phpunit
Default doctrine bundle config
[blog] / bin / phpunit
1 #!/usr/bin/env php
2 <?php
3
4 if (!ini_get('date.timezone')) {
5 ini_set('date.timezone', 'UTC');
6 }
7
8 if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
9 define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
10 require PHPUNIT_COMPOSER_INSTALL;
11 PHPUnit\TextUI\Command::main();
12 } else {
13 if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
14 echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
15 exit(1);
16 }
17
18 require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
19 }