diff --git a/.travis.yml b/.travis.yml index d0e7520a..adb94061 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,9 +8,6 @@ env: - TEST_SUITE=samples php: - - 5.6 - - 7.0 - - 7.1 - 7.2 - 7.3 - 7.4 diff --git a/composer.json b/composer.json index e7e50bc8..ed0f9da6 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "license": "proprietary", "homepage": "http://developer.authorize.net", "require": { - "php": ">=5.6", + "php": ">=7.2", "ext-curl": "*", "ext-json": "*" }, diff --git a/tests/Controller_Test.php b/tests/Controller_Test.php index 7cdb3546..a5ab7599 100644 --- a/tests/Controller_Test.php +++ b/tests/Controller_Test.php @@ -46,7 +46,7 @@ public function testARBGetSubscriptionList() $this->assertEquals("Ok", $response->getMessages()->getResultCode()); $this->assertEquals($response->getRefId(), $refId); - $this->assertTrue(0 < count($response->getMessages())); + $this->assertNotNull($response->getMessages()); foreach ($response->getMessages() as $message) { $this->assertEquals("I00001", $message->getCode()); @@ -79,7 +79,7 @@ public function testARBGetSubscription() $this->assertEquals("Ok", $response->getMessages()->getResultCode()); $this->assertEquals($response->getRefId(), $refId); - $this->assertTrue(0 < count($response->getMessages())); + $this->assertNotNull($response->getMessages()); foreach ($response->getMessages() as $message) { @@ -124,7 +124,7 @@ public function testGetCustomerPaymentProfileList() $this->assertEquals("Ok", $response->getMessages()->getResultCode()); $this->assertEquals($response->getRefId(), $refId); - $this->assertTrue(0 < count($response->getMessages())); + $this->assertNotNull($response->getMessages()); foreach ($response->getMessages() as $message) { @@ -173,7 +173,7 @@ public function testDecryptPaymentData() $this->assertEquals("Ok", $response->getMessages()->getResultCode()); //$this->assertEquals($response->getRefId(), $refId); - $this->assertTrue(0 < count($response->getMessages())); + $this->assertNotNull($response->getMessages()); foreach ($response->getMessages() as $message) { $this->assertEquals("I00001", $message->getCode()); diff --git a/tests/net/authorize/api/controller/CreateTransactionControllerTest.php b/tests/net/authorize/api/controller/CreateTransactionControllerTest.php index e6af892e..9f1e5619 100644 --- a/tests/net/authorize/api/controller/CreateTransactionControllerTest.php +++ b/tests/net/authorize/api/controller/CreateTransactionControllerTest.php @@ -44,7 +44,7 @@ public function testCreateTransactionCreditCard() } $this->assertEquals("Ok", $response->getMessages()->getResultCode()); $this->assertEquals( $this->refId, $response->getRefId()); - $this->assertTrue(0 < count($response->getMessages())); + $this->assertNotNull($response->getMessages()); foreach ($response->getMessages() as $message) { $this->assertEquals("I00001", $message->getCode()); @@ -88,7 +88,7 @@ public function testCreateTransactionPayPal() else { $this->assertEquals("Ok", $response->getMessages()->getResultCode()); - $this->assertTrue(0 < count($response->getMessages())); + $this->assertNotNull($response->getMessages()); foreach ($response->getMessages() as $message) { $this->assertEquals("I00001", $message->getCode()); diff --git a/tests/net/authorize/api/controller/LogoutControllerTest.php b/tests/net/authorize/api/controller/LogoutControllerTest.php index 284cb53c..fde033fd 100644 --- a/tests/net/authorize/api/controller/LogoutControllerTest.php +++ b/tests/net/authorize/api/controller/LogoutControllerTest.php @@ -26,7 +26,7 @@ public function testLogout() $this->assertEquals("Ok", $response->getMessages()->getResultCode()); $this->assertEquals( $this->refId, $response->getRefId()); - $this->assertTrue(0 < count($response->getMessages())); + $this->assertNotNull($response->getMessages()); foreach ($response->getMessages() as $message) { $this->assertEquals("I00001", $message->getCode());