woocommerce-paypal-payments/.claude/rules/unit-test-conventions.md
2026-04-30 15:44:13 +02:00

11 lines
466 B
Markdown

---
description: PHP test writing conventions
paths:
- "tests/PHPUnit/**/*.php"
---
Hard rules about how to write tests. Violations waste time and money.
**Why:** Tests written outside the unit-test-writer agent do not cover all conventions, documentation requirements and edge cases.
**How to apply:** Whenever tests need to be written or updated, spawn the `unit-test-writer` agent with full context. Do not write test code inline, not even helpers or stubs.