Skip to content

Commit 4f30ac6

Browse files
committed
Support PHPUnit 10.x
1 parent 8eaf23b commit 4f30ac6

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

.github/workflows/generate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Setup PHP
1414
uses: shivammathur/setup-php@v2
1515
with:
16-
php-version: '8.0'
16+
php-version: '8.2'
1717

1818
- name: Checkout
1919
uses: actions/checkout@v3

.github/workflows/test.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,37 @@ on:
88

99
jobs:
1010
test:
11-
name: Test
12-
13-
runs-on: ubuntu-latest
14-
11+
runs-on: ${{ matrix.os }}
1512
strategy:
13+
fail-fast: false
1614
matrix:
17-
php-version: [
18-
'5.3', '5.4', '5.5', '5.6',
19-
'7.0', '7.1', '7.2', '7.3', '7.4',
20-
'8.0', '8.1', '8.2'
15+
os: [ ubuntu-latest ]
16+
php: [
17+
'5.3', '5.4', '5.5', '5.6',
18+
'7.0', '7.1', '7.2', '7.3', '7.4',
19+
'8.0', '8.1', '8.2'
2120
]
2221

22+
name: PHP ${{ matrix.php }}
23+
2324
steps:
2425
- name: Setup PHP ${{ matrix.php-version }}
2526
uses: shivammathur/setup-php@v2
2627
with:
27-
php-version: ${{ matrix.php-version }}
28+
php-version: ${{ matrix.php }}
29+
ini-values: error_reporting=E_ALL
30+
tools: composer:v2
2831

2932
- name: Checkout
3033
uses: actions/checkout@v3
3134

3235
- name: Install dependencies
3336
run: composer install --quiet --no-ansi --prefer-dist --no-progress --no-interaction
3437

38+
- name: Migrate phpunit XML configuration
39+
continue-on-error: true
40+
run: vendor/bin/phpunit --migrate-configuration
41+
3542
- name: Run test suite
3643
run: vendor/bin/phpunit --coverage-clover=coverage.xml
3744

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"php": "^5.3 || ^7.0 || ^8.0"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": ">=4.8"
17+
"phpunit/phpunit": "^4.8 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
1818
},
1919
"autoload": {
2020
"psr-4": {

0 commit comments

Comments
 (0)