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

Fix mocking anonymous classes #1415

Merged
merged 4 commits into from Apr 29, 2024

Conversation

ghostwriter
Copy link
Member

This patch resolves #1414, via the following changes:

  • Add tests/Unit/Regression/Issue1414Test.php
  • Fix library/Mockery/Container.php

checks for the presence of the issue and verifies that the fix works correctly to prevent regression in the future.

ghostwriter and others added 2 commits April 26, 2024 08:29
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
Co-Authored-By: lew-tfli <45763766+lew-tfli@users.noreply.github.com>
@ghostwriter ghostwriter added Patch Backwards compatible bug fixes and improvements Fixed for bug fixes or error corrections labels Apr 26, 2024
@ghostwriter ghostwriter added this to the 1.6.12 milestone Apr 26, 2024
@ghostwriter ghostwriter self-assigned this Apr 26, 2024
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
@ghostwriter ghostwriter force-pushed the regression/issue-1414/mock-anonymous-classes branch from b46275c to 58e7132 Compare April 26, 2024 14:10
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
@ghostwriter ghostwriter merged commit 6db8c48 into 1.6.x Apr 29, 2024
23 checks passed
@ghostwriter ghostwriter deleted the regression/issue-1414/mock-anonymous-classes branch April 29, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed for bug fixes or error corrections Patch Backwards compatible bug fixes and improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when mocking anonymous classes
1 participant