Infection PHP

@infection_php
84 Followers
2 Following
62 Posts

Infection 0.33.0 has been released.

- Testo test framework support (by @roxblnfk)
- Allow using the full width of the terminal for console output

Enjoy!

Do you use Infection with AI-generated code/tests? If so, what is the workflow / skills / prompts?

Is there anything we need to improve here to make it more useful?

Now officially: Infection supports killing mutants by Static Analysis tools:

- PHPStan
- Mago

https://infection.github.io/guide/static-analysis-integration.html

Enjoy!

Static Analysis Integration — Infection PHP

Infection - PHP Mutation Testing Framework.

Question to get an idea and inspiration: what do you run in CI?

I run:
- composer install + validate + audit
- php lint
- deptrac
- ecs
- @phpmd
- @phpunit (with and without database)
- @infection_php
- @phpstan
- Vi test
- rector
- mlc
- vale
- redoc-cli
- Custom script to build documentation from a combination of markdown, openapi and test results.
- a manual job to create a new release (combine all changelogs from a directory to a main changelog, create a tag, push)

#PHP #CI #quality

Infection 0.32.3 has been released with new `--max-timeouts` and `--with-timeouts` options.

Read the details in this blog post to understand how it helps with speeding up Mutation Testing and why you should start using them!

https://infection.github.io/2026/01/14/whats-new-in-0.32.3/

What's new in Infection 0.32.3 — Infection PHP

Infection - PHP Mutation Testing Framework.

🎄 Xmas present

Infection 0.32.0 has been released:

- Format-presering pretty printing
- new GitHub loggers with collapsable sections
- Symfony 8 support; webmozart/assert@v2 support
- and much more

https://github.com/infection/infection/releases/tag/0.32.0

Release Format-presering pretty printing; new GitHub loggers with collapsable sections; Symfony 8 support · infection/infection

Added: Support --exclude-source-from-xml-coverage fast path for PHPUnit 12.5+ by @staabm in #2604 Implement GitHubActionsLogTextFileLogger to improve DX of text file logger with GA by @staabm in #...

GitHub

Looks like @phpunit xml-report 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.

Custom Mutators — Infection PHP

Infection - PHP Mutation Testing Framework.

.@phpstan has added @infection_php for PRs on GH Actions with a set of custom mutators 🚀

.@xepozz
started working on Infection Plugin for @phpstorm, please share your ideas here: https://github.com/infection/infection/issues/2437

- What would you like to see?
- How would you use it?
- Where would you want to see Mutants diffs?

Let's make it useful.

PHPStorm / Intellij IDEA plugin Roadmap · Issue #2437 · infection/infection

PHPStorm / Intellij IDEA plugin is available: Marketplace https://plugins.jetbrains.com/plugin/28650-infection Sources: https://github.com/j-plugins/infection-plugin There's simple integration whic...

GitHub