MakFly

symfony:tdd-with-phpunit

Drive Symfony delivery with deterministic tests and strong regression protection. Use for tdd with phpunit tasks.

MakFly 205 20 Updated 6mo ago

Resources

1
GitHub

Install

npx skillscat add makfly/superpowers-symfony/symfony-tdd-with-phpunit

Install via the SkillsCat registry.

About this skill

This skill facilitates Test-Driven Development within Symfony applications using PHPUnit to ensure regression-safe code delivery. It helps prevent regressions and validates bug fixes by following a red-green-refactor workflow. Use this skill when implementing new features, converting bug reports into failing tests, or expanding test coverage for edge cases and unauthorized paths.

SKILL.md

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