From 9c2594f7f2a6174de4526c644bbd02af1d1776c0 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Mon, 13 Nov 2017 06:32:31 -0200 Subject: [PATCH 1/2] Support PHPUnit 5 and 6 --- composer.json | 2 +- tests/TestCase.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 61564dd8..24ca257f 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "php": "^7.0 || ^5.3" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "~4.8.35 || ~5.7 || ~6.4" }, "suggest": { "graphp/graphviz": "GraphViz graph drawing / DOT output", diff --git a/tests/TestCase.php b/tests/TestCase.php index 7653cb20..48e6bd7a 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -7,9 +7,9 @@ use Fhaculty\Graph\Graph; use Fhaculty\Graph\Vertex; use Fhaculty\Graph\Set\Vertices; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase as BaseTestCase; -class TestCase extends PHPUnit_Framework_TestCase +class TestCase extends BaseTestCase { protected function assertGraphEquals(Graph $expected, Graph $actual) { From 07f747029acc9401c507b526bff9dd9c4a8f73e1 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Sat, 18 Nov 2017 08:53:03 -0200 Subject: [PATCH 2/2] Force PHP 5.3 run on Precise --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 16362f20..05d0c1ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: php php: - - 5.3 - 5.4 - 5.5 - 5.6 @@ -10,6 +9,11 @@ php: sudo: false +matrix: + include: + - php: 5.3 + dist: precise + install: - composer install --no-interaction