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 fa16756 commit 45b99ef
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
@@ -1,6 +1,7 @@
<?php
namespace Payum\Offline\Tests\Action\Api;

use Payum\Core\Model\PaymentInterface;
use Payum\Offline\Action\ConvertPaymentAction;
use Payum\Core\Model\Payment;
use Payum\Core\Request\Convert;
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 45b99ef

Please sign in to comment.