4 * This file is part of PHPUnit.
6 * (c) Sebastian Bergmann <sebastian@phpunit.de>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 if (version_compare('5.3.3', PHP_VERSION, '>')) {
16 'This version of PHPUnit is supported on PHP 5.3, PHP 5.4, PHP 5.5, and PHP 5.6.' . PHP_EOL .
17 'You are using PHP %s%s.' . PHP_EOL,
19 defined('PHP_BINARY') ? ' (' . PHP_BINARY . ')' : ''
26 if (!ini_get('date.timezone')) {
27 ini_set('date.timezone', 'UTC');
30 foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
31 if (file_exists($file)) {
32 define('PHPUNIT_COMPOSER_INSTALL', $file);
40 if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
42 'You need to set up the project dependencies using Composer:' . PHP_EOL . PHP_EOL .
43 ' composer install' . PHP_EOL . PHP_EOL .
44 'You can learn all about Composer on https://getcomposer.org/.' . PHP_EOL
50 require PHPUNIT_COMPOSER_INSTALL;
52 PHPUnit_TextUI_Command::main();