Closed adamhopkinson closed 4 years ago
Your version constraint is ^9.0
, so the new version of PHPUnit, 9.3
, will be installed. That new version seems to break Pest, as you can see in #158.
For now, you can just change PHPUnit's version to 9.2, or use @GrahamCampbell's php8
branch.
I just replace it by composer require phpunit/phpunit:"9.2.*" --dev --update-with-dependencies
while this is break.
The bug is with composer. If you manually add pest then run composer update
, there will be no issues.
Or maybe you also need --update-with-dependencies
.
Great, thanks all for your explanations 🏅
I've been intending to have a go with Pest, but it wouldn't install into my project. To avoid getting into debugging versions, I installed a completely fresh copy of Laravel v7.24.0 and Pest still won't install.
My steps (removing responses) were:
composer create-project --prefer-dist laravel/laravel blog
cd blog
"minimum-stability": "dev"
and"prefer-stable": true
are present incomposer.json
composer require phpunit/phpunit:"^9.0" --dev --update-with-dependencies
composer require nunomaduro/collision:"^5.0" --dev --update-with-dependencies
composer require pestphp/pest --dev
And the response is:
Now I understand that it may be technically possible to resolve this issue by editing version requirements in
composer.json
, but shouldn't it "just work"?