-
Notifications
You must be signed in to change notification settings - Fork 888
Update phpunit to ^10.5 #2381
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
Update phpunit to ^10.5 #2381
Conversation
Signed-off-by: Matthew Peveler <[email protected]>
|
It is actually quite easy to support all of them: |
dereuromark
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good first step
|
Given that PHPUnit seemingly always deprecates/removes something for every major version, and that this is a dev dependency, I have little interest in trying to support multiple versions of phpunit concurrently. |
Signed-off-by: Matthew Peveler <[email protected]>
Signed-off-by: Matthew Peveler <[email protected]>
Signed-off-by: Matthew Peveler <[email protected]>
Signed-off-by: Matthew Peveler <[email protected]>
Signed-off-by: Matthew Peveler <[email protected]>
| * @coversNothing | ||
| */ | ||
| abstract class AbstractConfigTest extends TestCase | ||
| abstract class AbstractConfigTestCase extends TestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed this as it wasn't a file that had tests, but rather something the concrete Config*Test files extended to make use of the same helper functions. phpunit 10 starting having a warning about this, so renaming to AbstractConfigTestCase seemed most in keeping with the naming scheme that phpunit uses, and avoids the warning.
| if [[ ${{ matrix.prefer-lowest != 'prefer-lowest' }} ]]; then | ||
| export CODECOVERAGE=1 && vendor/bin/phpunit --verbose --coverage-clover=coverage.xml | ||
| export CODECOVERAGE=1 && vendor/bin/phpunit --coverage-clover=coverage.xml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the biggest change would be no longer printing out the skipped tests, but I think that's actually preferable as they were essentially just noise for the most part and something to annoyingly scroll past to see actual test errors.
If we wanted to bring back the behavior, can use the new --display-skipped flag or displayDetailsOnSkippedTests XML option.
PR updates the phpunit dev dependency to
^10.5which is the latest major version that supports 8.1, which phinx supports. At the moment, I don't think there's value in also doing something like was in #2371 where we try to support multiple phpunit versions, unless there's something that comes up that's only possible in phpunit 11+ (which to my knowledge we've not hit).