This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/config/cursor/rules/php-testing.mdc
T
2026-07-26 11:55:16 +02:00

11 lines
317 B
Plaintext

---
alwaysApply: false
---
# Testing
- Use PHPUnit or Pest; tests live in tests/.
- Aim ≥ 85% coverage for domain/services; integration tests for I/O.
- Test names: testMethod_Scenario_ExpectedResult.
- Use data providers/table tests for variants.
- Mock only external boundaries (HTTP/DB/FS); avoid over-mocking.