diff --git a/src/guide/mutators.md b/src/guide/mutators.md index 96f4c6fb..5680f9a7 100644 --- a/src/guide/mutators.md +++ b/src/guide/mutators.md @@ -104,12 +104,10 @@ The Round Family mutator will make sure that there's enough tests to cover the r ### Boolean Substitution -This temporarily encompasses logical mutators. - | Name | Original | Mutated | | :------: | :------: |:-------:| | ArrayItem | `[$a->foo => $b->bar]` | `[$a->foo > $b->bar]` | -| TrueValue | true | false | +| [TrueValue](/guide/mutators.html#TrueValue) | true | false | | FalseValue | false | true | | LogicalAnd | && | || | | LogicalOr | || | && | @@ -119,6 +117,28 @@ This temporarily encompasses logical mutators. | Yield_ | `yield $a => $b;` | `yield $a > $b;` | | Coalesce | `$a ?? $b` | `$b` | +#### `TrueValue` + +Default settings: + +* `in_array: false`: whether to mutate 3rd argument `true` in function call +* `array_search: false`: whether to mutate 3rd argument `true` in function call + +infection.json: + +```json +{ + "mutators": { + "TrueValue": { + "settings": { + "in_array": true, + "array_search": true + } + } + } +} +``` + ### Conditional Boundaries | Name | Original | Mutated