Skip to content

Commit 5fab202

Browse files
committed
chore: camel case
1 parent eb9201c commit 5fab202

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

tests/EncryptionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class EncryptionTest extends TestCase
99
{
10-
public function test_encrypt_by_phpseclib_array()
10+
public function testEncryptByPhpseclib()
1111
{
1212
//經銷商商店金鑰【從用戶端發動時,以驗證碼代替金鑰】
1313
$key = 'Xd668CSjnXQLD26Hia8vapkOgGXAv68s';
@@ -32,7 +32,7 @@ public function test_encrypt_by_phpseclib_array()
3232
self::assertEquals($payment, decrypt($encrypt, $key));
3333
}
3434

35-
public function test_decrypt_by_phpseclib_array()
35+
public function testDecryptByPhpseclib()
3636
{
3737
//經銷商商店金鑰【從用戶端發動時,以驗證碼代替金鑰】
3838
$key = 'Xd668CSjnXQLD26Hia8vapkOgGXAv68s';

tests/GatewayTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function setUp()
4040
]);
4141
}
4242

43-
public function test_purchase()
43+
public function testPurchase()
4444
{
4545
$this->setMockHttpResponse('PurchaseSuccess.txt');
4646

@@ -82,7 +82,7 @@ public function test_purchase()
8282
], $options);
8383
}
8484

85-
public function test_complete_purchase()
85+
public function testCompletePurchase()
8686
{
8787
$options = [
8888
'key' => 'dee886ee19ddbb97e2968a1a8777fc7d',
@@ -124,7 +124,7 @@ public function test_complete_purchase()
124124
self::assertEquals('86579', $response->getTransactionReference());
125125
}
126126

127-
public function test_accept_notification()
127+
public function testAcceptNotification()
128128
{
129129
$options = [
130130
'key' => 'dee886ee19ddbb97e2968a1a8777fc7d',
@@ -162,7 +162,7 @@ public function test_accept_notification()
162162
self::assertEquals('8888', $response->getMessage());
163163
}
164164

165-
public function test_fetch_transaction()
165+
public function testFetchTransaction()
166166
{
167167
$this->setMockHttpResponse('FetchTransactionSuccess.txt');
168168

@@ -179,7 +179,7 @@ public function test_fetch_transaction()
179179
self::assertEquals('86579', $response->getTransactionReference());
180180
}
181181

182-
public function test_refund()
182+
public function testRefund()
183183
{
184184
$this->setMockHttpResponse('RefundSuccess.txt');
185185

tests/Message/CompletePurchaseRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function setUp()
5757
]);
5858
}
5959

60-
public function test_get_data()
60+
public function testGetData()
6161
{
6262
self::assertEquals([
6363
'key' => 'dee886ee19ddbb97e2968a1a8777fc7d',

tests/Message/CompletePurchaseResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class CompletePurchaseResponseTest extends TestCase
99
{
10-
public function test_complete_purchase_success()
10+
public function testCompletePurchaseSuccess()
1111
{
1212
$data = [
1313
'key' => 'dee886ee19ddbb97e2968a1a8777fc7d',

tests/Message/FetchTransactionRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function setUp()
2323
]);
2424
}
2525

26-
public function test_get_data()
26+
public function testGetData()
2727
{
2828
self::assertEquals([
2929
'uid' => '86579',

tests/Message/PurchaseRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function setUp()
4848
]);
4949
}
5050

51-
public function test_get_data()
51+
public function testGetData()
5252
{
5353
self::assertEquals([
5454
'store_uid' => '398800730001',

tests/Message/PurchaseResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class PurchaseResponseTest extends TestCase
99
{
10-
public function test_purchase_success()
10+
public function testPurchaseSuccess()
1111
{
1212
$httpResponse = $this->getMockHttpResponse('PurchaseSuccess.txt');
1313
$data = json_decode($httpResponse->getBody(), true);

0 commit comments

Comments
 (0)