diff --git a/tests/EncryptionTest.php b/tests/EncryptionTest.php index 9c59e47..b4668a0 100644 --- a/tests/EncryptionTest.php +++ b/tests/EncryptionTest.php @@ -7,7 +7,7 @@ class EncryptionTest extends TestCase { - public function test_encrypt_by_phpseclib_array() + public function testEncryptByPhpseclib() { //經銷商商店金鑰【從用戶端發動時,以驗證碼代替金鑰】 $key = 'Xd668CSjnXQLD26Hia8vapkOgGXAv68s'; @@ -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'; diff --git a/tests/GatewayTest.php b/tests/GatewayTest.php index 0d748bd..a748bec 100644 --- a/tests/GatewayTest.php +++ b/tests/GatewayTest.php @@ -40,7 +40,7 @@ public function setUp() ]); } - public function test_purchase() + public function testPurchase() { $this->setMockHttpResponse('PurchaseSuccess.txt'); @@ -82,7 +82,7 @@ public function test_purchase() ], $options); } - public function test_complete_purchase() + public function testCompletePurchase() { $options = [ 'key' => 'dee886ee19ddbb97e2968a1a8777fc7d', @@ -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', @@ -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'); @@ -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'); diff --git a/tests/Message/CompletePurchaseRequestTest.php b/tests/Message/CompletePurchaseRequestTest.php index 6f791f0..04b2745 100644 --- a/tests/Message/CompletePurchaseRequestTest.php +++ b/tests/Message/CompletePurchaseRequestTest.php @@ -57,7 +57,7 @@ public function setUp() ]); } - public function test_get_data() + public function testGetData() { self::assertEquals([ 'key' => 'dee886ee19ddbb97e2968a1a8777fc7d', diff --git a/tests/Message/CompletePurchaseResponseTest.php b/tests/Message/CompletePurchaseResponseTest.php index 34ffe9b..6ae28fc 100644 --- a/tests/Message/CompletePurchaseResponseTest.php +++ b/tests/Message/CompletePurchaseResponseTest.php @@ -7,7 +7,7 @@ class CompletePurchaseResponseTest extends TestCase { - public function test_complete_purchase_success() + public function testCompletePurchaseSuccess() { $data = [ 'key' => 'dee886ee19ddbb97e2968a1a8777fc7d', diff --git a/tests/Message/FetchTransactionRequestTest.php b/tests/Message/FetchTransactionRequestTest.php index 1b00ce1..94465b2 100644 --- a/tests/Message/FetchTransactionRequestTest.php +++ b/tests/Message/FetchTransactionRequestTest.php @@ -23,7 +23,7 @@ public function setUp() ]); } - public function test_get_data() + public function testGetData() { self::assertEquals([ 'uid' => '86579', diff --git a/tests/Message/PurchaseRequestTest.php b/tests/Message/PurchaseRequestTest.php index 43b1bbb..f81eac1 100644 --- a/tests/Message/PurchaseRequestTest.php +++ b/tests/Message/PurchaseRequestTest.php @@ -48,7 +48,7 @@ public function setUp() ]); } - public function test_get_data() + public function testGetData() { self::assertEquals([ 'store_uid' => '398800730001', diff --git a/tests/Message/PurchaseResponseTest.php b/tests/Message/PurchaseResponseTest.php index c58b1a6..5d59d06 100644 --- a/tests/Message/PurchaseResponseTest.php +++ b/tests/Message/PurchaseResponseTest.php @@ -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);