#infectionPHP

Emanuele Panzthepanz@phpc.social
2025-12-13

Found @sebastian 's article phpunit.expert/articles/path-c very informative on presenting both approaches, well done!

About performances: in my experience Path-Coverage required less time than running the mutation test suite (which includes #phpstan to kill mutants, thanks to @markusstaab IIRC).

Excluding some mutations (ex: on logging methods) never got to a point where Infection was faster than phpunit+coverage.

Maybe I missed something? How do you configure Infection?
#php #infectionPHP #phpunit

The Fulcrum/Symfony Station⚒️SymfonyStation@drupal.community
2025-08-01
Cees-Jan Kiewiet :rp: :wm:wyri@haxim.us
2025-04-30

Ok, so I'm confused about how @infection_php handles these specific mutators that are covered by tests:

#PHPUnit #InfectionPHP #PHP

Emanuele Panzthepanz@phpc.social
2025-03-15

Been playing around with #infectionPHP library again, and really happy to see the escaped "edge cases" (or Mutants) it found in my small Symfony project.

It required a bit of configs to: use a phpunit from phar, ignore some legacy code and skip some mutations that do not bring value.

The cool thing? All of those setting were well explained in the documentation, and took just a few lines of config to use them.

Kudos to the team behind that project!
#php #phpunit #symfony

Arne Blankertstheseer@phpc.social
2023-07-26

I have an #infectionPHP question: The `_Throws`-Mutation effectively removes my exit condition to avoid an endless recursion loop and thus runs into a Timeout.

The Timeout though apparently is considered bad, given it's not considered a "killed" mutation.

So, how do I make infection happy? I don't know how to avoid an endless recursion when infection would mutate my exit condition away ;)

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst