Infection
AST-based mutation testing framework for PHP that mutates source code and verifies that the test suite catches the mutations, scoring test quality.
Our Verdict
The honest verdict on PHP test quality, worth the runtime pain on critical code paths.
Pros
- Mutation testing exposes weak PHPUnit coverage
- Scores tests, not just lines hit
- Works with PHPUnit, Codeception, Pest
- Sensible defaults, low setup effort
Cons
- Full runs are very slow, needs parallelism
- Flaky tests explode false mutants
- Results require experienced interpretation
- CI cost can jump noticeably
When to Use Infection
Good fit if you need
- Mutation testing to score PHP test suite effectiveness
- Catch untested code paths by injecting AST mutations
- CI gate requiring minimum mutation score percentage
- Identify dead test code with no mutation coverage
Pricing
Price wrong?Infection Pricing
- Pricing Model
- free
- Free Tier
- Yes
- Entry Price
- β
- Enterprise Available
- No
- Transparency Score
- β
Beta β estimates may differ from actual pricing
Estimated Monthly Cost
$25
Estimated Annual Cost
$300
Estimates are approximate and may not reflect current pricing. Always check the official pricing page.
Project Health
Health Score
10
1 day
13d
198
N/A
BSD-3-Clause
Last checked: 2026-04-21
Lock-in Assessment
π Thinking about migrating off Infection?
Get an AI-drafted migration plan + a copy-paste email to Infection support requesting a data export. Pick where you're moving to and tell us your context.
Looking for alternatives to Infection?
Answer 4 quick questions β get an AI-ranked shortlist of tools that match your stack and requirements.
Open AI Tool FinderCommunity Discussion
Comments powered by Giscus (GitHub Discussions). You need a GitHub account to comment.