wl-online-payments-direct / sdk-php

Other
5 stars 5 forks source link

unit test in project used wl-online-payments-direct #4

Open medabaied opened 2 years ago

medabaied commented 2 years ago

Hello,

I try add unit test for my project when I use wl-online-payments-direct but I found this error when I extend ClientTestCase class

Warning: XDEBUG_MODE=coverage or xdebug.mode=coverage has to be set

Testing ...E................ 20 / 20 (100%)

Time: 00:00.169, Memory: 16.00 MB

There was 1 error:

1) App\Tests\Unit\PaymentServiceTest::testApproveAndDeposit Error: Class 'OnlinePayments\Sdk\ClientTestCase' not found

/var/www/tests/Unit/PaymentServiceTest.php:38

code :

`use OnlinePayments\Sdk\ClientTestCase;

class PaymentServiceTest extends ClientTestCase { } `

worldline-direct-support-team commented 2 years ago

Hello mabaied,

Thank you for reporting an issue. We will have a look into this.

Kind regards, Worldline Support