PHP Testing

Community

Elevate PHP code quality with robust testing.

AuthorMte90
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a standardized approach to unit and integration testing for PHP applications, ensuring code reliability and maintainability.

Core Features & Use Cases

  • Testing Frameworks: Supports modern (Pest) and legacy (PHPUnit) testing frameworks.
  • TDD Workflow: Guides developers through the Red-Green-Refactor cycle for new feature development.
  • Isolation & Mocking: Emphasizes mocking dependencies for focused unit tests and using in-memory databases for integration tests.
  • Use Case: When developing a new authentication module, use this Skill to write unit tests for individual components and integration tests to verify database interactions, ensuring a secure and functional login process.

Quick Start

Write a new unit test for the UserService class using Pest, ensuring the create method correctly saves user data.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: PHP Testing
Download link: https://github.com/Mte90/dotfiles/archive/main.zip#php-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.