Error when mocking anonymous classes #1414
Labels
Bug
An error or unexpected behavior.
Regression
for unintended bugs that arise after making changes or updates
Milestone
Mockery Version
1.6.10
PHP Version
PHP 8.2
Issue Description
On Mockery version 1.6.10 and above, an exception is thrown when mocking an anonymous class. The issue does not exist in 1.6.9.
Steps to Reproduce
No response
Expected Behavior
The mock is created successfully
Actual Behavior
An exception is thrown
Exception or Error
Mockery\Exception: Class name contains invalid characters
Additional Information
No response
The text was updated successfully, but these errors were encountered: