Skip to content

InfectionPHP Mutation Testing Framework

Find the tests you are missing. Infection mutates your source code and tells you which changes your test suite fails to catch.

InfectionInfection

Adopted across the PHP ecosystem

The standard for mutation testing in PHP

Infection is the tool the PHP community reaches for when line coverage stops being convincing — used by frameworks, libraries and application teams to prove their tests actually assert something.

31.1M+
installs to date 31,116,901 via Composer
1.3M
installs a month about 81,804 every day
2,331
packages depend on it listed as a dependency on Packagist
2,233
stars on GitHub infection/infection

Source: packagist.org/packages/infection/infection — as of 2026-08-24