Mutation Testing with Infection

Who actually tests my tests? In this training you will learn about Mutation Testing as a method to assess the quality of tests and to find previously undiscovered errors in your program code. Using the two test tools PHPUnit and Infection, you will experience Mutation Testing in practice. Go on a search for escaped mutants and find out what this has to do with the quality of automated tests.

We rely on interactive live coding and discussion with the participants instead of frontal teaching with presentation slides. The transfer of knowledge alternates with demonstrations and practice using practical examples.

Learning Objectives

  • You use Infection in conjunction with PHPUnit
  • You can use Infection to find and improve ineffective unit tests
  • You can integrate Infection into your development process

Target Audience

Advanced software developers, senior developers, QA managers


Practical experience with test automation and especially code coverage statistics in PHPUnit or a similar test framework.


09:00am–09:15am Welcoming, introducing and collecting expectations
09:15am–10:00am Who actually tests my tests?
10:00am–10:45am Testing beyond 100% code coverage
10:45am–11:00am Break
11:00am–11:45am Mutants and software metrics
11:45am–12:30pm Install and configure Infection
12:30pm–01:30pm Lunch Break
01:30pm–02:15pm Mutant Hunt: Understanding and interpreting the output of Infection
02:15pm–03:00pm Exercise: Detect and eliminate lying tests
03:00pm–03:15pm Break
03:15pm–04:00pm Discussion of the exercise
04:00pm–04:45pm Summary and Outlook
04:45pm–05:00pm Questions and Feedback

Exclusive and customized

We are happy to adapt the content and focus of our training courses to your specific wishes and needs.

More Information