____ ____ __ _
/ _/___ / __/__ _____/ /_(_)___ ____
/ // __ \/ /_/ _ \/ ___/ __/ / __ \/ __ \
_/ // / / / __/ __/ /__/ /_/ / /_/ / / / /
/___/_/ /_/_/ \___/\___/\__/_/\____/_/ /_/
#StandWithUkraine
Infection - PHP Mutation Testing Framework version 0.32.0
[notice] You are running Infection with PCOV enabled.
Running initial test suite...
PHPUnit version: 10.5.10
.: killed by tests, A: killed by SA, M: escaped, U: uncovered
E: fatal error, X: syntax error, T: timed out, S: skipped, I: ignored
Generate mutants...
Processing source code files...
M.M..
Escaped mutants:
================
1) /app/infection-builds/x2og/src/SourceClass.php:11 [M] DecrementInteger [ID] 15a44a5700ddacbfa2a21d34d4453620
@@ @@
{
public function add(int $a, int $b) : int
{
- if ($b === 0) {
+ if ($b === -1) {
return $a;
}
return $a + $b;
}
}
2) /app/infection-builds/x2og/src/SourceClass.php:12 [M] ReturnRemoval [ID] c3d812dd8318e0a8933bf20086c01009
@@ @@
public function add(int $a, int $b) : int
{
if ($b === 0) {
- return $a;
+
}
return $a + $b;
}
}
5 mutations were generated:
3 mutants were killed by Test Framework
2 covered mutants were not detected
Metrics:
Mutation Code Coverage: 100%
Covered Code MSI: 60%
Generated Reports:
- /app/infection-builds/x2og/infection.log.json
Please note that some mutants will inevitably be harmless (i.e. false positives).
Time: 1s. Memory: 18.00MB. Threads: 1