mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-07-29 02:07:27 +08:00
11 lines
466 B
Markdown
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.
|