Mangopay / mangopay2-php-sdk

PHP SDK for MANGOPAY
https://packagist.org/packages/mangopay/php-sdk-v2
MIT License
123 stars 133 forks source link

Tests suite is broken #109

Closed julestex closed 8 years ago

julestex commented 8 years ago

Hello, Just ran the tests suite on master.

suites (master) php all.php                      
all.php
1) Expected true, got [Boolean: false] at [/home/jules/v3/mangopay2-php-sdk/tests/cases/kycDocuments.php line 35]
    in test_KycDocuments_GetAll_SortByCreationDate
    in MangoPay\Tests\KycDocuments
    in ../cases/kycDocuments.php
    in MangoPay\Tests\All
Exception 1!
Unexpected exception of type [MangoPay\Libraries\ResponseException] with message [Internal server error. Internal Server Error] in [/home/jules/v3/mangopay2-php-sdk/MangoPay/Libraries/RestTool.php line 333]
    in test_Transfers_Create
    in MangoPay\Tests\Transfers
    in ../cases/transfers.php
    in MangoPay\Tests\All
Skip: Cannot test creating dispute document because there's no dispute with expected status in the disputes list.
Skip: Cannot test creating dispute document page because there's no dispute with expected status in the disputes list.
Skip: Cannot test contesting dispute because there's no disputes that can be contested in the disputes list.
Skip: Cannot test contesting dispute because there's no disputes that can be resubmited in the disputes list.
Skip: Cannot test closing dispute because there's no available disputes with expected status in the disputes list.
Skip: Cannot test getting dispute's document because there's no dispute with expected status in the disputes list.
Skip: Cannot test submitting dispute's documents because there's no dispute with expected status in the disputes list.
Skip: Cannot test getting repudiation because dispute has no transaction.
FAILURES!!!
Test cases run: 17/17, Passes: 649, Failures: 1, Exceptions: 1

There is 1 Failure and 1 exception.

hobailey commented 8 years ago

@julestex we've made the dispute tests optional and added some optims, and all the tests are passing as expected now :-)