[英]artisan test command is not working, laravel 7.x
我希望你做得很好,所以我的問題是每當我運行命令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▕
老實說,我之前沒有測試過該命令是否有效,因為我升級了依賴項以使用pestphp
並按照他們的安裝步驟here 。 感謝您的回答。
這是pesphp 版本控制的問題,如here中所述。 我只需要更換pesphp的版本並從
"nunomaduro/collision": "v5.0.0-BETA3",
"pestphp/pest": "^0.2.3",
至
"nunomaduro/collision": "5.0.0-BETA2",
"pestphp/pest": "0.2.1",
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.