Infection logo

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
Best for: PHP teams hardening core business logic with real test-quality metrics Not for: Teams still fighting flaky tests or lacking CI budget for long runs

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

Lock-in Assessment

Low 5/5
Lock-in Score
5/5

Infection Pricing

Pricing Model
free
Free Tier
Yes
Entry Price
Enterprise Available
No
Transparency Score

Beta — estimates may differ from actual pricing

1,000
1001K10K100K1M

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

A

Health Score

2.2k 180
Bus Factor

10

Last Commit

1 day

Release Freq

13d

Open Issues

198

Issue Response

N/A

License

BSD-3-Clause

Last checked: 2026-04-21

Community Discussion

Comments powered by Giscus (GitHub Discussions). You need a GitHub account to comment.