From ff56ae83ddff5cd0410002b79dad92e4f48a06bb Mon Sep 17 00:00:00 2001 From: sudiptpa Date: Sat, 26 Nov 2016 05:50:50 +0000 Subject: [PATCH] Apply fixes from StyleCI --- .../DirectPostAuthorizeRequestTest.php | 14 ++--- .../DirectPostCompletePurchaseRequestTest.php | 58 +++++++++---------- .../Message/DirectPostPurchaseRequestTest.php | 14 ++--- 3 files changed, 43 insertions(+), 43 deletions(-) diff --git a/tests/Message/DirectPostAuthorizeRequestTest.php b/tests/Message/DirectPostAuthorizeRequestTest.php index 2ad9d1c..8c4ae33 100644 --- a/tests/Message/DirectPostAuthorizeRequestTest.php +++ b/tests/Message/DirectPostAuthorizeRequestTest.php @@ -12,15 +12,15 @@ public function setUp() $this->request->initialize( array( - 'merchantId' => 'XYZ0010', + 'merchantId' => 'XYZ0010', 'transactionPassword' => 'abcd1234', - 'amount' => '12.00', - 'returnUrl' => 'https://www.abc.com/return', - 'card' => array( - 'number' => '4444333322221111', + 'amount' => '12.00', + 'returnUrl' => 'https://www.abc.com/return', + 'card' => array( + 'number' => '4444333322221111', 'expiryMonth' => '6', - 'expiryYear' => '2030', - 'cvv' => '123', + 'expiryYear' => '2030', + 'cvv' => '123', ), ) ); diff --git a/tests/Message/DirectPostCompletePurchaseRequestTest.php b/tests/Message/DirectPostCompletePurchaseRequestTest.php index 03a505e..50601fd 100644 --- a/tests/Message/DirectPostCompletePurchaseRequestTest.php +++ b/tests/Message/DirectPostCompletePurchaseRequestTest.php @@ -15,15 +15,15 @@ public function testGenerateResponseFingerprint() { $this->request->initialize( array( - 'amount' => '465.18', + 'amount' => '465.18', 'transactionPassword' => 'abcd1234', ) ); $data = array( - 'timestamp' => '20161125123332', - 'merchant' => 'XYZ0010', - 'refid' => '222', + 'timestamp' => '20161125123332', + 'merchant' => 'XYZ0010', + 'refid' => '222', 'summarycode' => '2', ); @@ -35,26 +35,26 @@ public function testSuccess() { $this->request->initialize( array( - 'amount' => '12.00', + 'amount' => '12.00', 'transactionPassword' => 'abcd1234', - 'transactionId' => 'ORDER-ZYX8', + 'transactionId' => 'ORDER-ZYX8', ) ); $this->getHttpRequest()->query->replace( array( - 'timestamp' => '20161125130241', + 'timestamp' => '20161125130241', 'callback_status_code' => '-1', - 'fingerprint' => 'e30eb8381bc41201fbdf54a021d8228a3fbb6a6f', - 'txnid' => '271337', - 'merchant' => 'XYZ0010', - 'restext' => 'Approved', - 'rescode' => '00', - 'expirydate' => '20161126', - 'settdate' => '20161126', - 'refid' => 'ORDER-ZYX8', - 'pan' => '444433...111', - 'summarycode' => '1', + 'fingerprint' => 'e30eb8381bc41201fbdf54a021d8228a3fbb6a6f', + 'txnid' => '271337', + 'merchant' => 'XYZ0010', + 'restext' => 'Approved', + 'rescode' => '00', + 'expirydate' => '20161126', + 'settdate' => '20161126', + 'refid' => 'ORDER-ZYX8', + 'pan' => '444433...111', + 'summarycode' => '1', ) ); @@ -75,23 +75,23 @@ public function testSuccess() public function testFailure() { $this->request->initialize(array( - 'amount' => '465.18', + 'amount' => '465.18', 'transactionPassword' => 'abcd1234', )); $this->getHttpRequest()->query->replace(array( - 'timestamp' => '20161126051715', + 'timestamp' => '20161126051715', 'callback_status_code' => '404', - 'fingerprint' => 'cd75e2ef38cf63a2fa390024539acc7691eebc1d', - 'txnid' => '274279', - 'merchant' => 'XYZ0010', - 'restext' => 'Customer Dispute', - 'rescode' => '18', - 'expirydate' => '102030', - 'settdate' => '20161126', - 'refid' => 'ORDER-ZYX8', - 'pan' => '444433...111', - 'summarycode' => '2', + 'fingerprint' => 'cd75e2ef38cf63a2fa390024539acc7691eebc1d', + 'txnid' => '274279', + 'merchant' => 'XYZ0010', + 'restext' => 'Customer Dispute', + 'rescode' => '18', + 'expirydate' => '102030', + 'settdate' => '20161126', + 'refid' => 'ORDER-ZYX8', + 'pan' => '444433...111', + 'summarycode' => '2', )); $response = $this->request->send(); diff --git a/tests/Message/DirectPostPurchaseRequestTest.php b/tests/Message/DirectPostPurchaseRequestTest.php index 38898f2..1d0bab5 100644 --- a/tests/Message/DirectPostPurchaseRequestTest.php +++ b/tests/Message/DirectPostPurchaseRequestTest.php @@ -12,15 +12,15 @@ public function setUp() $this->request->initialize( array( - 'merchantId' => 'XYZ0010', + 'merchantId' => 'XYZ0010', 'transactionPassword' => 'abcd1234', - 'amount' => '12.00', - 'returnUrl' => 'https://www.example.com/return', - 'card' => array( - 'number' => '4444333322221111', + 'amount' => '12.00', + 'returnUrl' => 'https://www.example.com/return', + 'card' => array( + 'number' => '4444333322221111', 'expiryMonth' => '06', - 'expiryYear' => '2020', - 'cvv' => '123', + 'expiryYear' => '2020', + 'cvv' => '123', ), ) );