infobip / infobip-api-php-client

Infobip API client library in PHP using composer.
https://www.infobip.com/docs/api
MIT License
80 stars 68 forks source link

Failing PHP Unit #57

Open ukmadlz opened 1 year ago

ukmadlz commented 1 year ago
$ ddev composer unit
> ./vendor/bin/phpunit test
PHPUnit 9.6.8 by Sebastian Bergmann and contributors.

...EEE.............                                               19 / 19 (100%)

Time: 00:00.109, Memory: 4.00 MB

There were 3 errors:

1) Infobip\Test\ObjectSerializerTest::testSimpleSerialization
Error: Class "Infobip\Test\SimpleModel" not found

/var/www/html/test/ObjectSerializerTest.php:27

2) Infobip\Test\ObjectSerializerTest::testSimpleDeserialization
Symfony\Component\Serializer\Exception\NotNormalizableValueException: Could not denormalize object of type "Infobip\Test\SimpleModel", no supporting normalizer found.

/var/www/html/vendor/symfony/serializer/Serializer.php:223
/var/www/html/vendor/symfony/serializer/Serializer.php:151
/var/www/html/Infobip/ObjectSerializer.php:118
/var/www/html/test/ObjectSerializerTest.php:63

3) Infobip\Test\ObjectSerializerTest::testValidation
Error: Class "Infobip\Test\SimpleModelWithValidations" not found

/var/www/html/test/ObjectSerializerTest.php:72

ERRORS!
Tests: 19, Assertions: 28, Errors: 3.
Script ./vendor/bin/phpunit test handling the unit event returned with error code 2
dnumicmesa commented 3 months ago

Hi, thank you for using our library and for reporting the issue. We are planning a new library release soon, which will address and solve these test issues.