Skip to content

Commit

Permalink
Add Support for PHPUnit 10
Browse files Browse the repository at this point in the history
We no longer rely on the internal InvalidArgumentException from PHPUnit,
but we still keep previous behavior for polyfill reasons.

Co-authored-by: Benedikt Franke <benedikt.franke@mll.com>
  • Loading branch information
rdohms and spawnia committed Apr 22, 2023
1 parent 2a0e774 commit 815b4a6
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 2,473 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,8 @@ jobs:
run: |
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-req=php+ --no-interaction
- name: Migrate PHPUnit configuration if possible
run: vendor/bin/phpunit --migrate-configuration || echo '--migrate-configuration not available'

- name: Execute Unit Tests
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "This package provides ArraySubset and related asserts once deprecated in PHPUnit 8",
"type": "library",
"require": {
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
"php": "^5.4 || ^7.0 || ^8.0"
},
"license": "MIT",
Expand Down
Loading

0 comments on commit 815b4a6

Please sign in to comment.