Skip to content

Commit

Permalink
Merge pull request #1 from recca0120/analysis-Xp07E2
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
recca0120 authored Dec 8, 2016
2 parents 3074d52 + 33f13a5 commit c97ba3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Action/NotifyAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use Payum\Core\Reply\HttpResponse;
use Payum\Core\GatewayAwareInterface;
use Payum\Core\Action\ActionInterface;
use Payum\Core\Bridge\Spl\ArrayObject;
use Payum\Core\Request\GetHttpRequest;
use PayumTW\MyPay\Action\Api\BaseApiAwareAction;
use Payum\Core\Bridge\Spl\ArrayObject;
use Payum\Core\Exception\RequestNotSupportedException;

class NotifyAction extends BaseApiAwareAction implements ActionInterface, GatewayAwareInterface
Expand Down
7 changes: 3 additions & 4 deletions tests/Action/NotifyActionTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

use Mockery as m;
use Payum\Core\Reply\ReplyInterface;
use Payum\Core\Bridge\Spl\ArrayObject;
use PayumTW\Mypay\Action\NotifyAction;
use Payum\Core\Reply\ReplyInterface;

class NotifyActionTest extends PHPUnit_Framework_TestCase
{
Expand All @@ -12,7 +12,6 @@ public function tearDown()
m::close();
}


public function test_notify_success()
{
/*
Expand All @@ -39,7 +38,7 @@ public function test_notify_success()
->shouldReceive('getModel')->andReturn($details);

$gateway
->shouldReceive('execute')->with(m::type('Payum\Core\Request\GetHttpRequest'))->andReturnUsing(function($getHttpRequest) use ($returnValue) {
->shouldReceive('execute')->with(m::type('Payum\Core\Request\GetHttpRequest'))->andReturnUsing(function ($getHttpRequest) use ($returnValue) {
$getHttpRequest->request = $returnValue;

return $getHttpRequest;
Expand Down Expand Up @@ -97,7 +96,7 @@ public function test_notify_when_checksum_fail()
->shouldReceive('getModel')->andReturn($details);

$gateway
->shouldReceive('execute')->with(m::type('Payum\Core\Request\GetHttpRequest'))->andReturnUsing(function($getHttpRequest) use ($returnValue) {
->shouldReceive('execute')->with(m::type('Payum\Core\Request\GetHttpRequest'))->andReturnUsing(function ($getHttpRequest) use ($returnValue) {
$getHttpRequest->request = $returnValue;

return $getHttpRequest;
Expand Down

0 comments on commit c97ba3b

Please sign in to comment.