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: 259 984

Dependents: 327

Suggesters: 4

Stars: 853

Watchers: 31

Forks: 71

Open Issues: 62


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.