diff --git a/.vscode/settings.json b/.vscode/settings.json index a482329..efdb6c2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -57,4 +57,5 @@ }, "window.zoomLevel": 1, "editor.fontVariations": false, + "phpunit.phpunit": "vendor/bin/pest", } \ No newline at end of file diff --git a/src/Gateways/Asaas/AsaasGateway.php b/src/Gateways/Asaas/AsaasGateway.php index 4c2ac58..ad813ae 100644 --- a/src/Gateways/Asaas/AsaasGateway.php +++ b/src/Gateways/Asaas/AsaasGateway.php @@ -2,11 +2,11 @@ namespace PHPay\Asaas; -use Asaas\Interface\AsaasGatewayInterface; -use Asaas\Resources\Charge\Charge; -use Asaas\Resources\Customer\Customer; -use Asaas\Resources\Webhook\Webhook; use GuzzleHttp\Client; +use PHPay\Asaas\Interface\AsaasGatewayInterface; +use PHPay\Asaas\Resources\Charge\Charge; +use PHPay\Asaas\Resources\Customer\Customer; +use PHPay\Asaas\Resources\Webhook\Webhook; class AsaasGateway implements AsaasGatewayInterface { diff --git a/src/Gateways/Asaas/Interface/AsaasGatewayInterface.php b/src/Gateways/Asaas/Interface/AsaasGatewayInterface.php index 72fcb95..75a7fc2 100644 --- a/src/Gateways/Asaas/Interface/AsaasGatewayInterface.php +++ b/src/Gateways/Asaas/Interface/AsaasGatewayInterface.php @@ -1,10 +1,10 @@ toBeInstanceOf(PHPay::class) + ->toHaveProperty('gateway') + ->toBeInstanceOf(GatewayInterface::class); +}); diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/tests/Unit/ExampleTest.php @@ -0,0 +1 @@ +