Php artisan测试命令不工作,laravel 7.x
我希望您做得很好,所以我的问题是无法运行artisanPhp artisan测试命令不工作,laravel 7.x,php,laravel,Php,Laravel,我希望您做得很好,所以我的问题是无法运行artisantest命令 每当我运行命令php artisan test时,我都会得到以下错误 RuntimeException Running Collision ^5.0 artisan test command requires Laravel ^8.0. at D:\php-files\behzad-thingi\vendor\nunomaduro\collision\src\Adapters\Laravel\Command
test
命令
每当我运行命令php artisan test
时,我都会得到以下错误
RuntimeException
Running Collision ^5.0 artisan test command requires Laravel ^8.0.
at D:\php-files\behzad-thingi\vendor\nunomaduro\collision\src\Adapters\Laravel\Commands\TestCommand.php:71
67▕ }
68▕
69▕ // @phpstan-ignore-next-line
70▕ if ((int) \Illuminate\Foundation\Application::VERSION[0] < 8) {
➜ 71▕ throw new RuntimeException('Running Collision ^5.0 artisan test command requires Laravel ^8.0.');
72▕ }
73▕
74▕ $options = array_slice($_SERVER['argv'], $this->option('without-tty') ? 3 : 2);
75▕
运行时异常
运行碰撞^5.0 artisan测试命令需要Laravel ^8.0。
位于D:\php files\behzad thingi\vendor\nunomaduro\collision\src\Adapters\Laravel\Commands\TestCommand.php:71
67▕ }
68▕
69▕ // @phpstan忽略下一行
70▕ 如果((int)\lighted\Foundation\Application::VERSION[0]<8){
➜ 71▕ 抛出新的RuntimeException('运行碰撞^5.0 artisan测试命令需要Laravel ^8.0');
72▕ }
73▕
74▕ $options=array\u slice($\u SERVER['argv'],$this->option('without-tty')?3:2);
75▕
老实说,我以前没有测试过该命令是否有效,因为我将依赖项升级为使用
pestphp
,并遵循了它们的安装步骤。感谢您的回答。这是pestphp版本控制的问题,如本文所述。我只需从
"nunomaduro/collision": "v5.0.0-BETA3",
"pestphp/pest": "^0.2.3",
到
错误清楚地表明您需要Laravel8.0或更高版本才能使用它,并且您正在使用Laravel7.x。那么您希望得到什么样的答案呢?
"nunomaduro/collision": "5.0.0-BETA2",
"pestphp/pest": "0.2.1",