Skip to content

Commit

Permalink
chore: camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
recca0120 committed May 24, 2021
1 parent eb9201c commit 5fab202
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions tests/EncryptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

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

public function test_decrypt_by_phpseclib_array()
public function testDecryptByPhpseclib()
{
//經銷商商店金鑰【從用戶端發動時,以驗證碼代替金鑰】
$key = 'Xd668CSjnXQLD26Hia8vapkOgGXAv68s';
Expand Down
10 changes: 5 additions & 5 deletions tests/GatewayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function setUp()
]);
}

public function test_purchase()
public function testPurchase()
{
$this->setMockHttpResponse('PurchaseSuccess.txt');

Expand Down Expand Up @@ -82,7 +82,7 @@ public function test_purchase()
], $options);
}

public function test_complete_purchase()
public function testCompletePurchase()
{
$options = [
'key' => 'dee886ee19ddbb97e2968a1a8777fc7d',
Expand Down Expand Up @@ -124,7 +124,7 @@ public function test_complete_purchase()
self::assertEquals('86579', $response->getTransactionReference());
}

public function test_accept_notification()
public function testAcceptNotification()
{
$options = [
'key' => 'dee886ee19ddbb97e2968a1a8777fc7d',
Expand Down Expand Up @@ -162,7 +162,7 @@ public function test_accept_notification()
self::assertEquals('8888', $response->getMessage());
}

public function test_fetch_transaction()
public function testFetchTransaction()
{
$this->setMockHttpResponse('FetchTransactionSuccess.txt');

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

public function test_refund()
public function testRefund()
{
$this->setMockHttpResponse('RefundSuccess.txt');

Expand Down
2 changes: 1 addition & 1 deletion tests/Message/CompletePurchaseRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function setUp()
]);
}

public function test_get_data()
public function testGetData()
{
self::assertEquals([
'key' => 'dee886ee19ddbb97e2968a1a8777fc7d',
Expand Down
2 changes: 1 addition & 1 deletion tests/Message/CompletePurchaseResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class CompletePurchaseResponseTest extends TestCase
{
public function test_complete_purchase_success()
public function testCompletePurchaseSuccess()
{
$data = [
'key' => 'dee886ee19ddbb97e2968a1a8777fc7d',
Expand Down
2 changes: 1 addition & 1 deletion tests/Message/FetchTransactionRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function setUp()
]);
}

public function test_get_data()
public function testGetData()
{
self::assertEquals([
'uid' => '86579',
Expand Down
2 changes: 1 addition & 1 deletion tests/Message/PurchaseRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function setUp()
]);
}

public function test_get_data()
public function testGetData()
{
self::assertEquals([
'store_uid' => '398800730001',
Expand Down
2 changes: 1 addition & 1 deletion tests/Message/PurchaseResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class PurchaseResponseTest extends TestCase
{
public function test_purchase_success()
public function testPurchaseSuccess()
{
$httpResponse = $this->getMockHttpResponse('PurchaseSuccess.txt');
$data = json_decode($httpResponse->getBody(), true);
Expand Down

0 comments on commit 5fab202

Please sign in to comment.