Skip to content

Commit

Permalink
Merge pull request #23 from infection/drop-php-8-0-support
Browse files Browse the repository at this point in the history
Drop php < 8.1 support
  • Loading branch information
maks-rafalko committed Oct 15, 2023
2 parents 7ac1030 + 58c82ed commit 45e8d50
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Expand Up @@ -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' ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cs.yaml
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yaml
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions tests/phpunit/Adapter/CodeceptionAdapterTest.php
Expand Up @@ -112,7 +112,7 @@ public function test_it_determines_used_memory_amount(string $output, float $exp
/**
* @return Generator<int, array{0: string, 1: float}>
*/
public function memoryReportProvider(): Generator
public static function memoryReportProvider(): Generator
{
yield ['Memory: 8.00MB', 8.0];

Expand All @@ -126,7 +126,7 @@ public function memoryReportProvider(): Generator
/**
* @return Generator<int, array{0: string, 1: bool}>
*/
public function passProvider(): Generator
public static function passProvider(): Generator
{
yield ['OK, but incomplete, skipped, or risky tests!', true];

Expand All @@ -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
Expand Down

0 comments on commit 45e8d50

Please sign in to comment.