Skip to content

Commit

Permalink
PHPUnit config: rename file
Browse files Browse the repository at this point in the history
As the 3.x branch of PHPUnit Polyfills does not support PHPUnit 10, the PHPUnit config file name `phpunit10.xml.dist` is confusing, so let's rename it to `phpunit11.xml.dist`.
  • Loading branch information
jrfnl committed Feb 9, 2025
1 parent bc59800 commit 6015ab0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
phpstan.neon.dist export-ignore
phpstan-bootstrap.php export-ignore
phpunit.xml.dist export-ignore
phpunit10.xml.dist export-ignore
phpunit11.xml.dist export-ignore

#
# Auto detect text files and perform LF normalization
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ jobs:
id: phpunit_config
run: |
if [ "${{ matrix.phpunit == 'dev-main' }}" == "true" ]; then
echo 'FILE=phpunit10.xml.dist' >> "$GITHUB_OUTPUT"
echo 'FILE=phpunit11.xml.dist' >> "$GITHUB_OUTPUT"
elif [ "${{ startsWith( steps.phpunit_version.outputs.VERSION, '11.' ) }}" == "true" ]; then
echo 'FILE=phpunit10.xml.dist' >> "$GITHUB_OUTPUT"
echo 'FILE=phpunit11.xml.dist' >> "$GITHUB_OUTPUT"
else
echo 'FILE=phpunit.xml.dist' >> "$GITHUB_OUTPUT"
fi
Expand Down Expand Up @@ -367,7 +367,7 @@ jobs:
id: phpunit_config
run: |
if [ "${{ startsWith( steps.phpunit_version.outputs.VERSION, '11.' ) }}" == "true" ]; then
echo 'FILE=phpunit10.xml.dist' >> "$GITHUB_OUTPUT"
echo 'FILE=phpunit11.xml.dist' >> "$GITHUB_OUTPUT"
else
echo 'FILE=phpunit.xml.dist' >> "$GITHUB_OUTPUT"
fi
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ vendor/
/phpcs.xml
.cache/*.cache
/phpunit.xml
/phpunit10.xml
/phpunit11.xml
/.phpunit.result.cache
/build/
phpstan.neon
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@
"coverage": [
"@php ./vendor/phpunit/phpunit/phpunit"
],
"test10": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit10.xml.dist --no-coverage"
"test11": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit11.xml.dist --no-coverage"
],
"coverage10": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit10.xml.dist"
"coverage11": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit11.xml.dist"
]
},
"scripts-descriptions": {
Expand All @@ -94,7 +94,7 @@
"fix-cs": "Auto-fix code style violations in the PHP files.",
"test": "Run the unit tests without code coverage (PHPUnit < 10).",
"coverage": "Run the unit tests with code coverage (PHPUnit < 10).",
"test10": "Run the unit tests without code coverage using the PHPUnit 10/11 configuration file.",
"coverage10": "Run the unit tests with code coverage using the PHPUnit 10/11 configuration file."
"test11": "Run the unit tests without code coverage using the PHPUnit 11 configuration file.",
"coverage11": "Run the unit tests with code coverage using the PHPUnit 11 configuration file."
}
}

0 comments on commit 6015ab0

Please sign in to comment.