struggle-for-php / sfp-infection-mutator
Mutator for Infection
Package info
github.com/struggle-for-php/sfp-infection-mutator
pkg:composer/struggle-for-php/sfp-infection-mutator
0.0.3
2019-08-18 13:19 UTC
Requires
- php: >=7.3
- infection/infection: ^0.13.4
- nikic/php-parser: ^4.2
Requires (Dev)
- phpstan/phpstan: ^0.11.13
- phpstan/phpstan-phpunit: ^0.11.2
- phpunit/phpunit: ^8.3
- zendframework/zend-coding-standard: 2.0.0-alpha3
This package is auto-updated.
Last update: 2026-03-15 18:36:42 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": {}
}
}