Closed xiaohuilam closed 5 years ago
Hey there,
Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? If so feel free to reply and we'll try to have a look.
Thanks!
Necro-commenting on this issue, as it's the first result in google when searching for the error string - which is still almost the same, 4 years later!
As discovered in this related issue, the actual problem is caused by you running a locally installed phar phpunit, instead of the one in vendor/bin/phpunit. Fix your PATH, remove the /usr/bin/phpunit, or whatever you want so you use the correct one.
https://github.com/laravel/framework/issues/36393#issuecomment-1015969247
FYI, i can repro this issue in Composer-installed PHPUnit too, pinning 9.5.19 as version, while it's fine with 9.5.20.
Description:
Extra infomation:
I can see
vendor/laravel/browser-kit-testing/src/Constraints/PageConstraint.php
's fail method declaringand
vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php
's declaringThey have different parameter declares. Please check the compatible with phpunit which version i pasted.