This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/phpunit

15 lines
619 B
Plaintext
Raw Permalink Normal View History

2015-08-18 15:04:52 +01:00
#!/usr/bin/env php
<?php
2017-11-22 09:25:38 +00:00
// Cache-Id: https://github.com/symfony/phpunit-bridge/commit/66ffffcd8a6bb23aec847c8bdfb918610399499a
2017-01-03 07:41:06 +00:00
2016-09-12 11:06:58 +01:00
if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
echo "Unable to find the `simple-phpunit` script in `vendor/symfony/phpunit-bridge/bin/`.\nPlease run `composer update` before running this command.\n";
exit(1);
2015-08-18 15:04:52 +01:00
}
2017-06-01 18:56:34 +01:00
if (\PHP_VERSION_ID >= 70000 && !getenv('SYMFONY_PHPUNIT_VERSION')) {
2017-02-21 10:17:46 +00:00
putenv('SYMFONY_PHPUNIT_VERSION=6.0');
}
2016-09-12 11:06:58 +01:00
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
require __DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';