We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5f216a commit 0b00389Copy full SHA for 0b00389
1 file changed
docs/contributing/development.md
@@ -13,6 +13,13 @@
13
- **Unit tests**: Located in `tests/Unit/`
14
- **Run all tests**: `composer test`
15
16
+## Testing Guidelines
17
+
18
+1. **Avoid PHPUnit mocks**: Create custom test implementations instead of using createMock()
19
+2. **Test contracts not implementations**: Verify interactions without depending on specific behavior
20
+3. **Make test properties public**: When using anonymous classes to access test state
21
+4. **Verify method calls**: Track whether methods were called and with what parameters
22
23
All contributions must include tests that pass.
24
25
## Code Style
0 commit comments