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

Remove the default value for the test_suffix parameter #64

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Remove the default value for the test_suffix parameter #64

merged 1 commit into from
Apr 16, 2024

Conversation

cookieguru
Copy link
Contributor

Passing a comma-separated list of values to the CLI argument --test-suffix has been deprecated in PHPUnit 11 and will no longer work in PHPUnit 12. Given that this action is sending its default value anyways, there's no reason to explicitly provide this command line argument. Further, it's confusing that this command line argument is specified at all when nothing in my repo's configuration sets its value.

Passing a comma-separated list of values to the CLI argument
--test-suffix has been deprecated in PHPUnit 11[1] and will no longer
work in PHPUnit 12.  Given that this action is sending its default
value[2] anyways, there's no reason to explicitly provide this command
line argument.  Further, it's confusing that this command line argument
is specified at all when nothing in my repo's configuration sets its
value.

[1]: sebastianbergmann/phpunit#5709
[2]: https://docs.phpunit.de/en/11.1/textui.html#selection
cookieguru added a commit to MergePHP/mergephp-website that referenced this pull request Apr 13, 2024
* Remove calls to getMockForAbstractClass(), see [1]
* Remove calls to PHPUnit method returnValueMap, see [2]
* Work around issue with deprecated test_suffix CSV, see [3]
* Do not explicitly add `-colors=always` since it is already added [4]

[1]: sebastianbergmann/phpunit#5241
[2]: sebastianbergmann/phpunit#5423
[3]: php-actions/phpunit#64
[4]: https://github.com/php-actions/phpunit/blob/c27e49b5fd8cd59d032b7b4441d2e15f23cf6519/phpunit-action.bash#L154
cookieguru added a commit to MergePHP/mergephp-website that referenced this pull request Apr 13, 2024
* Remove calls to getMockForAbstractClass(), see [1]
* Remove calls to PHPUnit method returnValueMap, see [2]
* Work around issue with deprecated test_suffix CSV, see [3]
* Do not explicitly add `-colors=always` since it is already added [4]

[1]: sebastianbergmann/phpunit#5241
[2]: sebastianbergmann/phpunit#5423
[3]: php-actions/phpunit#64
[4]: https://github.com/php-actions/phpunit/blob/c27e49b5fd8cd59d032b7b4441d2e15f23cf6519/phpunit-action.bash#L154
@g105b
Copy link
Member

g105b commented Apr 16, 2024

Thank you for this change. I notice the README is already up to date, so this would have been missed otherwise.

@g105b g105b merged commit 1789d19 into php-actions:master Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants