-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Phpunit8 20191130 #36499
Closed
Closed
Phpunit8 20191130 #36499
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #36499 +/- ##
=============================================
- Coverage 64.68% 54% -10.68%
=============================================
Files 1268 63 -1205
Lines 74362 7408 -66954
Branches 1309 1309
=============================================
- Hits 48100 4001 -44099
+ Misses 25876 3021 -22855
Partials 386 386
Continue to review full report at Codecov.
|
phil-davis
force-pushed
the
phpunit8-20191130
branch
from
December 1, 2019 16:20
9e2d4bf
to
4f42780
Compare
phil-davis
force-pushed
the
phpunit8-20191130
branch
from
December 1, 2019 16:48
4f42780
to
53f496f
Compare
phil-davis
force-pushed
the
phpunit8-20191130
branch
from
December 1, 2019 17:21
53f496f
to
77920b2
Compare
Closed
Fixes for deprecations were applied in PR #36501 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Revive PR #34961 Declare testCase methods void to match modern phpunit declaration
And do stuff that we can do now in
phpunit7
and PHP 7.1 to be up-to-date forphpunit8
and PHP 7.2`https://phpunit.de/announcements/phpunit-8.html
https://thephp.cc/news/2019/02/help-my-tests-stopped-working
See if we can run
phpunit
tests withphpunit
V8.the setup* and teardown* methods in
phpunit8
have return typevoid
, so they have to be declared like that where we inherit-override them.expectException
annotations are being deprecated in favour of$this->expectException()
so change them.https://thephp.cc/news/2016/02/questioning-phpunit-best-practices
php-cs-fixer fixes this automagically by adding this to the config:
That could be added to
owncloud-codestyle
so that we find and "fix" any of these in people's PRs.assertInternalType
is being deprecated in favour ofassertIsArray()
assertIsInt()
etc.Implement specialized alternatives to assertInternalType() and assertNotInternalType() sebastianbergmann/phpunit#3368
php-cs-fixer fixes this automagically by adding this to the config:
That could be added to
owncloud-codestyle
so that we find and "fix" any of these in people's PRs.