From d2d8143abdb691408904254046c51f644f2742e2 Mon Sep 17 00:00:00 2001 From: rondogency Date: Thu, 12 Jul 2018 15:19:09 -0400 Subject: [PATCH] use old array notation --- tests/Message/FetchRefundsRequestTest.php | 8 ++++---- tests/Message/FetchTransactionRequestTest.php | 20 +++++++++---------- .../Message/FetchTransactionsRequestTest.php | 8 ++++---- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/Message/FetchRefundsRequestTest.php b/tests/Message/FetchRefundsRequestTest.php index bb65006..4acbb57 100644 --- a/tests/Message/FetchRefundsRequestTest.php +++ b/tests/Message/FetchRefundsRequestTest.php @@ -146,7 +146,7 @@ public function testTransactionIdOrTimesNotBoth() */ public function testSendSuccess() { - $this->setMockSoapResponse('FetchRefundsSuccess.xml', [ + $this->setMockSoapResponse('FetchRefundsSuccess.xml', array( 'REFUND_ID' => $this->refundId, 'REFUND_REFERENCE' => $this->refundReference, 'TRANSACTION_ID' => $this->transactionId, @@ -154,7 +154,7 @@ public function testSendSuccess() 'CURRENCY' => $this->currency, 'AMOUNT' => $this->amount, 'TIMESTAMP' => $this->timestamp - ]); + )); $response = $this->request->send(); @@ -191,9 +191,9 @@ public function testSendSuccess() */ public function testSendByTimeSuccess() { - $this->setMockSoapResponse('FetchRefundsByTimeSuccess.xml', [ + $this->setMockSoapResponse('FetchRefundsByTimeSuccess.xml', array( 'TIMESTAMP' => $this->timestamp - ]); + )); $response = $this->request->send(); diff --git a/tests/Message/FetchTransactionRequestTest.php b/tests/Message/FetchTransactionRequestTest.php index c5a990d..763c219 100644 --- a/tests/Message/FetchTransactionRequestTest.php +++ b/tests/Message/FetchTransactionRequestTest.php @@ -115,7 +115,7 @@ public function testTransactionIdOrReferenceRequired() */ public function testSendSuccess() { - $this->setMockSoapResponse('FetchTransactionSuccess.xml', [ + $this->setMockSoapResponse('FetchTransactionSuccess.xml', array( 'TRANSACTION_ID' => $this->transactionId, 'TRANSACTION_REFERENCE' => $this->transactionReference, 'CURRENCY' => $this->currency, @@ -132,7 +132,7 @@ public function testSendSuccess() 'CVV_CODE' => $this->cvvCode, 'AVS_CODE' => $this->avsCode, 'TIMESTAMP' => $this->timestamp - ]); + )); $response = $this->request->send(); @@ -203,11 +203,11 @@ public function testSendSuccess() */ public function testSendByReferenceSuccess() { - $this->setMockSoapResponse('FetchTransactionByReferenceSuccess.xml', [ + $this->setMockSoapResponse('FetchTransactionByReferenceSuccess.xml', array( 'TRANSACTION_ID' => $this->transactionId, 'TRANSACTION_REFERENCE' => $this->transactionReference, 'TIMESTAMP' => $this->timestamp - ]); + )); $response = $this->request->send(); @@ -228,9 +228,9 @@ public function testSendByReferenceSuccess() */ public function testSendFailure() { - $this->setMockSoapResponse('FetchTransactionFailure.xml', [ + $this->setMockSoapResponse('FetchTransactionFailure.xml', array( 'TRANSACTION_ID' => $this->transactionId, - ]); + )); $response = $this->request->send(); @@ -248,9 +248,9 @@ public function testSendFailure() */ public function testSendByReferenceFailure() { - $this->setMockSoapResponse('FetchTransactionByReferenceFailure.xml', [ + $this->setMockSoapResponse('FetchTransactionByReferenceFailure.xml', array( 'TRANSACTION_REFERENCE' => $this->transactionReference, - ]); + )); $response = $this->request->send(); @@ -268,7 +268,7 @@ public function testSendByReferenceFailure() */ public function testSendPayPalSuccess() { - $this->setMockSoapResponse('FetchPayPalTransactionSuccess.xml', [ + $this->setMockSoapResponse('FetchPayPalTransactionSuccess.xml', array( 'TRANSACTION_ID' => $this->transactionId, 'TRANSACTION_REFERENCE' => $this->transactionReference, 'CURRENCY' => $this->currency, @@ -284,7 +284,7 @@ public function testSendPayPalSuccess() 'TOKEN' => $this->token, 'PAYPAL_EMAIL' => $this->paypalEmail, 'TIMESTAMP' => $this->timestamp - ]); + )); $response = $this->request->send(); diff --git a/tests/Message/FetchTransactionsRequestTest.php b/tests/Message/FetchTransactionsRequestTest.php index b5f866a..47a5f81 100644 --- a/tests/Message/FetchTransactionsRequestTest.php +++ b/tests/Message/FetchTransactionsRequestTest.php @@ -171,9 +171,9 @@ public function testCustomerIdOrTimesNotBoth() */ public function testSendSuccess() { - $this->setMockSoapResponse('FetchTransactionsSuccess.xml', [ + $this->setMockSoapResponse('FetchTransactionsSuccess.xml', array( 'TIMESTAMP' => $this->timestamp - ]); + )); $response = $this->request->send(); @@ -199,9 +199,9 @@ public function testSendSuccess() */ public function testSendByTimeSuccess() { - $this->setMockSoapResponse('FetchTransactionsByTimeSuccess.xml', [ + $this->setMockSoapResponse('FetchTransactionsByTimeSuccess.xml', array( 'TIMESTAMP' => $this->timestamp - ]); + )); $response = $this->request->send();