From 2dc3db07907edc6fa7de387cd5f0ecbefd445370 Mon Sep 17 00:00:00 2001 From: Kotlyar Maksim Date: Mon, 3 Aug 2015 19:40:44 +0000 Subject: [PATCH] use ::class const, --- Tests/Action/ConvertPaymentActionTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tests/Action/ConvertPaymentActionTest.php b/Tests/Action/ConvertPaymentActionTest.php index 32cc255..81297c2 100644 --- a/Tests/Action/ConvertPaymentActionTest.php +++ b/Tests/Action/ConvertPaymentActionTest.php @@ -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; @@ -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'))), ); } @@ -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')), ); }