From bb7121181c64877b0854da78963f89f0ae1f7f00 Mon Sep 17 00:00:00 2001 From: Ayaskant Mishra Date: Thu, 3 Sep 2020 11:59:10 +0530 Subject: [PATCH 1/2] Bootstrapped coveralls --- .travis.yml | 1 + tests/ContinuousPaymentTest.php | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e3faa4b..53b28e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,4 +13,5 @@ script: make run_mock after_success: - bash <(curl -s https://copilot.blackducksoftware.com/ci/travis/scripts/upload) - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT + - travis_retry php vendor/bin/php-coveralls -v diff --git a/tests/ContinuousPaymentTest.php b/tests/ContinuousPaymentTest.php index dd5f004..438e5e9 100644 --- a/tests/ContinuousPaymentTest.php +++ b/tests/ContinuousPaymentTest.php @@ -19,7 +19,11 @@ public function Create() "amount" => 12, "currency" => "JPY" ]; - $CCPPayload->setMerchantPaymentId(uniqid('TESTMERCH_PAY_ID'))->setRequestedAt()->setUserAuthorizationId($this->config['uaid'])->setAmount($amount); + $CCPPayload + ->setMerchantPaymentId(uniqid('TESTMERCH_PAY_ID')) + ->setRequestedAt() + ->setUserAuthorizationId($this->config['uaid']) + ->setAmount($amount); // Get data for QR code $resp = $client->payment->createContinuousPayment($CCPPayload); $resultInfo = $resp['resultInfo']; @@ -42,7 +46,7 @@ public function Cancel() $resultInfo = $resp['resultInfo']; $this->assertEquals('REQUEST_ACCEPTED', $resultInfo['code']); } - + /** * tests Create And Cancel * @@ -53,5 +57,4 @@ public function testCreateAndCancel() $this->Create(); $this->Cancel(); } - } From 9814ad38a1c5c21eb8c12a872d45a526318f202e Mon Sep 17 00:00:00 2001 From: Ayaskant Mishra Date: Thu, 3 Sep 2020 12:35:53 +0530 Subject: [PATCH 2/2] Added missing whitelist --- phpunit.xml.dist | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index de9fafa..849c34f 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,6 +1,14 @@ + + + src + + + + + tests/QrTest.php