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

[Tests-Only] Bump phpunit/phpunit from 7.5.20 to 8.5.4 #37307

Merged
merged 7 commits into from
Apr 26, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps phpunit/phpunit from 7.5.20 to 8.5.4.

Changelog

Sourced from phpunit/phpunit's changelog.

[8.5.4] - 2020-04-23

Changed

  • Changed how PHPUnit\TextUI\Command passes warnings to PHPUnit\TextUI\TestRunner

[8.5.3] - 2020-03-31

Fixed

  • #4017: Do not suggest refactoring to something that is also deprecated
  • #4133: expectExceptionMessageRegExp() has been removed in PHPUnit 9 without a deprecation warning being given in PHPUnit 8
  • #4139: Cannot double interfaces that declare a constructor with PHP 8
  • #4144: Empty objects are converted to empty arrays in JSON comparison failure diff

[8.5.2] - 2020-01-08

Removed

  • eval-stdin.php has been removed, it was not used anymore since PHPUnit 7.2.7

[8.5.1] - 2019-12-25

Changed

  • eval-stdin.php can now only be executed with cli and phpdbg

Fixed

  • #3983: Deprecation warning given too eagerly

[8.5.0] - 2019-12-06

Added

  • #3911: Support combined use of addMethods() and onlyMethods()
  • #3949: Introduce specialized assertions assertFileEqualsCanonicalizing(), assertFileEqualsIgnoringCase(), assertStringEqualsFileCanonicalizing(), assertStringEqualsFileIgnoringCase(), assertFileNotEqualsCanonicalizing(), assertFileNotEqualsIgnoringCase(), assertStringNotEqualsFileCanonicalizing(), and assertStringNotEqualsFileIgnoringCase() as alternative to using assertFileEquals() etc. with optional parameters

Changed

  • #3860: Deprecate invoking PHPUnit commandline test runner with just a class name
  • #3950: Deprecate optional parameters of assertFileEquals() etc.
  • #3955: Deprecate support for doubling multiple interfaces

Fixed

  • #3953: Code Coverage for test executed in isolation does not work when the PHAR is used
  • #3967: Cannot double interface that extends interface that extends \Throwable
  • #3968: Test class run in a separate PHP process are passing when exit called inside
... (truncated)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@phil-davis phil-davis changed the title Bump phpunit/phpunit from 7.5.20 to 8.5.4 [Tests-Only] Bump phpunit/phpunit from 7.5.20 to 8.5.4 Apr 26, 2020
@owncloud owncloud deleted a comment from update-docs bot Apr 26, 2020
@codecov
Copy link

codecov bot commented Apr 26, 2020

Codecov Report

Merging #37307 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #37307   +/-   ##
=========================================
  Coverage     64.53%   64.53%           
  Complexity    19166    19166           
=========================================
  Files          1266     1266           
  Lines         74952    74952           
  Branches       1331     1331           
=========================================
  Hits          48372    48372           
  Misses        26188    26188           
  Partials        392      392           
Flag Coverage Δ Complexity Δ
#javascript 54.14% <ø> (ø) 0.00 <ø> (ø)
#phpunit 65.69% <ø> (ø) 19166.00 <ø> (ø)
Impacted Files Coverage Δ Complexity Δ
lib/private/Files/Storage/Common.php 84.70% <ø> (ø) 138.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15df678...a50a8b8. Read the comment docs.

@phil-davis
Copy link
Contributor

The phpunit warnings that needed to be fixed were:

There were 24 warnings:

1) Test\Http\Client\WebDavClientServiceTest::testNewClientWithProxy
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

2) Test\Http\Client\WebDavClientServiceTest::testNewClientWithProxyAndAuth
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

3) Test\SystemConfigTest::testSetValue
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

4) Test\SystemConfigTest::testSetValues
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

5) Test\SystemConfigTest::testDeleteValue
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

6) Test\Template\ResourceLocatorTest::testConstructor
assertAttributeInstanceOf() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.

7) ExpirationTest::testParseRetentionObligation with data set #0 ('disabled', null, null, null)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

8) ExpirationTest::testParseRetentionObligation with data set #1 ('auto', 30, -1, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

9) ExpirationTest::testParseRetentionObligation with data set #2 ('auto,auto', 30, -1, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

10) ExpirationTest::testParseRetentionObligation with data set #3 ('auto, auto', 30, -1, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

11) ExpirationTest::testParseRetentionObligation with data set #4 ('auto, 3', -1, 3, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

12) ExpirationTest::testParseRetentionObligation with data set #5 ('5, auto', 5, -1, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

