Closed DavidPrevot closed 1 year ago
Have you tried to install phpspec/prophecy
?
composer require phpspec/prophecy --dev
I guess the problem could be solved by adding phpspec/prophecy
as a dev dependency to the project.
TestCase::prophesize()
is deprecated and will be removed in PHPUnit 10. Using the trait provided by phpspec/prophecy-phpunit may help here.
The dependency is in our require-dev
:
https://github.com/slimphp/Slim/blob/4.x/composer.json#L65
The test suite runs fine.
Bug Report
Since PHPUnit dropped phpspec/prophecy from its dependencies (https://github.com/sebastianbergmann/phpunit/issues/5033), the following errors are triggered when running the testsuite with latest PHPUnit.
Regards
David