Skip to content

Commit 0efbc12

Browse files
PHPAY-40: adding structure test and fix namespaces (#45)
2 parents 5e047e7 + 9cd70eb commit 0efbc12

File tree

14 files changed

+42
-26
lines changed

14 files changed

+42
-26
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@
5757
},
5858
"window.zoomLevel": 1,
5959
"editor.fontVariations": false,
60+
"phpunit.phpunit": "vendor/bin/pest",
6061
}

src/Gateways/Asaas/AsaasGateway.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace PHPay\Asaas;
44

5-
use Asaas\Interface\AsaasGatewayInterface;
6-
use Asaas\Resources\Charge\Charge;
7-
use Asaas\Resources\Customer\Customer;
8-
use Asaas\Resources\Webhook\Webhook;
95
use GuzzleHttp\Client;
6+
use PHPay\Asaas\Interface\AsaasGatewayInterface;
7+
use PHPay\Asaas\Resources\Charge\Charge;
8+
use PHPay\Asaas\Resources\Customer\Customer;
9+
use PHPay\Asaas\Resources\Webhook\Webhook;
1010

1111
class AsaasGateway implements AsaasGatewayInterface
1212
{

src/Gateways/Asaas/Interface/AsaasGatewayInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Asaas\Interface;
3+
namespace PHPay\Asaas\Interface;
44

5-
use Asaas\Resources\Charge\Charge;
6-
use Asaas\Resources\Customer\Customer;
7-
use Asaas\Resources\Webhook\Webhook;
5+
use PHPay\Asaas\Resources\Charge\Charge;
6+
use PHPay\Asaas\Resources\Customer\Customer;
7+
use PHPay\Asaas\Resources\Webhook\Webhook;
88
use PHPay\Contracts\GatewayInterface;
99

1010
interface AsaasGatewayInterface extends GatewayInterface

src/Gateways/Asaas/Requests/AsaasChargeRequest.php

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

3-
namespace Asaas\Requests;
3+
namespace PHPay\Asaas\Requests;
44

55
use PHPay\Gateways\Asaas\Enums\{BillingTypeEnum};
66

src/Gateways/Asaas/Requests/AsaasCustomerRequest.php

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

3-
namespace Asaas\Requests;
3+
namespace PHPay\Asaas\Requests;
44

55
class AsaasCustomerRequest
66
{

src/Gateways/Asaas/Resources/Charge/Charge.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Asaas\Resources\Charge;
3+
namespace PHPay\Asaas\Resources\Charge;
44

5-
use Asaas\Requests\AsaasChargeRequest;
6-
use Asaas\Resources\Charge\Interface\ChargeInterface;
7-
use Asaas\Resources\Customer\Customer;
8-
use Asaas\Traits\HasAsaasClient;
95
use GuzzleHttp\Client;
6+
use PHPay\Asaas\Requests\AsaasChargeRequest;
7+
use PHPay\Asaas\Resources\Charge\Interface\ChargeInterface;
8+
use PHPay\Asaas\Resources\Customer\Customer;
9+
use PHPay\Asaas\Traits\HasAsaasClient;
1010

1111
class Charge implements ChargeInterface
1212
{

src/Gateways/Asaas/Resources/Charge/Interface/ChargeInterface.php

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

3-
namespace Asaas\Resources\Charge\Interface;
3+
namespace PHPay\Asaas\Resources\Charge\Interface;
44

55
interface ChargeInterface
66
{

src/Gateways/Asaas/Resources/Customer/Customer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Asaas\Resources\Customer;
3+
namespace PHPay\Asaas\Resources\Customer;
44

5-
use Asaas\Requests\AsaasCustomerRequest;
6-
use Asaas\Resources\Customer\Interface\CustomerInterface;
7-
use Asaas\Traits\HasAsaasClient;
85
use GuzzleHttp\Client;
6+
use PHPay\Asaas\Requests\AsaasCustomerRequest;
7+
use PHPay\Asaas\Resources\Customer\Interface\CustomerInterface;
8+
use PHPay\Asaas\Traits\HasAsaasClient;
99

1010
class Customer implements CustomerInterface
1111
{

src/Gateways/Asaas/Resources/Customer/Interface/CustomerInterface.php

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

3-
namespace Asaas\Resources\Customer\Interface;
3+
namespace PHPay\Asaas\Resources\Customer\Interface;
44

55
interface CustomerInterface
66
{

src/Gateways/Asaas/Resources/Webhook/Interface/WebhookInterface.php

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

3-
namespace Asaas\Resources\Webhook\Interface;
3+
namespace PHPay\Asaas\Resources\Webhook\Interface;
44

55
interface WebhookInterface
66
{

0 commit comments

Comments
 (0)