From 5f1731c40abb0a851cb95f5712fe05b841e9fb9e Mon Sep 17 00:00:00 2001 From: red-led Date: Thu, 14 Oct 2021 10:58:42 +0300 Subject: [PATCH 1/2] add newer php versions to Travis config --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 42b65e8..5f22da1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,8 @@ language: php php: - 7.2 - 7.3 + - 7.4 + - 8.0 before_install: - composer self-update From bd6ef4fbf9f4c0a21f9fb990036af72138a5166b Mon Sep 17 00:00:00 2001 From: red-led Date: Thu, 14 Oct 2021 11:20:03 +0300 Subject: [PATCH 2/2] use new PHPUnit version and pllyfill for older php versions --- composer.json | 5 +++-- tests/ImportTest.php | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 4971010..f4c01de 100644 --- a/composer.json +++ b/composer.json @@ -30,6 +30,7 @@ }, "minimum-stability": "dev", "require-dev": { - "phpunit/phpunit": "5.*" + "phpunit/phpunit": ">=7.0", + "yoast/phpunit-polyfills": "1.x-dev" } -} \ No newline at end of file +} diff --git a/tests/ImportTest.php b/tests/ImportTest.php index f0199af..cc00019 100644 --- a/tests/ImportTest.php +++ b/tests/ImportTest.php @@ -3,13 +3,13 @@ namespace Tests\Thamaraiselvam\MysqlImport; use Exception; -use PHPUnit_Framework_TestCase; use ReflectionMethod; use ReflectionProperty; use stdClass; use Thamaraiselvam\MysqlImport\Import; +use Yoast\PHPUnitPolyfills\TestCases\TestCase; -class ImportTest extends PHPUnit_Framework_TestCase +class ImportTest extends TestCase { /** * @dataProvider constructorSetVariablesDataProvider