Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop php < 8.1 support #23

Merged
merged 1 commit into from
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading