Skip to content

Remove deprecated PHPUnit abstract-class mocks - #2980

Open
Rajat-malhotra0 wants to merge 1 commit into
PHPOffice:masterfrom
Rajat-malhotra0:test/replace-abstract-class-mocks
Open

Rajat-malhotra0 wants to merge 1 commit into
PHPOffice:masterfrom
Rajat-malhotra0:test/replace-abstract-class-mocks

Conversation

@Rajat-malhotra0

Copy link
Copy Markdown

Description

Use the existing anonymous test subclasses on every supported PHPUnit version. The 14 affected tests pass, and the 12 getMockForAbstractClass() deprecations are gone.

Fixes #2851.

Checklist

  • CI has passed
  • Ran the affected unit tests
  • Updated the changelog

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 96.582%. remained the same — Rajat-malhotra0:test/replace-abstract-class-mocks into PHPOffice:master

This branch has not been deployed

No deployments
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.

getMockForAbstractClass deprecated in PHPUnit, removed in PHPUnit 12

2 participants