我希望您一切都好,所以我的问题是我无法运行artisan 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▕
老实说,由于我已将依赖关系升级为使用pestphp
,并遵循其安装步骤here,因此我didint测试了该命令是否有效。谢谢您的回答。
答案 0 :(得分:1)
这是pestphp版本控制的问题,如本here中所述。我只需要替换
"nunomaduro/collision": "v5.0.0-BETA3",
"pestphp/pest": "^0.2.3",
到
"nunomaduro/collision": "5.0.0-BETA2",
"pestphp/pest": "0.2.1",