[英]artisan test command is not working, laravel 7.x
i hope you are doing well, so my problem is that i cannot run the artisan test
command whenever i run the command php artisan test
i get the following error我希望你做得很好,所以我的问题是每当我运行命令php artisan test
时我都无法运行 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▕
honestly i didint test that the command worked before, since i upgraded the dependencies to use pestphp
and followed their installation steps here .老实说,我之前没有测试过该命令是否有效,因为我升级了依赖项以使用pestphp
并按照他们的安装步骤here 。 thanks for your answer.感谢您的回答。
this was an issue with pestphp versioning, as explained in this here .这是pesphp 版本控制的问题,如here中所述。 i just had to replace the version of pestphp and collision from我只需要更换pesphp的版本并从
"nunomaduro/collision": "v5.0.0-BETA3",
"pestphp/pest": "^0.2.3",
to至
"nunomaduro/collision": "5.0.0-BETA2",
"pestphp/pest": "0.2.1",
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.