From superpowers-symfony
Generates PHPUnit mock test doubles for isolated unit testing in Symfony projects. Follows TDD red/green/refactor workflow with regression-safe patterns.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-symfony:test-doubles-mockingThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Building regression-safe behavior with TDD/functional/e2e tests.
reference.mddocs/complexity-tiers.mdnpx claudepluginhub makfly/superpowers-symfony --plugin superpowers-symfonyGenerates PHPUnit test doubles (stubs, mocks, fakes, spies) for PHP 8.4. Selects type based on needs like verifying interactions, canned responses, or simplified real behavior.
Generates mocks, stubs, spies, and fakes for test dependency isolation. Supports Jest/Vitest/Sinon, pytest/unittest.mock, Go/gomock, and more.
Guides RED-GREEN-REFACTOR with PHPUnit 10/11 for Symfony; uses KernelTestCase, WebTestCase, attributes (#[Test]/#[DataProvider]), and Foundry.