Skip to content

Commit

Permalink
style ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Recca Tsai committed Feb 28, 2017
1 parent af7b70b commit 48c5345
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(array $options, HttpClientInterface $client, Message
*/
protected function doRequest(array $fields, $type = 'sync')
{
$request = $this->messageFactory->createRequest('POST', $this->getApiEndpoint($type), [
$request = $this->messageFactory->createRequest('POST', $this->getApiEndpoint($type), [
'Content-Type' => 'application/x-www-form-urlencoded',
], http_build_query($this->encrypter->encryptRequest($fields)));

Expand Down
3 changes: 2 additions & 1 deletion tests/Action/Api/CancelTransactionActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Mockery as m;
use PHPUnit\Framework\TestCase;
use Payum\Core\Bridge\Spl\ArrayObject;
use PayumTW\Esunbank\Request\Api\CancelTransaction;
use PayumTW\Esunbank\Action\Api\CancelTransactionAction;

Expand All @@ -17,7 +18,7 @@ protected function tearDown()
public function testExecute()
{
$action = new CancelTransactionAction();
$request = new CancelTransaction(['ONO' => 'foo']);
$request = new CancelTransaction(new ArrayObject(['ONO' => 'foo']));

$action->setApi(
$api = m::mock('PayumTW\Esunbank\Api')
Expand Down
3 changes: 2 additions & 1 deletion tests/Action/Api/CreateTransactionActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Mockery as m;
use PHPUnit\Framework\TestCase;
use Payum\Core\Bridge\Spl\ArrayObject;
use Payum\Core\Reply\HttpPostRedirect;
use PayumTW\Esunbank\Request\Api\CreateTransaction;
use PayumTW\Esunbank\Action\Api\CreateTransactionAction;
Expand All @@ -18,7 +19,7 @@ protected function tearDown()
public function testExecute()
{
$action = new CreateTransactionAction();
$request = new CreateTransaction([]);
$request = new CreateTransaction(new ArrayObject([]));

$action->setApi(
$api = m::mock('PayumTW\Esunbank\Api')
Expand Down
3 changes: 2 additions & 1 deletion tests/Action/Api/GetTransactionDataActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Mockery as m;
use PHPUnit\Framework\TestCase;
use Payum\Core\Bridge\Spl\ArrayObject;
use PayumTW\Esunbank\Request\Api\GetTransactionData;
use PayumTW\Esunbank\Action\Api\GetTransactionDataAction;

Expand All @@ -17,7 +18,7 @@ protected function tearDown()
public function testExecute()
{
$action = new GetTransactionDataAction();
$request = new GetTransactionData([]);
$request = new GetTransactionData(new ArrayObject([]));

$action->setApi(
$api = m::mock('PayumTW\Esunbank\Api')
Expand Down
3 changes: 2 additions & 1 deletion tests/Action/Api/RefundTransactionActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Mockery as m;
use PHPUnit\Framework\TestCase;
use Payum\Core\Bridge\Spl\ArrayObject;
use PayumTW\Esunbank\Request\Api\RefundTransaction;
use PayumTW\Esunbank\Action\Api\RefundTransactionAction;

Expand All @@ -17,7 +18,7 @@ protected function tearDown()
public function testExecute()
{
$action = new RefundTransactionAction();
$request = new RefundTransaction(['ONO' => 'foo']);
$request = new RefundTransaction(new ArrayObject(['ONO' => 'foo']));

$action->setApi(
$api = m::mock('PayumTW\Esunbank\Api')
Expand Down
2 changes: 1 addition & 1 deletion tests/Action/CancelActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace PayumTW\Esunbank\Tests;

use Mockery as m;
use PHPUnit\Framework\TestCase;
use Payum\Core\Request\Cancel;
use PHPUnit\Framework\TestCase;
use PayumTW\Esunbank\Action\CancelAction;

class CancelActionTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Action/RefundActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace PayumTW\Esunbank\Tests;

use Mockery as m;
use PHPUnit\Framework\TestCase;
use Payum\Core\Request\Refund;
use PHPUnit\Framework\TestCase;
use PayumTW\Esunbank\Action\RefundAction;

class RefundActionTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Action/SyncActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace PayumTW\Esunbank\Tests;

use Mockery as m;
use PHPUnit\Framework\TestCase;
use Payum\Core\Request\Sync;
use PHPUnit\Framework\TestCase;
use PayumTW\Esunbank\Action\SyncAction;

class SyncActionTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/EnrypterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace PayumTW\Esunbank\Tests;

use Mockery as m;
use PHPUnit\Framework\TestCase;
use PayumTW\Esunbank\Encrypter;
use PHPUnit\Framework\TestCase;

class EnrypterTest extends TestCase
{
Expand Down

0 comments on commit 48c5345

Please sign in to comment.