pentiminax/agent-skills/phpunit-best-practices

Claude Code and agent skill by pentiminax/agent-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install pentiminax/agent-skills/phpunit-best-practices

SKILL.md

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

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Refreshed 14 May 2026, 5 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/pentiminax/agent-skills/phpunit-best-practices/badge)](https://verified-skill.com/skills/pentiminax/agent-skills/phpunit-best-practices)

Something wrong with this skill or its page? Tell us.