symfonytdd-with-phpunit
Apply RED-GREEN-REFACTOR with PHPUnit for Symfony; use KernelTestCase, WebTestCase, and Foundry for comprehensive testing
When & Why to Use This Skill
This Claude skill streamlines Test-Driven Development (TDD) for Symfony applications by automating the Red-Green-Refactor cycle with PHPUnit. It enhances software reliability and code quality by leveraging specialized testing tools like KernelTestCase, WebTestCase, and Zenstruck Foundry for comprehensive unit, integration, and functional testing.
Use Cases
- Implementing new features using the Red-Green-Refactor methodology to ensure code correctness and minimize technical debt from the start.
- Developing robust integration tests with KernelTestCase to verify service container logic and database interactions within the Symfony framework.
- Executing end-to-end functional tests using WebTestCase to simulate user requests and validate HTTP responses and crawler behavior.
- Creating expressive and maintainable test fixtures using Zenstruck Foundry to handle complex entity relationships and data persistence during testing.
| name | symfony:tdd-with-phpunit |
|---|---|
| description | Use when symfony tdd with phpunit |
symfony:tdd-with-phpunit (Micro)
Use when
- Use when symfony tdd with phpunit
Rules
- Keep changes minimal and focused
- Ask before running servers/builds/tests
- Load reference/examples only on explicit request
References
reference.mddocs/complexity-tiers.md