Skip to content

Commit 815b4a6

Browse files
rdohmsspawnia
andcommitted
Add Support for PHPUnit 10
We no longer rely on the internal InvalidArgumentException from PHPUnit, but we still keep previous behavior for polyfill reasons. Co-authored-by: Benedikt Franke <[email protected]>
1 parent 2a0e774 commit 815b4a6

File tree

6 files changed

+72
-2473
lines changed

6 files changed

+72
-2473
lines changed

Diff for: .github/workflows/run-tests.yml

+3
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,8 @@ jobs:
9191
run: |
9292
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-req=php+ --no-interaction
9393
94+
- name: Migrate PHPUnit configuration if possible
95+
run: vendor/bin/phpunit --migrate-configuration || echo '--migrate-configuration not available'
96+
9497
- name: Execute Unit Tests
9598
run: vendor/bin/phpunit

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "This package provides ArraySubset and related asserts once deprecated in PHPUnit 8",
44
"type": "library",
55
"require": {
6-
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
6+
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
77
"php": "^5.4 || ^7.0 || ^8.0"
88
},
99
"license": "MIT",

0 commit comments

Comments
 (0)