Skip to content

✅ Use createStub for expectation-less doubles + add CLAUDE.md#2

Merged
schmunk42 merged 2 commits into
masterfrom
fix/phpunit-stub-notices
Jun 14, 2026
Merged

✅ Use createStub for expectation-less doubles + add CLAUDE.md#2
schmunk42 merged 2 commits into
masterfrom
fix/phpunit-stub-notices

Conversation

@schmunk42

Copy link
Copy Markdown
Member

What

  • Replace createMock() with createStub() for test doubles that only stub return values (no call verification) — fixes 8 PHPUnit 12 notices. Mocks that assert calls via expects() stay createMock().
  • Add CLAUDE.md documenting the English-only policy.

🤖 Generated with Claude Code

schmunk42 and others added 2 commits June 14, 2026 23:14
Fixes 8 PHPUnit 12 notices ('No expectations were configured for the mock object'). Doubles that only stub return values now use createStub(); mocks that verify calls via expects() stay createMock().

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Document that this public OSS package is English-only for commit messages, code, comments, and documentation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@schmunk42 schmunk42 merged commit 3ab7cf6 into master Jun 14, 2026
1 check passed
@schmunk42 schmunk42 deleted the fix/phpunit-stub-notices branch June 14, 2026 21:16
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