Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
makfly avatar

Symfony:test Doubles Mocking Skill

  • 404 installs
  • 190 repo stars
  • Updated August 6, 2026
  • makfly/superpowers-symfony

symfony:test-doubles-mocking is a Claude Code skill that creates PHPUnit and Prophecy test doubles in Symfony projects for developers who need isolated, deterministic unit tests without flaky external dependencies.

About

symfony:test-doubles-mocking is a testing skill from makfly/superpowers-symfony, part of a 5-skill testing suite alongside Pest TDD, PHPUnit TDD, functional WebTestCase flows, and Panther/Playwright E2E coverage. The skill guides a RED-GREEN-REFACTOR workflow: write a failing test, apply minimal doubles for mailers, HTTP clients, repositories, and SDKs, then expand coverage for edge cases. Outputs include a change trace, list of modified test files, executed commands, and notes on regression confidence. Agents assert observable outcomes—HTTP responses and state changes—rather than mock internals. Use symfony:test-doubles-mocking when Symfony integration tests are flaky in CI or when external services must be stubbed for fast, repeatable unit isolation.

  • Mocks vs stubs vs spies
  • Symfony DI test container overrides
  • Interface-based fake services
  • HTTP client mock responses
  • Avoiding brittle integration coupling

Symfony:Test Doubles Mocking by the numbers

  • 404 all-time installs (skills.sh)
  • Ranked #657 of 2,189 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Aug 11, 2026 (Skillselion catalog sync)
npx skills add https://github.com/makfly/superpowers-symfony --skill symfonytest-doubles-mocking

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs404
repo stars190
Last updatedAugust 6, 2026
Repositorymakfly/superpowers-symfony

How do you mock Symfony services in PHPUnit?

Isolate Symfony units by replacing mailers, HTTP clients, repositories, and external SDKs with mocks, stubs, and spies in PHPUnit or Pest suites.

Who is it for?

Symfony developers stabilizing CI by mocking external mailers, HTTP clients, repositories, and third-party SDKs in unit tests.

Skip if: End-to-end browser testing or teams already running fully integrated tests without external dependencies.

When should I use this skill?

Symfony tests fail intermittently, depend on live APIs, or need mocks for mailers, HTTP clients, or repositories.

What you get

PHPUnit or Pest test doubles, RED-GREEN-REFACTOR trace, changed test files list, and regression coverage notes.

  • Mock and stub test classes
  • RED-GREEN-REFACTOR execution trace
  • Stabilized test file diffs

By the numbers

  • Parent plugin includes 5 testing skills
  • superpowers-symfony ships 47 total skills

Files

SKILL.mdMarkdownGitHub ↗

Test Doubles Mocking (Symfony)

Use when

  • Building regression-safe behavior with TDD/functional/e2e tests.
  • Converting bug reports into executable failing tests.

Default workflow

1. Write failing test for target behavior and one boundary case. 2. Implement minimal code to pass. 3. Refactor while preserving green suite. 4. Broaden coverage for invalid/unauthorized/not-found paths.

Guardrails

  • Prefer deterministic fixtures/builders.
  • Assert observable behavior, not internal implementation.
  • Keep tests isolated and stable in CI.

Progressive disclosure

  • Use this file for execution posture and risk controls.
  • Open references when deep implementation details are needed.

Output contract

  • RED/GREEN/REFACTOR trace.
  • Test files changed and executed commands.
  • Coverage and confidence notes.

References

  • reference.md
  • docs/complexity-tiers.md

Related skills

How it compares

Use symfony:test-doubles-mocking for unit-level doubles; choose symfony:functional-tests or symfony:e2e-panther-playwright for HTTP or browser coverage.

FAQ

Does symfony:test-doubles-mocking support Pest or only PHPUnit?

symfony:test-doubles-mocking focuses on PHPUnit mocks and Prophecy for isolated Symfony unit testing; the parent superpowers-symfony repo also ships a separate symfony:tdd-with-pest skill for Pest PHP workflows.

What artifacts does symfony:test-doubles-mocking produce?

symfony:test-doubles-mocking delivers a RED-GREEN-REFACTOR trace, a list of changed test files, executed test commands, and notes on regression coverage confidence after doubles are applied.

Testing & QAbackendtesting

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.