Mutation Testing library for PHP based on AST

Poland
Joined July 2017
Infection PHP retweeted
Anyone using agents/tools to do mutation testing? Seems like it would ROCK during automated review for flushing out which branches of the code are actually covered by tests.
87
6
2
389
70,531
Infection PHP retweeted
Lately I've been working on integrating #Testo #PHP with @infection_php There's still more ahead, but in the meantime you can read my fresh article about mutation testing php-testo.github.io/docs/the…
3
1
10
1,257
Infection PHP retweeted
Replying to @infection_php
I use it in a project and it's a killer feature! 🚀
1
1
2
434
Looks like #phpunit xml code-coverage generation could get nearly twice as fast in the future. this would for example considerably reduce overhead of the necessary "initial-test" step when running @infection_php on your project.
1
1
17
1,290
Blogged about my hands-on experience with @infection_php Its a short super top level article to give you an overall idea what to expect from it. what do you think about that? feedback welcome. staabm.github.io/2025/08/01/…
2
3
376
In case you are getting timed-out #mutants while mutation testing with @infection_php (e.g. because of infinite loops), the upcoming release should run faster for you. on infection/infection with 16 timed-out mutants, we saw a ~21% perf boost 🚀
2
6
327
past few weeks I have concentrated my opensource efforts onto @infection_php. focus was on developer experience - make it easer for newcomers to apply the tool and reduce noise by removing redundant mutations. this got just released. feedback welcome. #dx #mutationtesting
3
11
623
Running a few @infection_php performance tests on the #valinor codebase, to get an idea how we progressed in newer versions and latest dev-master. seems were are working in a good direction 🚀
5
20
1,213
Infection PHP retweeted
It was interesting to play with @phpstorm Junie. As a result, now both infection.github.io/guide and infection-php.dev have dark themes, written almost completely by Junie.
1
1
4
302
Infection PHP retweeted
Have you heard about Conductor? We have already integrated it with @infection_php.
We're excited to introduce you to 🧑‍✈️Conductor! Automatic dependency update PRs with Composer for PHP projects - Security fixes patched in minutes - Continuous updates without the hassle - all running in your own CI env! #composerphp #php #phpc
2
5
1,348
Infection 0.29.2 has been released with a new diff inline highlighting logic for `--show-mutations` option. Now it's easier to spot the change. Thank you @slamzoe
4
11
628
Infection PHP retweeted
So.... I have incurable brain cancer and I'm asking for your love & support 💖
248
811
197
2,088
549,426
That one. With infection testing you have real coverage report. Otherwise you only know that the code was executed - okay, no syntax error. Phpstan tells me the same. 😅
1
4
338
Infection PHP retweeted
Implemented another idea of reducing execution time for Mutation Testing on one of the stage: github.com/infection/infecti… Below is a real example of how it will affect @infection_php execution for PHP-CS-Fixer:
1
1
1
9
1,569
Mutation testing in #PHPCSFixer is ready 🥳! When it's merged, all pull requests will be covered with @infection_php & checked if added/modified files are mutants-proof. It will enforce really good tests quality (which already has been high with MSI=80). github.com/PHP-CS-Fixer/PHP-…
1
5
11
1,157
💡 Did you know that @infection_php has its own playground? I did not! I found the infection-php.dev URL in the docs but I think it would be much better if it was exposed more, that's why I created PR that added links on landing page & to top menu. github.com/infection/site/pu…
3
10
766
I did an experiment and added mutation testing to the #PHPCSFixer, it looks like Fixer's MSI is higher than @infection_php's 😅. Or..... I did something wrong 😆. PR: github.com/PHP-CS-Fixer/PHP-…
For sure fixer's tests are not completely useless, I just gave an extreme example for clarity. But you can only guess how good the test suite is without MSI. For example MSI for Infection itself is 76% - still a lot to improve!
1
1
7
1,291