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

bug: mockery not setup correctly #1785

Merged
merged 2 commits into from
Sep 22, 2024
Merged

Conversation

JimTools
Copy link

Fixed a subtle bug in the way Mockery is setup in the project, versions of Mockery before version 1.0.0 would automatically register a listener with PHPUnit meaning that assertions in mockery would automatically count towards PHPUnit's assertion count.

This results in devs adding hacks to make the unit tests pass i.e adding the DoesNotPerformAssertions attribute. currently two unit tests are affected by this.

PHPUnit Integration

The benefit to the end user is building trust and confidence in the test suite.

Fixed a subtle bug in the way Mockery is setup in the project,
versions of Mockery before version 1.0.0 would automatically register a
listener with PHPUnit meaning that assertions in mockery would
automatically count towards PHPUnit's assertion count.

This results in devs adding hacks to make the unit tests pass i.e adding
the `DoesNotPerformAssertions` attribute.

https://docs.mockery.io/en/latest/reference/phpunit_integration.html
@taylorotwell taylorotwell merged commit add2c05 into laravel:13.x Sep 22, 2024
4 checks passed
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.

2 participants