Skip to content

Maintenance: support phpunit v12 & php-text-template v5 #11

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

Merged
merged 4 commits into from
Feb 24, 2025

Conversation

icarus94
Copy link
Contributor

  • support new version phpunit/php-text-template (^5);
  • support new version phpunit/phpunit (^12.0);
  • add attribute for each annotation to support phpunit 12;
  • use MockBuilder for building mocks instead of removed getMockForAbstractClass method

icarus94 and others added 2 commits February 23, 2025 13:21
- support new version `phpunit/phpunit` (^12.0);
- add attribute for each annotation to support phpunit 12;
- use MockBuilder for building mocks instead of removed `getMockForAbstractClass` method
@michalbundyra michalbundyra added this to the 2.4.0 milestone Feb 23, 2025
@michalbundyra
Copy link
Member

@icarus94 thanks for the PR, looks like some test on old versions are failing. Would you be able to have a look and try to sort it out? If not, I'll try to have a look during the week. Thanks 🙏

…ilder` as suggested alternative

- use `MockBuilder::onlyMethods` on PhpUnit 8.3.0+ and `MockBuilder::setMethods` up to PhpUnit 8.3.0
@michalbundyra michalbundyra merged commit 0ea2fb4 into php-mock:master Feb 24, 2025
14 checks passed
@michalbundyra
Copy link
Member

Thanks, @icarus94 !

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

Successfully merging this pull request may close these issues.

2 participants