Skip to content

Commit

Permalink
use ::class const,
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Aug 3, 2015
1 parent a91b0da commit 2dc3db0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/Action/ConvertPaymentActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use Payum\Core\Model\CreditCard;
use Payum\Core\Model\Payment;
use Payum\Core\Model\PaymentInterface;
use Payum\Core\Request\Convert;
use Payum\Core\Tests\GenericActionTest;
use Payum\Stripe\Action\ConvertPaymentAction;
Expand All @@ -17,7 +18,7 @@ public function provideSupportedRequests()
{
return array(
array(new $this->requestClass(new Payment(), 'array')),
array(new $this->requestClass($this->getMock('Payum\Core\Model\PaymentInterface'), 'array')),
array(new $this->requestClass($this->getMock(PaymentInterface::class), 'array')),
array(new $this->requestClass(new Payment(), 'array', $this->getMock('Payum\Core\Security\TokenInterface'))),
);
}
Expand All @@ -31,7 +32,7 @@ public function provideNotSupportedRequests()
array($this->getMockForAbstractClass('Payum\Core\Request\Generic', array(array()))),
array(new $this->requestClass(new \stdClass(), 'array')),
array(new $this->requestClass(new Payment(), 'foobar')),
array(new $this->requestClass($this->getMock('Payum\Core\Model\PaymentInterface'), 'foobar')),
array(new $this->requestClass($this->getMock(PaymentInterface::class), 'foobar')),
);
}

Expand Down

0 comments on commit 2dc3db0

Please sign in to comment.