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

Recognize partialMock and spy as mock method names #91

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

spawnia
Copy link
Contributor

@spawnia spawnia commented Mar 4, 2025

When mocking classes via methods from the Laravel framework such as partialMock and spy, finalize-classes does not recognize that and finalizes them anyways.
This change add those method names, as well as documentation for the other mock method names.

@TomasVotruba TomasVotruba merged commit b3195ec into rectorphp:main Mar 4, 2025
8 checks passed
@TomasVotruba
Copy link
Member

Looks good, thank you

@spawnia spawnia deleted the recognize-mocks branch March 4, 2025 15:26
@spawnia
Copy link
Contributor Author

spawnia commented Mar 4, 2025

Thanks for the merge. Looking forward to a release, it seems like I can not install from dev-main due to a dependency conflict.

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.

None yet

2 participants