Skip to content

CLI-1226: Support objects as API params #2012

CLI-1226: Support objects as API params

CLI-1226: Support objects as API params #2012

Triggered via pull request December 8, 2023 17:50
Status Success
Total duration 6m 41s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
6m 31s
Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation Testing: src/Command/Api/ApiBaseCommand.php#L190
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ } $types[] = $type['type']; } - $isInt = in_array('integer', $types, TRUE) || in_array('int', $types, TRUE); + $isInt = in_array('integer', $types, TRUE) && in_array('int', $types, TRUE); if ($isInt && ctype_digit($value)) { return $this->doCastParamType('integer', $value); }
Mutation Testing: src/Command/Api/ApiBaseCommand.php#L190
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation": --- Original +++ New @@ @@ } $types[] = $type['type']; } - $isInt = in_array('integer', $types, TRUE) || in_array('int', $types, TRUE); + $isInt = !in_array('integer', $types, TRUE) || !in_array('int', $types, TRUE); if ($isInt && ctype_digit($value)) { return $this->doCastParamType('integer', $value); }
Mutation Testing: src/Command/Api/ApiBaseCommand.php#L190
Escaped Mutant for Mutator "LogicalOrNegation": --- Original +++ New @@ @@ } $types[] = $type['type']; } - $isInt = in_array('integer', $types, TRUE) || in_array('int', $types, TRUE); + $isInt = !(in_array('integer', $types, TRUE) || in_array('int', $types, TRUE)); if ($isInt && ctype_digit($value)) { return $this->doCastParamType('integer', $value); }
Mutation Testing: src/Command/Api/ApiBaseCommand.php#L190
Escaped Mutant for Mutator "LogicalOrSingleSubExprNegation": --- Original +++ New @@ @@ } $types[] = $type['type']; } - $isInt = in_array('integer', $types, TRUE) || in_array('int', $types, TRUE); + $isInt = !in_array('integer', $types, TRUE) || in_array('int', $types, TRUE); if ($isInt && ctype_digit($value)) { return $this->doCastParamType('integer', $value); }
Mutation Testing: src/Command/Api/ApiBaseCommand.php#L190
Escaped Mutant for Mutator "LogicalOrSingleSubExprNegation": --- Original +++ New @@ @@ } $types[] = $type['type']; } - $isInt = in_array('integer', $types, TRUE) || in_array('int', $types, TRUE); + $isInt = in_array('integer', $types, TRUE) || !in_array('int', $types, TRUE); if ($isInt && ctype_digit($value)) { return $this->doCastParamType('integer', $value); }
Mutation Testing: src/Command/Api/ApiBaseCommand.php#L191
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": --- Original +++ New @@ @@ $types[] = $type['type']; } $isInt = in_array('integer', $types, TRUE) || in_array('int', $types, TRUE); - if ($isInt && ctype_digit($value)) { + if (!$isInt && !ctype_digit($value)) { return $this->doCastParamType('integer', $value); } } elseif ($paramSpec['type'] === 'array') {
Mutation Testing: src/Command/Api/ApiBaseCommand.php#L191
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ $types[] = $type['type']; } $isInt = in_array('integer', $types, TRUE) || in_array('int', $types, TRUE); - if ($isInt && ctype_digit($value)) { + if ($isInt || ctype_digit($value)) { return $this->doCastParamType('integer', $value); } } elseif ($paramSpec['type'] === 'array') {
Mutation Testing: src/Command/Api/ApiBaseCommand.php#L191
Escaped Mutant for Mutator "LogicalAndNegation": --- Original +++ New @@ @@ $types[] = $type['type']; } $isInt = in_array('integer', $types, TRUE) || in_array('int', $types, TRUE); - if ($isInt && ctype_digit($value)) { + if (!($isInt && ctype_digit($value))) { return $this->doCastParamType('integer', $value); } } elseif ($paramSpec['type'] === 'array') {
Mutation Testing: src/Command/Api/ApiBaseCommand.php#L191
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ $types[] = $type['type']; } $isInt = in_array('integer', $types, TRUE) || in_array('int', $types, TRUE); - if ($isInt && ctype_digit($value)) { + if (!$isInt && ctype_digit($value)) { return $this->doCastParamType('integer', $value); } } elseif ($paramSpec['type'] === 'array') {
Mutation Testing: src/Command/Api/ApiBaseCommand.php#L191
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ $types[] = $type['type']; } $isInt = in_array('integer', $types, TRUE) || in_array('int', $types, TRUE); - if ($isInt && ctype_digit($value)) { + if ($isInt && !ctype_digit($value)) { return $this->doCastParamType('integer', $value); } } elseif ($paramSpec['type'] === 'array') {