From bd6ef4fbf9f4c0a21f9fb990036af72138a5166b Mon Sep 17 00:00:00 2001 From: red-led Date: Thu, 14 Oct 2021 11:20:03 +0300 Subject: [PATCH] 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