functional-tests

functional-tests is a skill for Claude Code from dev-toolings/superpowers-symfony. It costs 27 tokens per session (490 once invoked), scanned A, original, MIT.

A guide for functional tests in Symfony, which send requests through the application and check observable HTTP behavior. It uses Symfony’s WebTestCase and related helpers for containers, logged-in users, and database rollback.

In plain words
What is it for?
Use it to test controllers and HTTP endpoints, cover invalid or unauthorized requests, verify not-found cases, and develop changes through TDD.
Why use it?
It turns bug reports and new requirements into repeatable checks without depending on internal implementation details. It also promotes isolated tests that remain stable in continuous integration.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the superpowers-symfony plugin — 44 skills, 13 commands, 7 agents, 1 hook shipped together

Good fit Use it to test controllers and HTTP endpoints, cover invalid or unauthorized requests, verify not-found cases, and develop changes through TDD.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dev-toolings/superpowers-symfony/functional-tests
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dev-toolings/superpowers-symfony --skill functional-tests
Clone the repo
git clone --depth 1 https://github.com/dev-toolings/superpowers-symfony

Made for: Claude Code.

Or install superpowers-symfony, the plugin that ships this one along with the rest of its 44 skills, 13 commands, 7 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for functional-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/dev-toolings/superpowers-symfony/functional-tests/github.svg)](https://agentmods.dev/skills/dev-toolings/superpowers-symfony/functional-tests)
Your own site
<a href="https://agentmods.dev/skills/dev-toolings/superpowers-symfony/functional-tests"><img src="https://agentmods.dev/badge/skills/dev-toolings/superpowers-symfony/functional-tests/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for functional-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/dev-toolings/superpowers-symfony/functional-tests"><img src="https://agentmods.dev/badge/skills/dev-toolings/superpowers-symfony/functional-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 490 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00490
Opus 5.5 $0.00011 $0.00196
Sonnet 5.5 $0.00005 $0.00098
Haiku 4.5 $0.00003 $0.00049

Measured 13d ago against content hash 127fda06c31d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

functional-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

content/skills/functional-tests/SKILL.md · 49 lines

What it actually says

Functional Tests (Symfony)

Use when

  • A controller or HTTP endpoint must be checked through the kernel: status, redirect, rendered DOM, form errors, emails.
  • A repository or service must be tested against the real database with KernelTestCase.
  • An authenticated or role-restricted route needs coverage via loginUser().
  • Key URLs need cheap smoke tests.

Default workflow

  1. Choose the base class: WebTestCase for HTTP, KernelTestCase for services, plain TestCase for pure logic.
  2. Call static::createClient() directly (never bootKernel() first) and read private services with static::getContainer().
  3. Authenticate with $client->loginUser($user) instead of replaying the login form.
  4. Assert the response and the DOM: assertResponseIsSuccessful(), assertResponseRedirects(), assertSelectorTextContains(), assertEmailCount().
  5. Isolate tests with the DAMADoctrineTestBundle PHPUnitExtension, plus Foundry reset for fixtures.
  6. Add smoke tests with a data provider and hardcoded URLs.

Guardrails

  • Use the real database and real repositories; do not mock the EntityManager or repositories in data-touching tests.
  • Invalid form submissions assert 422 with assertResponseIsUnprocessable() (Symfony 8.0+ behavior).
  • .env.local is not loaded in the test environment: use .env.test or .env.test.local.
  • assertSessionHasFlashMessage() requires Symfony 8.1+.

Progressive disclosure

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

Output contract

  • Test classes with the base class chosen for each.
  • The authentication and database isolation strategy.
  • Status codes, DOM assertions and smoke URLs covered.

References

  • reference.md
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago Changed · +4 lines 127fda06c31d
  2. 1mo ago Changed · +3 lines · -3 tokens per session 019cde127cde
  3. 1mo ago First seen · 42 lines · 30 tokens per session scan A 9ff549fc7bfe

Subscribe to this mod's changes

functional-tests is a skill published in the GitHub repository dev-toolings/superpowers-symfony (224 stars, last pushed 14d ago), licensed MIT. It adds 27 tokens to every session and 490 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

proof-e2e

Build E2E test specs for critical user journeys — Playwright or Cypress, page objects, setup/teardown, CI config. Use when asked to "write E2E tests", "end-to-end testing", "browser tests", "UI tests", or "Playwright tests".

tonone-ai/tonone · 63 tokens

proof-strategy

Produce a test strategy for a project or feature — risk map, test type decisions, coverage targets, CI config. Use when asked to "create test strategy", "what should we test", "testing plan", or "improve test coverage".

tonone-ai/tonone · 53 tokens

e2e

Orchestrates e2e testing: BDD scenarios, Playwright autotests. Triggers: e2e tests, BDD scenarios, write autotest.

kochetkov-ma/claude-brewcode · 37 tokens

proof-recon

Testing reconnaissance — inventory all tests, frameworks, coverage, CI integration, and assess testing maturity for project takeover. Use when asked to "understand the tests", "testing assessment", "what's tested", or "test inventory".

tonone-ai/tonone · 50 tokens

ccc-e2e

Pre-release assessment that fans out via $ccc-fleet into up to three isolated workers (QA audit, unit tests, Playwright E2E) running $ccc-testing lanes, then writes a severity-ranked PASS or FAIL verdict. Use when about to tag a release, after a large merge, or asking is this ready.

KevinZai/commander · 70 tokens

journey-simulation

Use when caller wants to observe how a stranger encounters a flow, artifact, or sandbox — triggers like "simulate a user journey", "test our onboarding / checkout / signup", "will my ICP convert", "how does a cold reader experience this README", "first-time user test", "cognitive walkthrough", or any request to…

RockyHong/super-bootstrap · 79 tokens