Do not test private methods directly, over-mock implementation details, or use real network services and production databases in unit tests. Avoid shared mutable fixtures and order-dependent tests. Prefer public interfaces, deterministic fixtures, mocks for external boundaries, and SQLite :memory: or transactions for database tests. Do not chase coverage numbers with meaningless assertions.
Installs into .claude/skills of the current project.
Are you the author of Php Testing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-php-testing-909c6cd3)
Do not test private methods directly, over-mock implementation details, or use real network services and production databases in unit tests. Avoid shared mutable fixtures and order-dependent tests. Prefer public interfaces, deterministic fixtures, mocks for external boundaries, and SQLite :memory: or transactions for database tests. Do not chase coverage numbers with meaningless assertions.