From 68ec119c6c058399e04a4b4eaf23db066144f028 Mon Sep 17 00:00:00 2001 From: Serikov Egor Date: Tue, 26 Nov 2024 18:17:29 +0300 Subject: [PATCH] declare php 8.x support, update dependency packages --- .travis.yml | 5 +++++ composer.json | 6 +++--- phpunit.xml | 20 ++++++-------------- tests/ConverterTest.php | 2 +- 4 files changed, 15 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index d62ee56..7e7f639 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,11 @@ language: php php: - 7.2 - 7.3 + - 7.4 + - 8.1 + - 8.2 + - 8.3 + - 8.4 before_script: - composer install diff --git a/composer.json b/composer.json index 67b2f45..8979f94 100644 --- a/composer.json +++ b/composer.json @@ -11,11 +11,11 @@ } }, "require": { - "php": "^7.2|^8.0", - "symfony/process": "^3.1|^4.1|^5.0|^6.0", + "php": "^7.2|^7.3|^7.4|^8.0", + "symfony/process": "^3.1|^4.1|^5.0|^6.0|^7.0", "psr/log": "^1|^2|^3" }, "require-dev": { - "phpunit/phpunit": "^8.0" + "phpunit/phpunit": "^8.0|^9.0" } } diff --git a/phpunit.xml b/phpunit.xml index f3c4d39..26b53b4 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,23 +1,15 @@ - + + + + ./app + + ./tests - - - ./app - - diff --git a/tests/ConverterTest.php b/tests/ConverterTest.php index 16763b1..7644e65 100644 --- a/tests/ConverterTest.php +++ b/tests/ConverterTest.php @@ -57,7 +57,7 @@ public function testConvert(LowrapperParameters $parameters, /*string*/ $command $converterStub->convert($parameters); } - public function converterProvider() + public static function converterProvider() { $command = 'libreoffice --headless --invisible --nocrashreport --nodefault --nofirststartwizard --nologo --norestore '; return [