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

Received *::__construct() but no expectations were specified #1416

Open
ghostwriter opened this issue May 1, 2024 · 1 comment
Open

Received *::__construct() but no expectations were specified #1416

ghostwriter opened this issue May 1, 2024 · 1 comment
Assignees
Labels
triage needs to be triaged
Milestone

Comments

@ghostwriter
Copy link
Member

Ever since 1.6.8 all my test suite fails. If I revert to 1.6.7 everything is fine.

On 1.6.8-1.6.11 I get multiple times this error :

Mockery\Exception\BadMethodCallException: Received Mockery_32_VMU_FileUpload::__construct(), but no expectations were specified

For each of my mocks used.

Is this an intended change ? Do I now need to set an expectation for __construct ? That seems a bit excessive and counter-productive.

Originally posted by @icemouton in #1394 (comment)

@ghostwriter ghostwriter added the triage needs to be triaged label May 1, 2024
@ghostwriter ghostwriter added this to the 1.6.12 milestone May 1, 2024
@ghostwriter ghostwriter self-assigned this May 1, 2024
@ghostwriter
Copy link
Member Author

Hey @icemouton,

Thanks for reporting this issue.

I moved the conversation here to ensure that our contributors aren't disturbed unnecessarily.

Opening a new issue is the preferred method, and if needed, referencing related users, issue, or pull requests to help provide context without directly involving past contributors unless necessary.

Can you please provide a reproducing test case that fails?

@ghostwriter ghostwriter modified the milestones: 1.6.12, 1.6.13 May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant