Skip to content

Commit ff56ae8

Browse files
sudiptpaStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent cba93b6 commit ff56ae8

File tree

3 files changed

+43
-43
lines changed

3 files changed

+43
-43
lines changed

tests/Message/DirectPostAuthorizeRequestTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ public function setUp()
1212

1313
$this->request->initialize(
1414
array(
15-
'merchantId' => 'XYZ0010',
15+
'merchantId' => 'XYZ0010',
1616
'transactionPassword' => 'abcd1234',
17-
'amount' => '12.00',
18-
'returnUrl' => 'https://www.abc.com/return',
19-
'card' => array(
20-
'number' => '4444333322221111',
17+
'amount' => '12.00',
18+
'returnUrl' => 'https://www.abc.com/return',
19+
'card' => array(
20+
'number' => '4444333322221111',
2121
'expiryMonth' => '6',
22-
'expiryYear' => '2030',
23-
'cvv' => '123',
22+
'expiryYear' => '2030',
23+
'cvv' => '123',
2424
),
2525
)
2626
);

tests/Message/DirectPostCompletePurchaseRequestTest.php

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ public function testGenerateResponseFingerprint()
1515
{
1616
$this->request->initialize(
1717
array(
18-
'amount' => '465.18',
18+
'amount' => '465.18',
1919
'transactionPassword' => 'abcd1234',
2020
)
2121
);
2222

2323
$data = array(
24-
'timestamp' => '20161125123332',
25-
'merchant' => 'XYZ0010',
26-
'refid' => '222',
24+
'timestamp' => '20161125123332',
25+
'merchant' => 'XYZ0010',
26+
'refid' => '222',
2727
'summarycode' => '2',
2828
);
2929

@@ -35,26 +35,26 @@ public function testSuccess()
3535
{
3636
$this->request->initialize(
3737
array(
38-
'amount' => '12.00',
38+
'amount' => '12.00',
3939
'transactionPassword' => 'abcd1234',
40-
'transactionId' => 'ORDER-ZYX8',
40+
'transactionId' => 'ORDER-ZYX8',
4141
)
4242
);
4343

4444
$this->getHttpRequest()->query->replace(
4545
array(
46-
'timestamp' => '20161125130241',
46+
'timestamp' => '20161125130241',
4747
'callback_status_code' => '-1',
48-
'fingerprint' => 'e30eb8381bc41201fbdf54a021d8228a3fbb6a6f',
49-
'txnid' => '271337',
50-
'merchant' => 'XYZ0010',
51-
'restext' => 'Approved',
52-
'rescode' => '00',
53-
'expirydate' => '20161126',
54-
'settdate' => '20161126',
55-
'refid' => 'ORDER-ZYX8',
56-
'pan' => '444433...111',
57-
'summarycode' => '1',
48+
'fingerprint' => 'e30eb8381bc41201fbdf54a021d8228a3fbb6a6f',
49+
'txnid' => '271337',
50+
'merchant' => 'XYZ0010',
51+
'restext' => 'Approved',
52+
'rescode' => '00',
53+
'expirydate' => '20161126',
54+
'settdate' => '20161126',
55+
'refid' => 'ORDER-ZYX8',
56+
'pan' => '444433...111',
57+
'summarycode' => '1',
5858
)
5959
);
6060

@@ -75,23 +75,23 @@ public function testSuccess()
7575
public function testFailure()
7676
{
7777
$this->request->initialize(array(
78-
'amount' => '465.18',
78+
'amount' => '465.18',
7979
'transactionPassword' => 'abcd1234',
8080
));
8181

8282
$this->getHttpRequest()->query->replace(array(
83-
'timestamp' => '20161126051715',
83+
'timestamp' => '20161126051715',
8484
'callback_status_code' => '404',
85-
'fingerprint' => 'cd75e2ef38cf63a2fa390024539acc7691eebc1d',
86-
'txnid' => '274279',
87-
'merchant' => 'XYZ0010',
88-
'restext' => 'Customer Dispute',
89-
'rescode' => '18',
90-
'expirydate' => '102030',
91-
'settdate' => '20161126',
92-
'refid' => 'ORDER-ZYX8',
93-
'pan' => '444433...111',
94-
'summarycode' => '2',
85+
'fingerprint' => 'cd75e2ef38cf63a2fa390024539acc7691eebc1d',
86+
'txnid' => '274279',
87+
'merchant' => 'XYZ0010',
88+
'restext' => 'Customer Dispute',
89+
'rescode' => '18',
90+
'expirydate' => '102030',
91+
'settdate' => '20161126',
92+
'refid' => 'ORDER-ZYX8',
93+
'pan' => '444433...111',
94+
'summarycode' => '2',
9595
));
9696

9797
$response = $this->request->send();

tests/Message/DirectPostPurchaseRequestTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ public function setUp()
1212

1313
$this->request->initialize(
1414
array(
15-
'merchantId' => 'XYZ0010',
15+
'merchantId' => 'XYZ0010',
1616
'transactionPassword' => 'abcd1234',
17-
'amount' => '12.00',
18-
'returnUrl' => 'https://www.example.com/return',
19-
'card' => array(
20-
'number' => '4444333322221111',
17+
'amount' => '12.00',
18+
'returnUrl' => 'https://www.example.com/return',
19+
'card' => array(
20+
'number' => '4444333322221111',
2121
'expiryMonth' => '06',
22-
'expiryYear' => '2020',
23-
'cvv' => '123',
22+
'expiryYear' => '2020',
23+
'cvv' => '123',
2424
),
2525
)
2626
);

0 commit comments

Comments
 (0)