Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

Commit 6334dd8

Browse files
committed
Changing name of test folder and adapt namespaces.
1 parent f6ef939 commit 6334dd8

10 files changed

Lines changed: 12 additions & 10 deletions

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"autoload-dev": {
3030
"psr-4": {
31-
"AmazonPayTst\\":"tst/unit"
31+
"AmazonPayTest\\":"test/"
3232
}
3333
},
3434
"require": {

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
checkForUnintentionallyCoveredCode="true">
66
<testsuites>
77
<testsuite name="Test Amazon Pay Sdk PHP">
8-
<directory>tst/unit</directory>
8+
<directory>Test/Unit</directory>
99
</testsuite>
1010
</testsuites>
1111
</phpunit>
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
2-
namespace AmazonPayTst;
2+
3+
namespace AmazonPayTest\Unit;
34

45
use AmazonPay\Client;
56
use AmazonPay\ResponseParser;
@@ -93,7 +94,7 @@ public function testConfigArray()
9394

9495
public function testJsonFile()
9596
{
96-
$configParams = "tst/unit/config/sandbox_true_bool.json";
97+
$configParams = "test/Unit/config/sandbox_true_bool.json";
9798
$client = new Client($configParams);
9899

99100
$this->assertTrue((bool)$client->__get('sandbox'));
@@ -107,22 +108,22 @@ public function testJsonFile()
107108
$this->assertEquals('1.0', $client->__get('application_version'));
108109

109110
try {
110-
$configParams = "tst/unit/config/sandbox_true_string.json";
111+
$configParams = "Test/Unit/config/sandbox_true_string.json";
111112
$client = new Client($configParams);
112113
} catch (\Exception $expected) {
113114
$this->assertRegExp('/should be a boolean value/i', strval($expected));
114115
}
115116

116-
$configParams = "tst/unit/config/sandbox_false_bool.json";
117+
$configParams = "Test/Unit/config/sandbox_false_bool.json";
117118
$client = new Client($configParams);
118119
$this->assertFalse((bool)$client->__get('sandbox'));
119120

120-
$configParams = "tst/unit/config/sandbox_none.json";
121+
$configParams = "Test/Unit/config/sandbox_none.json";
121122
$client = new Client($configParams);
122123
$this->assertFalse((bool)$client->__get('sandbox'));
123124

124125
try {
125-
$configParams = "tst/unit/config/sandbox_false_string.json";
126+
$configParams = "Test/unit/config/sandbox_false_string.json";
126127
$client = new Client($configParams);
127128
} catch (\Exception $expected) {
128129
$this->assertRegExp('/should be a boolean value/i', strval($expected));
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
2-
namespace AmazonPayTst;
2+
3+
namespace AmazonPayTest\Unit;
34

45
use AmazonPay\IpnHandler;
56

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace AmazonPayTst;
3+
namespace AmazonPayTest\Unit;
44

55
class Signature
66
{
File renamed without changes.

0 commit comments

Comments
 (0)