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

Symfony:tdd With Phpunit Skill

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

symfony:tdd-with-phpunit is an agent skill that guides PHPUnit-first test-driven development cycles for Symfony services, repositories, and API endpoints using the official Symfony test harness for developers who need re

About

symfony:tdd-with-phpunit is a Symfony-focused agent skill from makfly/superpowers-symfony that teaches PHPUnit-first TDD workflows for backend features. The skill walks developers through red-green-refactor cycles against Symfony services, repositories, and API endpoints using the official Symfony test harness and PHPUnit conventions. Agents apply it when implementing new domain logic, persistence layers, or HTTP endpoints where failing tests should define behavior before production code lands. Developers reach for symfony:tdd-with-phpunit when Symfony feature work needs deterministic regression coverage instead of ad-hoc manual testing. The workflow emphasizes writing PHPUnit cases first, then minimal implementation, then refactor while keeping the Symfony kernel and dependency injection container aligned with test doubles and fixtures.

  • KernelTestCase boot patterns
  • Arrange-act-assert TDD cycles
  • Mocking with PHPUnit doubles
  • Coverage for repositories and services
  • Standard Symfony phpunit.xml setup

Symfony:Tdd With Phpunit by the numbers

  • 487 all-time installs (skills.sh)
  • Ranked #622 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 symfonytdd-with-phpunit

Add your badge

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

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

How do you do PHPUnit TDD in Symfony?

Drive Symfony feature development with PHPUnit-first TDD cycles for services, repositories, and API endpoints using the official Symfony test harness.

Who is it for?

Symfony backend developers who want PHPUnit-first TDD for services, repositories, and API endpoints.

Skip if: Teams building non-PHP stacks or Symfony projects that only need one-off integration tests without TDD discipline.

When should I use this skill?

A developer asks to add Symfony features with PHPUnit-first TDD for services, repositories, or API endpoints.

What you get

PHPUnit test classes, Symfony service and repository implementations, and passing API endpoint test suites

  • PHPUnit test classes
  • Symfony service implementations

Files

SKILL.mdMarkdownGitHub ↗

Tdd With Phpunit (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

Pick symfony:tdd-with-phpunit over generic PHPUnit skills when Symfony kernel, DI, and the official test harness must match project conventions.

FAQ

What does symfony:tdd-with-phpunit test first?

symfony:tdd-with-phpunit starts with failing PHPUnit tests for Symfony services, repositories, and API endpoints. Developers write specs before implementation using the official Symfony test harness so backend behavior is defined by tests.

Which Symfony layers does symfony:tdd-with-phpunit cover?

symfony:tdd-with-phpunit covers Symfony services, repositories, and API endpoints in PHPUnit-first cycles. The skill focuses on backend domain and HTTP layers rather than frontend templates or deployment automation.

Testing & QAbackendtesting

This week in AI coding

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

unsubscribe anytime.