symfony:test-doubles-mocking

Community

Build robust, regression-safe Symfony tests.

AuthorMakFly
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers create deterministic and regression-safe tests for Symfony applications by effectively using test doubles like mocks and stubs.

Core Features & Use Cases

  • Test Double Strategies: Learn to use Dummies, Stubs, Mocks, Spies, and Fakes.
  • PHPUnit & Prophecy: Examples for both popular PHP testing frameworks.
  • Symfony Service Mocking: Specific guidance on mocking Doctrine, Repositories, and Message Buses.
  • Use Case: When developing a new feature, use this Skill to ensure your new code doesn't break existing functionality by writing tests that isolate components and verify interactions.

Quick Start

Use the symfony:test-doubles-mocking skill to generate a PHPUnit mock for the PaymentGateway service.

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: symfony:test-doubles-mocking
Download link: https://github.com/MakFly/superpowers-symfony/archive/main.zip#symfony-test-doubles-mocking

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 223,000+ vetted skills library on demand.