From 58c82edb5f3c7d86597b07004f6975f41e35ee82 Mon Sep 17 00:00:00 2001 From: Oleg Zhulnev Date: Sun, 15 Oct 2023 23:19:26 +0300 Subject: [PATCH] Drop php < 8.1 support --- .github/workflows/ci.yaml | 2 +- .github/workflows/cs.yaml | 2 +- .github/workflows/e2e-tests.yaml | 2 +- Makefile | 4 ++-- composer.json | 2 +- composer.lock | 4 ++-- tests/phpunit/Adapter/CodeceptionAdapterTest.php | 6 ++++-- 7 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6828fe6..b2ea295 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,7 +18,7 @@ jobs: strategy: matrix: - php-version: [ '8.0', '8.1', '8.2' ] + php-version: [ '8.1', '8.2' ] coverage-driver: [ pcov ] symfony-require: [ '^5', '^6' ] diff --git a/.github/workflows/cs.yaml b/.github/workflows/cs.yaml index ad6a0ba..0152385 100644 --- a/.github/workflows/cs.yaml +++ b/.github/workflows/cs.yaml @@ -17,7 +17,7 @@ jobs: strategy: matrix: operating-system: [ ubuntu-latest ] - php-version: [ '8.0' ] + php-version: [ '8.1' ] check: [ 'cs', 'static-analyze' ] name: Coding Standards on PHP ${{ matrix.php-version }} diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index 14ad45d..ec5c8f4 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - php-version: [ '8.0', '8.1', '8.2' ] + php-version: [ '8.1', '8.2' ] coverage-driver: [ pcov ] name: CI with PHP ${{ matrix.php-version }}, using ${{ matrix.coverage-driver }} diff --git a/Makefile b/Makefile index 3a37e38..16a2538 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,8 @@ COMPOSER=$(PHP) $(shell which composer) # Infection INFECTION=./.tools/infection.phar INFECTION_URL="https://github.com/infection/infection/releases/download/0.27.4/infection.phar" -MIN_MSI=70 -MIN_COVERED_MSI=76 +MIN_MSI=78 +MIN_COVERED_MSI=82 INFECTION_ARGS=--min-msi=$(MIN_MSI) --min-covered-msi=$(MIN_COVERED_MSI) --threads=$(JOBS) --log-verbosity=none --no-interaction --no-progress --show-mutations all: test diff --git a/composer.json b/composer.json index 8fe87b9..7dee8e8 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ } }, "require": { - "php": "^8.0", + "php": "^8.1", "infection/abstract-testframework-adapter": "^0.5.0", "infection/include-interceptor": "^0.2.0", "symfony/filesystem": "^5.0 || ^6.0", diff --git a/composer.lock b/composer.lock index 5c84e5c..a2a0f23 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d1124a89b5103278ec8b494055678292", + "content-hash": "c4b7728070986bc246d6ceb68dfb3ebd", "packages": [ { "name": "infection/abstract-testframework-adapter", @@ -5172,7 +5172,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^8.0" + "php": "^8.1" }, "platform-dev": [], "plugin-api-version": "2.6.0" diff --git a/tests/phpunit/Adapter/CodeceptionAdapterTest.php b/tests/phpunit/Adapter/CodeceptionAdapterTest.php index ffda8ab..cd83777 100644 --- a/tests/phpunit/Adapter/CodeceptionAdapterTest.php +++ b/tests/phpunit/Adapter/CodeceptionAdapterTest.php @@ -112,7 +112,7 @@ public function test_it_determines_used_memory_amount(string $output, float $exp /** * @return Generator */ - public function memoryReportProvider(): Generator + public static function memoryReportProvider(): Generator { yield ['Memory: 8.00MB', 8.0]; @@ -126,7 +126,7 @@ public function memoryReportProvider(): Generator /** * @return Generator */ - public function passProvider(): Generator + public static function passProvider(): Generator { yield ['OK, but incomplete, skipped, or risky tests!', true]; @@ -135,6 +135,8 @@ public function passProvider(): Generator yield ['FAILURES!', false]; yield ['ERRORS!', false]; + + yield ['unhandled string', false]; } public function test_it_sets_coverage_phpunit_dir(): void