api-platform / api-platform

🕸️ Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.
https://api-platform.com
MIT License
8.43k stars 953 forks source link

v2.5.5: Tests fail because phpunit-version mismatch #1512

Open tomtomsen opened 4 years ago

tomtomsen commented 4 years ago

API Platform version(s) affected: 2.5.5

Description
Tests fail because of an incompatibility between phpunit, api-platform and symfony/test-pack. Error: Declaration of ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Constraint\ArraySubset::evaluate($other, string $description = '', bool $returnResult = false) should be compatible with PHPUnit\Framework\Constraint\Constraint::evaluate($other, $description = '', $returnResult = false)

How to reproduce

Possible Solution
Changing SYMFONY_PHPUNIT_VERSION to 8.3 in api/phpunit.xml.dist had worked. should be added to docs!

Additional Context

ahmed-bhs commented 4 years ago

Same issue !!