Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

Installs: 121 962

Dependents: 195

Suggesters: 4

Stars: 652

Watchers: 35

Forks: 53

Open Issues: 56


PHP Version Latest Stable Version Build Status Build status Scrutinizer Code Quality Infection MSI codecov Slack

Infection - Mutation Testing framework

Please read documentation here:



Infection is an open source project that welcomes pull requests and issues from anyone. Before opening pull requests, please read our short Contribution Guide.


This project is highly inspired from Pádraic Brady (@padraic)'s Humbug library. Humbug has since then been discountinued in favour of this project.