struggle-for-php / sfp-infection-mutator
Mutator for Infection
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/struggle-for-php/sfp-infection-mutator
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: 2025-10-15 17:53:22 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": {} } }