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.

35.4M+
installs to date 35,456,911 via Composer
1.9M
installs a month about 84,116 every day
2,759
packages depend on it listed as a dependency on Packagist
2,266
stars on GitHub infection/infection

Source: packagist.org/packages/infection/infection — as of 2026-11-05