#!/usr/bin/env php
<?php
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
STDERR,
'This version of PHPUnit is supported on PHP 7.1, PHP 7.2, and PHP 7.3.' . PHP_EOL .
'You are using PHP %s (%s).' . PHP_EOL,
php_version,
PHP_BINARY
)
);
}
}
foreach (array(__DIR__ .
'/../../autoload.php', __DIR__ .
'/../vendor/autoload.php', __DIR__ .
'/vendor/autoload.php') as $file) {
define('PHPUNIT_COMPOSER_INSTALL',
$file);
break;
}
}
if (!
defined('PHPUNIT_COMPOSER_INSTALL')) {
STDERR,
'You need to set up the project dependencies using Composer:' . PHP_EOL . PHP_EOL .
' composer install' . PHP_EOL . PHP_EOL .
'You can learn all about Composer on https://getcomposer.org/.' . PHP_EOL
);
}
if (isset($options['prepend'])) {
require $options['prepend'];
}
require PHPUNIT_COMPOSER_INSTALL;
PHPUnitTextUICommand::main();