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

Implement coding-standard 2.0.0 #36580

Merged
merged 1 commit into from Dec 12, 2019
Merged

Implement coding-standard 2.0.0 #36580

merged 1 commit into from Dec 12, 2019

Conversation

phil-davis
Copy link
Contributor

Description

owncloud/coding-standard 2.0.0 adds fixers for things that are deprecated and being removed in future releases of phpunit - see owncloud/coding-standard#20 and a core PR that recently applied these refactorings #36501 for details.

Implement this in core CI so it will now be enforced.

Do make test-php-style-fix to refactor recent additions of @expectedException annotations.

Developers, whose unit test code now fails code style checks, can simply make test-php-style-fix to automatically apply the fixes.

Also see https://thephp.cc/news/2016/02/questioning-phpunit-best-practices for information/reasoning.

Motivation and Context

Be ready when we need to move forward to phpunit8.

How Has This Been Tested?

make test-php-style-fix

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@codecov
Copy link

codecov bot commented Dec 12, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #36580   +/-   ##
=========================================
  Coverage     64.66%   64.66%           
  Complexity    19049    19049           
=========================================
  Files          1269     1269           
  Lines         74498    74498           
  Branches       1311     1311           
=========================================
  Hits          48171    48171           
  Misses        25941    25941           
  Partials        386      386
Flag Coverage Δ Complexity Δ
#javascript 54.02% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.83% <ø> (ø) 19049 <ø> (ø) ⬇️

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 cf40428...93eb7f5. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Dec 12, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #36580   +/-   ##
=========================================
  Coverage     64.66%   64.66%           
  Complexity    19049    19049           
=========================================
  Files          1269     1269           
  Lines         74498    74498           
  Branches       1311     1311           
=========================================
  Hits          48171    48171           
  Misses        25941    25941           
  Partials        386      386
Flag Coverage Δ Complexity Δ
#javascript 54.02% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.83% <ø> (ø) 19049 <ø> (ø) ⬇️

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 cf40428...93eb7f5. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants