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

[TASK] Deprecate getAccessibleMockForAbstractClass #495

Conversation

oliverklee
Copy link
Contributor

This method uses getMockForAbstractClass() under the hood, which in turn has been soft-deprecated in PHPUnit 10.1 and will issue deprecation warnings in PHPUnit 11 and up:

sebastianbergmann/phpunit#5241

Releases: main

@oliverklee oliverklee force-pushed the task/deprecate/accessible-mock-for-abstract-class branch from 8cf66eb to 0382402 Compare August 28, 2023 10:50
@oliverklee
Copy link
Contributor Author

Stefan, Lolli, would this also make sense for version 7?

@lolli42
Copy link
Member

lolli42 commented Aug 28, 2023

I think v8 / main TF should be sufficient?! Not using getMockForAbstractClass() is mainly a task ext authors may/should have to deal with with core 13 and above. since TF 8 will be 'core v12 & v13', we should probably note deprecation of it in TF 8 only. Is that fine, or did I mix up anything?

@oliverklee
Copy link
Contributor Author

Yes, that would be fine for me.

This method uses `getMockForAbstractClass()` under the hood, which in turn
has been soft-deprecated in PHPUnit 10.1 and will issue deprecation
warnings in PHPUnit 11 and up:

sebastianbergmann/phpunit#5241

Releases: main
@oliverklee oliverklee force-pushed the task/deprecate/accessible-mock-for-abstract-class branch from 0382402 to 73f574f Compare August 28, 2023 17:24
@sbuerk sbuerk merged commit 77c4b2b into TYPO3:main Aug 29, 2023
2 checks passed
@oliverklee oliverklee deleted the task/deprecate/accessible-mock-for-abstract-class branch August 29, 2023 08:07
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.

3 participants