testing-symfony
Stratégie de Tests Symfony 8.1 / PHP 8.5. Use when writing tests, reviewing test coverage, or setting up testing.
How do I install this agent skill?
npx skills add https://github.com/thebeardedbearsas/claude-craft --skill testing-symfonyIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides best practices, configurations, and code examples for Symfony 8.1 and PHP 8.5 testing using Pest 4, Infection, and PHPStan. It is purely instructional and contains no security risks.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1 file scanned · No issues
What does this agent skill do?
Stratégie de Tests Symfony 8.1 / PHP 8.5
Versions : Symfony 8.1+ | PHP 8.5 | Pest 4.5+ | PHPUnit 12 | Playwright
Abandonner Panther (lourd) et Behat (verbeux) — Pest 4 intègre tout nativement.
Stack recommandée 2026
| Type | Outil | Usage |
|---|---|---|
| Unit/Integration | Pest 4.5+ (PHPUnit 12, arch tests) | Tests backend Symfony |
| Browser/E2E | Pest 4 Browser Testing (Playwright natif) | Tests frontend intégrés |
| Mutation | Infection | Qualité des tests (MSI >= 80%) |
| Static Analysis | PHPStan Level 10 | Vérification statique |
Invariants non-négociables
- Couverture >= 80% (line + branch)
- Mutation Score Indicator (MSI) >= 80% via Infection
- PHPStan Level 10 — aucun
mixednon justifié - Arch tests : domain indépendant de l'infrastructure
- Fixtures via
doctrine/data-fixtures— pas de données hard-codées - Pattern AAA (Arrange-Act-Assert) dans chaque test
- Tests browser dans
tests/Browser/, unit danstests/Unit/, feature danstests/Feature/
Checklist par type
| Type | Vérification |
|---|---|
| Unit | Isolation totale, pas de DB, mocks Prophecy/Mockery |
| Integration | KernelTestCase, fixtures chargées, DB de test |
| Browser | Playwright natif Pest 4, assertions sur l'UI réelle |
| Arch | pest()->arch() — namespaces, dépendances, interdictions |
| Mutation | vendor/bin/infection --threads=4, MSI >= 80 |
Détails complets, exemples de code, configs et checklists : voir REFERENCE.md
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/thebeardedbearsas/claude-craft/testing-symfony">View testing-symfony on skillZs</a>