#!/usr/bin/env php SWOOLE_LOG_INFO, 'trace_flags' => 0 ]); /* * This file is part of PHPUnit. * * (c) Sebastian Bergmann * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ if (PHP_VERSION_ID <= 70100) { fwrite( STDERR, sprintf( 'This version of PHPUnit is supported on PHP 7.1 and above.' . PHP_EOL . 'You are using PHP %s (%s).' . PHP_EOL, PHP_VERSION, PHP_BINARY ) ); die(1); } if (!ini_get('date.timezone')) { ini_set('date.timezone', 'Asia/Shanghai'); } require $root . '/vendor/autoload.php'; sleep(1); go(static function () { PHPUnit\TextUI\Command::main(false); Swoole\Process::wait(); }); Swoole\Event::wait();