struggle-for-php/sfp-infection-mutator

0.0.3 2019-08-18 13:19 UTC

This package is auto-updated.

Last update: 2024-12-15 16:13:55 UTC


README

Mutators for infection PHP Mutation Testing Framework

Mutators

PregMatchIsNumeric

  • Replaces "preg_match('/\A[0-9]+\z/', '-0.12');" with "is_numeric('-0.12');"

UnwrapStrReplace

Install

composer require --dev struggle-for-php/sfp-infection-mutator

Setting at your infection.json

{
    "mutators": {
        "@default": true,
        "Sfp\\Infection\\Mutator\\Regex\\PregMatchIsNumeric": {},
        "Sfp\\Infection\\Mutator\\Unwrap\\UnwrapStrReplace": {}
    }
}