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

WP_Mock breaks with PhpUnit >= 9.5.0 #158

Closed
ChrisWiegman opened this issue Dec 15, 2020 · 6 comments · Fixed by #164
Closed

WP_Mock breaks with PhpUnit >= 9.5.0 #158

ChrisWiegman opened this issue Dec 15, 2020 · 6 comments · Fixed by #164
Assignees
Labels
Bug Bug report or pull requests that addresses a bug
Milestone

Comments

@ChrisWiegman
Copy link

Describe the bug
Phpunit 9.5 refactors the test case and removesd the getAnnotations method causing wp_mock tests to fail.

To Reproduce
Steps to reproduce the behavior:

  1. Update Phpunit to 9.5.0
  2. Run any test
  3. See error

Expected behavior
Tests should run successcully

Screenshots

Error: Call to undefined method <test class>::getAnnotations()

@ericmann ericmann added the Bug Bug report or pull requests that addresses a bug label Dec 15, 2020
@vyskoczilova
Copy link

Any update on this issue?

@romanmartushev
Copy link

Update on this issue?

@kudinovfedor
Copy link
Contributor

kudinovfedor commented Dec 2, 2021

Hello
I could not select and specify a reviewer
Added a fix for this problem #164
It would be great if this fixes the issue

@jeffpaul jeffpaul assigned kudinovfedor and unassigned ericmann Dec 2, 2021
@jeffpaul jeffpaul added this to the Future Release milestone Dec 2, 2021
@fiskhandlarn
Copy link

fiskhandlarn commented Jul 14, 2022

any news on this? do you need help maintaining this repo, @jeffpaul @kudinovfedor?

@jeffpaul
Copy link
Member

@fiskhandlarn if you can help review #164 that would be great!

@fiskhandlarn
Copy link

fiskhandlarn commented Jul 18, 2022

@jeffpaul i just tried and it works. will write details in #164.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug report or pull requests that addresses a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants