Skip to content

Commit

Permalink
Removed ::class references, because it break php53 and php54 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels Tholenaar committed Feb 12, 2016
1 parent 2c95094 commit d39f65b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions tests/Message/FetchIssuersRequestTest.php
@@ -1,6 +1,5 @@
<?php namespace Omnipay\MultiSafepay\Message;

use Omnipay\Common\Issuer;
use Omnipay\Tests\TestCase;

class FetchIssuersRequestTest extends TestCase
Expand Down Expand Up @@ -33,9 +32,9 @@ public function testSendSuccess()

$issuers = $response->getIssuers();

$this->assertContainsOnlyInstancesOf(Issuer::class, $issuers);
$this->assertContainsOnlyInstancesOf('Omnipay\Common\Issuer', $issuers);
$this->assertFalse($response->isRedirect());
$this->assertInstanceOf(FetchIssuersResponse::class, $response);
$this->assertInstanceOf('Omnipay\MultiSafepay\Message\FetchIssuersResponse', $response);
$this->assertInternalType('array', $issuers);

$this->assertNull($response->getTransactionReference());
Expand All @@ -53,6 +52,6 @@ public function testIssuerNotFound()
$this->assertFalse($response->isRedirect());

$this->assertFalse($response->isSuccessful());
$this->assertInstanceOf(FetchIssuersResponse::class, $response);
$this->assertInstanceOf('Omnipay\MultiSafepay\Message\FetchIssuersResponse', $response);
}
}
3 changes: 1 addition & 2 deletions tests/Message/FetchPaymentMethodsRequestTest.php
@@ -1,6 +1,5 @@
<?php namespace Omnipay\MultiSafepay\Message;

use Omnipay\Common\PaymentMethod;
use Omnipay\Tests\TestCase;

class FetchPaymentMethodsRequestTest extends TestCase
Expand Down Expand Up @@ -38,6 +37,6 @@ public function testSendSuccess()
$this->assertNull($response->getTransactionReference());

$this->assertInternalType('array', $paymentMethods);
$this->assertContainsOnlyInstancesOf(PaymentMethod::class, $paymentMethods);
$this->assertContainsOnlyInstancesOf('Omnipay\Common\PaymentMethod', $paymentMethods);
}
}

0 comments on commit d39f65b

Please sign in to comment.