Skip to content

Commit

Permalink
Drop support for PHP <5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
z38 committed Jan 5, 2020
1 parent 5c16a0c commit 199d7c6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
}
],
"require": {
"php": ">=5.4.0"
"php": "^5.6 || ^7"
},
"require-dev": {
"phpunit/phpunit": "~4.2"
"phpunit/phpunit": "^5 || ^8"
},
"autoload": {
"psr-0": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use DOMDocument;
use DOMXPath;
use Z38\SwissPayment\BIC;
use Z38\SwissPayment\FinancialInstitutionInterface;
use Z38\SwissPayment\IBAN;
use Z38\SwissPayment\Money;
use Z38\SwissPayment\PaymentInformation\CategoryPurposeCode;
Expand All @@ -25,7 +26,7 @@ class PaymentInformationTest extends TestCase
*/
public function testInvalidDebtorAgent()
{
$debtorAgent = $this->getMock('\Z38\SwissPayment\FinancialInstitutionInterface');
$debtorAgent = $this->createMock(FinancialInstitutionInterface::class);

$payment = new PaymentInformation(
'id000',
Expand Down
4 changes: 3 additions & 1 deletion tests/Z38/SwissPayment/Tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Z38\SwissPayment\Tests;

abstract class TestCase extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Z38\SwissPayment\Tests\TransactionInformation;

use Z38\SwissPayment\BIC;
use Z38\SwissPayment\FinancialInstitutionInterface;
use Z38\SwissPayment\IBAN;
use Z38\SwissPayment\Money;
use Z38\SwissPayment\StructuredPostalAddress;
Expand All @@ -20,7 +21,7 @@ class BankCreditTransferTest extends TestCase
*/
public function testInvalidCreditorAgent()
{
$creditorAgent = $this->getMock('\Z38\SwissPayment\FinancialInstitutionInterface');
$creditorAgent = $this->createMock(FinancialInstitutionInterface::class);

$transfer = new BankCreditTransfer(
'id000',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Z38\SwissPayment\Tests\TransactionInformation;

use Z38\SwissPayment\FinancialInstitutionInterface;
use Z38\SwissPayment\IBAN;
use Z38\SwissPayment\Money;
use Z38\SwissPayment\StructuredPostalAddress;
Expand All @@ -19,7 +20,7 @@ class ForeignCreditTransferTest extends TestCase
*/
public function testInvalidCreditorAgent()
{
$creditorAgent = $this->getMock('\Z38\SwissPayment\FinancialInstitutionInterface');
$creditorAgent = $this->createMock(FinancialInstitutionInterface::class);

$transfer = new ForeignCreditTransfer(
'id000',
Expand Down

0 comments on commit 199d7c6

Please sign in to comment.