Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
recca0120 committed Nov 10, 2023
1 parent f8f3845 commit 87dfdd0
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .phpstorm.meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
/** @noinspection PhpUnusedLocalVariableInspection */
$STATIC_METHOD_TYPES = [
\Omnipay\Omnipay::create('') => [
'Skeleton' instanceof \Omnipay\Skeleton\SkeletonGateway,
'NewebPay' instanceof \Omnipay\NewebPay\NewebPayGateway,
],
\Omnipay\Common\GatewayFactory::create('') => [
'Skeleton' instanceof \Omnipay\Skeleton\SkeletonGateway,
'NewebPay' instanceof \Omnipay\NewebPay\NewebPayGateway,
],
];
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
},
"autoload": {
"psr-4": {
"Omnipay\\Skeleton\\": "src"
"Omnipay\\NewebPay\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Omnipay\\Skeleton\\Tests\\": "tests"
"Omnipay\\NewebPay\\Tests\\": "tests"
}
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Omnipay\Skeleton\Message;
namespace Omnipay\NewebPay\Message;

use Omnipay\Common\Message\AbstractRequest as BaseAbstractRequest;

Expand Down
2 changes: 1 addition & 1 deletion src/Message/AuthorizeRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Omnipay\Skeleton\Message;
namespace Omnipay\NewebPay\Message;

/**
* Authorize Request
Expand Down
2 changes: 1 addition & 1 deletion src/Message/Response.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Omnipay\Skeleton\Message;
namespace Omnipay\NewebPay\Message;

use Omnipay\Common\Message\AbstractResponse;
use Omnipay\Common\Message\RequestInterface;
Expand Down
10 changes: 5 additions & 5 deletions src/SkeletonGateway.php → src/NewebPayGateway.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php

namespace Omnipay\Skeleton;
namespace Omnipay\NewebPay;

use Omnipay\Common\AbstractGateway;
use Omnipay\Skeleton\Message\AuthorizeRequest;
use Omnipay\NewebPay\Message\AuthorizeRequest;

/**
* Skeleton Gateway
* NewebPay Gateway
*/
class SkeletonGateway extends AbstractGateway
class NewebPayGateway extends AbstractGateway
{
public function getName()
{
return 'Skeleton';
return 'NewebPay';
}

public function getDefaultParameters()
Expand Down
9 changes: 5 additions & 4 deletions tests/GatewayTest.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
<?php

namespace Omnipay\Skeleton\Tests;
namespace Omnipay\NewebPay\Tests;

use Omnipay\Skeleton\SkeletonGateway;
use Omnipay\NewebPay\NewebPayGateway;
use Omnipay\Tests\GatewayTestCase;

class GatewayTest extends GatewayTestCase
{
/** @var SkeletonGateway */
/** @var NewebPayGateway */
protected $gateway;
protected $options;

public function setUp(): void
{
parent::setUp();

$this->gateway = new SkeletonGateway($this->getHttpClient(), $this->getHttpRequest());
$this->gateway = new NewebPayGateway($this->getHttpClient(), $this->getHttpRequest());

$this->options = [
'amount' => '10.00',
Expand Down
4 changes: 2 additions & 2 deletions tests/Message/AuthorizeRequestTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Omnipay\Skeleton\Tests\Message;
namespace Omnipay\NewebPay\Tests\Message;

use Omnipay\Common\CreditCard;
use Omnipay\Skeleton\Message\AuthorizeRequest;
use Omnipay\NewebPay\Message\AuthorizeRequest;
use Omnipay\Tests\TestCase;

class AuthorizeRequestTest extends TestCase
Expand Down
4 changes: 2 additions & 2 deletions tests/Message/ResponseTest.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Omnipay\Skeleton\Tests\Message;
namespace Omnipay\NewebPay\Tests\Message;

use Omnipay\Skeleton\Message\Response;
use Omnipay\NewebPay\Message\Response;
use Omnipay\Tests\TestCase;

class ResponseTest extends TestCase
Expand Down

0 comments on commit 87dfdd0

Please sign in to comment.