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

Add support for PHPUnit 11 #56

Closed
jvalleroy opened this issue Aug 9, 2024 · 2 comments
Closed

Add support for PHPUnit 11 #56

jvalleroy opened this issue Aug 9, 2024 · 2 comments

Comments

@jvalleroy
Copy link

I would like to update the Debian package to be compatible with PHPUnit 11 (in experimental branch currently): https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1070567

I have identified a few of the changes needed:

  • Add static to test providers.
    • Change $this-> to self::.
    • Need to find a replacement for getMockForAbstractClass. Maybe a callback that is called within the test case.
  • Change setMethods to onlyMethods or addMethods.

There could be additional changes needed, this is just what I found so far.

@mvorisek mvorisek changed the title Please add support for PHPUnit 11 Add support for PHPUnit 11 Dec 2, 2024
@mvorisek
Copy link
Member

mvorisek commented Dec 2, 2024

@reeperbahnause would you mind sending a PR?

@mvorisek
Copy link
Member

mvorisek commented Dec 3, 2024

Implemented in 22d4b42 2e07856 a422df5 624eb4a.

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

No branches or pull requests

2 participants