skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
pentiminax/agent-skills179 installs

phpunit-best-practices

PHPUnit testing best practices and conventions guide. This skill should be used when writing, reviewing, or refactoring PHPUnit tests to ensure consistent, maintainable, and effective test suites. Triggers on tasks involving test creation, test refactoring, test configuration, code coverage, data providers, mocking, or PHPUnit XML configuration.

How do I install this agent skill?

npx skills add https://github.com/pentiminax/agent-skills --skill phpunit-best-practices
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill is a professional guide for PHPUnit best practices, covering principles, standards, and configuration for effective testing. It does not contain any malicious code, obfuscation, or unauthorized access patterns, and follows modern PHP development standards.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerpass

    46 files scanned · No issues

What does this agent skill do?

PHPUnit Best Practices

Comprehensive testing best practices guide for PHPUnit applications, maintained by pentiminax. Contains 40 rules across 8 categories, prioritized by impact to guide automated test generation, refactoring, and code review.

When to Apply

Reference these guidelines when:

  • Writing new PHPUnit test classes or test methods
  • Reviewing test code for quality and consistency
  • Refactoring existing test suites
  • Configuring PHPUnit XML settings
  • Setting up code coverage and test organization

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Principles & PatternsCRITICALprinciple-
2Coding StandardsCRITICALstandard-
3Test AttributesHIGHattr-
4Data ManagementHIGHdata-
5Test DocumentationMEDIUMdoc-
6MockingMEDIUMmock-
7Integration TestingMEDIUMintegration-
8ConfigurationLOW-MEDIUMconfig-

Quick Reference

1. Principles & Patterns (CRITICAL)

2. Coding Standards (CRITICAL)

3. Test Attributes (HIGH)

4. Data Management (HIGH)

5. Test Documentation (MEDIUM)

6. Mocking (MEDIUM)

7. Integration Testing (MEDIUM)

8. Configuration (LOW-MEDIUM)

How to Use

Read individual rule files for detailed explanations and code examples:

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Additional context and references

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/pentiminax/agent-skills/phpunit-best-practices">View phpunit-best-practices on skillZs</a>