13) ExpirationTest::testParseRetentionObligation with data set #6 ('3, 5', 3, 5, false)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

14) ExpirationTest::testParseRetentionObligation with data set #7 ('10, 3', 10, 10, false)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

15) OCA\Files_Versions\Tests\ExpirationTest::testParseRetentionObligation with data set #0 ('disabled', null, null, null)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

16) OCA\Files_Versions\Tests\ExpirationTest::testParseRetentionObligation with data set #1 ('auto', -1, -1, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

17) OCA\Files_Versions\Tests\ExpirationTest::testParseRetentionObligation with data set #2 ('auto,auto', -1, -1, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

18) OCA\Files_Versions\Tests\ExpirationTest::testParseRetentionObligation with data set #3 ('auto, auto', -1, -1, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

19) OCA\Files_Versions\Tests\ExpirationTest::testParseRetentionObligation with data set #4 ('auto, 3', -1, 3, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

20) OCA\Files_Versions\Tests\ExpirationTest::testParseRetentionObligation with data set #5 ('5, auto', 5, -1, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

21) OCA\Files_Versions\Tests\ExpirationTest::testParseRetentionObligation with data set #6 ('3, 5', 3, 5, false)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

22) OCA\Files_Versions\Tests\ExpirationTest::testParseRetentionObligation with data set #7 ('10, 3', 10, 10, false)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

23) OCA\Files_Versions\Tests\ExpirationTest::testParseRetentionObligation with data set #8 ('g,a,r,b,a,g,e', -1, -1, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

24) OCA\Files_Versions\Tests\ExpirationTest::testParseRetentionObligation with data set #9 ('-3,8', -1, -1, true)
assertAttributeEquals() is deprecated and will be removed in PHPUnit 9.
readAttribute() is deprecated and will be removed in PHPUnit 9.
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.

Comment on lines +85 to +87
public function __construct($parameters) {
}

Copy link
Contributor

@phil-davis phil-davis Apr 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was needed because of: https://drone.owncloud.com/owncloud/core/24405/13/9

PHPUnit 8.5.3 by Sebastian Bergmann and contributors.

Runtime:       PHPDBG 7.2.27-6+ubuntu18.04.1+deb.sury.org+1
Configuration: /drone/src/tests/phpunit-autotest.xml

.............................................................   61 / 9984 (  0%)
........................S....................................  122 / 9984 (  1%)
.............................................................  183 / 9984 (  1%)
.............................................................  244 / 9984 (  2%)
.............................................................  305 / 9984 (  3%)
.............................................................  366 / 9984 (  3%)
.............................................................  427 / 9984 (  4%)
.............................................................  488 / 9984 (  4%)
.............................................................  549 / 9984 (  5%)
.............................................................  610 / 9984 (  6%)
.............................................................  671 / 9984 (  6%)
.............................................................  732 / 9984 (  7%)
.............................................................  793 / 9984 (  7%)
.............................................................  854 / 9984 (  8%)
.............................................................  915 / 9984 (  9%)
.............................................................  976 / 9984 (  9%)
............................................................. 1037 / 9984 ( 10%)
.......................S........SS........................... 1098 / 9984 ( 10%)
............................................................. 1159 / 9984 ( 11%)
............................................................. 1220 / 9984 ( 12%)
............................................................. 1281 / 9984 ( 12%)
............................................................. 1342 / 9984 ( 13%)
............................................................. 1403 / 9984 ( 14%)
............................................................. 1464 / 9984 ( 14%)
............................................................. 1525 / 9984 ( 15%)
............................................................. 1586 / 9984 ( 15%)
............................................................. 1647 / 9984 ( 16%)
............................................................. 1708 / 9984 ( 17%)
............................................................. 1769 / 9984 ( 17%)
............................................................. 1830 / 9984 ( 18%)
............................................................. 1891 / 9984 ( 18%)
............................................................. 1952 / 9984 ( 19%)
............................................................. 2013 / 9984 ( 20%)
..
[PHP Fatal error:  Class Mock_Common_a6b4666b contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCP\Files\Storage::__construct) in /drone/src/lib/composer/phpunit/phpunit/src/Framework/MockObject/MockClass.php(42) : eval()'d code on line 3]

PHPunit 8 had trouble mocking the constructor of an abstract class, when the constructor itself is abstract. Putting a "dummy" implementation here helped it. Classes that extend Common implement their own constructor anyway, which will override this.

@phil-davis phil-davis merged commit 245251f into master Apr 26, 2020
@delete-merged-branch delete-merged-branch bot deleted the dependabot/composer/phpunit/phpunit-8.5.4 branch April 26, 2020 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - To release dependencies php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant