Undefined method ArraySubsetLegacy::exporter() when executing php vendor/bin/simple-phpunit

I’m discovering API Platform and i’m now at the "Testing the API" step.

I get two different errors I can’t resolve, event avec a composer install / update :

1) AppTestsBooksTest::testGetCollection
Error: Call to undefined method ApiPlatformCoreBridgeSymfonyBundleTestConstraintArraySubsetLegacy::exporter()

/srv/api/vendor/api-platform/core/src/Bridge/Symfony/Bundle/Test/Constraint/ArraySubsetTrait.php:76
/srv/api/vendor/api-platform/core/src/Bridge/Symfony/Bundle/Test/Constraint/ArraySubsetTrait.php:84
/srv/api/vendor/api-platform/core/src/Bridge/Symfony/Bundle/Test/Constraint/ArraySubsetTrait.php:68
/srv/api/vendor/api-platform/core/src/Bridge/Symfony/Bundle/Test/Constraint/ArraySubsetLegacy.php:32
/srv/api/vendor/api-platform/core/src/Bridge/Symfony/Bundle/Test/ApiTestAssertionsTrait.php:100
/srv/api/vendor/api-platform/core/src/Bridge/Symfony/Bundle/Test/ApiTestAssertionsTrait.php:57
/srv/api/tests/BooksTest.php:26

and

4) AppTestsBooksTest::testUpdateBook
TypeError: Argument 2 passed to ApiPlatformCoreBridgeSymfonyBundleTestClient::request() must be of the type string, null given, called in /srv/api/tests/BooksTest.php on line 103

/srv/api/vendor/api-platform/core/src/Bridge/Symfony/Bundle/Test/Client.php:88
/srv/api/tests/BooksTest.php:103

Any idea ?

Thx 🙂

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *