Skip to content

Remove ExplicitExpectsMockMethodRule as too specific - #364

Merged
TomasVotruba merged 1 commit into
mainfrom
remove-explicit-expects-mock-rule
Oct 13, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
remove-explicit-expects-mock-rule

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Removes ExplicitExpectsMockMethodRule, which flagged every PHPUnit mock ->method() call inside a test class that lacked an explicit ->expects(...).

Too specific/opinionated for a general rule set. Drops the rule, its config registration in mock-rules.neon, its tests, the phpunit.xml fixture excludes, and the README section.

@TomasVotruba
TomasVotruba enabled auto-merge (squash) October 13, 2026 20:28
@TomasVotruba
TomasVotruba force-pushed the remove-explicit-expects-mock-rule branch from 1965eef to 16f997e Compare October 13, 2026 20:30
@TomasVotruba
TomasVotruba disabled auto-merge October 13, 2026 20:30
@TomasVotruba
TomasVotruba merged commit ea64ace into main Oct 13, 2026
9 checks passed
@TomasVotruba
TomasVotruba deleted the remove-explicit-expects-mock-rule branch October 13, 2026 20:30
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.

1 participant