Skip to content

CI

CI #840

Triggered via schedule May 28, 2024 01:22
Status Success
Total duration 1m 16s
Artifacts

ci.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

24 warnings
PHP 8.1: src/MockByCallsTrait.php#L116
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $expectedArgumentsCount = \count($expectedArguments); $argumentsCount = \count($arguments); - self::assertSame($expectedArgumentsCount, $argumentsCount, sprintf('Method "%s" on class "%s" at call %d, got %d arguments, but %d are expected', $method, $class, $at, $expectedArgumentsCount, $argumentsCount)); + foreach ($expectedArguments as $index => $expectedArgument) { if ($expectedArgument instanceof ArgumentInterface) { $expectedArgument->assert($arguments[$index], ['class' => $class, 'method' => $method, 'at' => $at, 'index' => $index]);
PHP 8.1: src/MockByCallsTrait.php#L136
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ foreach ($expectedArguments as $index => $expectedArgument) { if ($expectedArgument instanceof ArgumentInterface) { $expectedArgument->assert($arguments[$index], ['class' => $class, 'method' => $method, 'at' => $at, 'index' => $index]); - continue; + break; } self::assertSame($expectedArgument, $arguments[$index], sprintf('Method "%s" on class "%s" at call %d, argument %d', $method, $class, $at, $index)); }
PHP 8.1: src/MockByCallsTrait.php#L139
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $expectedArgument->assert($arguments[$index], ['class' => $class, 'method' => $method, 'at' => $at, 'index' => $index]); continue; } - self::assertSame($expectedArgument, $arguments[$index], sprintf('Method "%s" on class "%s" at call %d, argument %d', $method, $class, $at, $index)); + } } private function getStackTrace(string $mockName) : array
PHP 8.1: src/MockByCallsTrait.php#L156
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ private function getStackTrace(string $mockName) : array { $trace = []; - $enableTrace = false; + $enableTrace = true; foreach (debug_backtrace() as $row) { if (isset($row['class']) && $mockName === $row['class']) { $enableTrace = true;
PHP 8.1: src/MockByCallsTrait.php#L158
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ $trace = []; $enableTrace = false; foreach (debug_backtrace() as $row) { - if (isset($row['class']) && $mockName === $row['class']) { + if (isset($row['class']) && $mockName !== $row['class']) { $enableTrace = true; } if ($enableTrace) {
PHP 8.1: src/MockByCallsTrait.php#L158
Escaped Mutant for Mutator "LogicalAndNegation": --- Original +++ New @@ @@ $trace = []; $enableTrace = false; foreach (debug_backtrace() as $row) { - if (isset($row['class']) && $mockName === $row['class']) { + if (!(isset($row['class']) && $mockName === $row['class'])) { $enableTrace = true; } if ($enableTrace) {
PHP 8.1: src/MockByCallsTrait.php#L166
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ if ($enableTrace) { $traceRow = ''; if (isset($row['class'])) { - $traceRow .= $row['class']; + $traceRow = $row['class']; } if (isset($row['type'])) { $traceRow .= $row['type'];
PHP 8.1: src/MockByCallsTrait.php#L185
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ $trace[] = $traceRow; } } - krsort($trace); + return array_values($trace); } }
PHP 8.2: src/MockByCallsTrait.php#L116
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $expectedArgumentsCount = \count($expectedArguments); $argumentsCount = \count($arguments); - self::assertSame($expectedArgumentsCount, $argumentsCount, sprintf('Method "%s" on class "%s" at call %d, got %d arguments, but %d are expected', $method, $class, $at, $expectedArgumentsCount, $argumentsCount)); + foreach ($expectedArguments as $index => $expectedArgument) { if ($expectedArgument instanceof ArgumentInterface) { $expectedArgument->assert($arguments[$index], ['class' => $class, 'method' => $method, 'at' => $at, 'index' => $index]);
PHP 8.2: src/MockByCallsTrait.php#L136
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ foreach ($expectedArguments as $index => $expectedArgument) { if ($expectedArgument instanceof ArgumentInterface) { $expectedArgument->assert($arguments[$index], ['class' => $class, 'method' => $method, 'at' => $at, 'index' => $index]); - continue; + break; } self::assertSame($expectedArgument, $arguments[$index], sprintf('Method "%s" on class "%s" at call %d, argument %d', $method, $class, $at, $index)); }
PHP 8.2: src/MockByCallsTrait.php#L139
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $expectedArgument->assert($arguments[$index], ['class' => $class, 'method' => $method, 'at' => $at, 'index' => $index]); continue; } - self::assertSame($expectedArgument, $arguments[$index], sprintf('Method "%s" on class "%s" at call %d, argument %d', $method, $class, $at, $index)); + } } private function getStackTrace(string $mockName) : array
PHP 8.2: src/MockByCallsTrait.php#L156
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ private function getStackTrace(string $mockName) : array { $trace = []; - $enableTrace = false; + $enableTrace = true; foreach (debug_backtrace() as $row) { if (isset($row['class']) && $mockName === $row['class']) { $enableTrace = true;
PHP 8.2: src/MockByCallsTrait.php#L158
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ $trace = []; $enableTrace = false; foreach (debug_backtrace() as $row) { - if (isset($row['class']) && $mockName === $row['class']) { + if (isset($row['class']) && $mockName !== $row['class']) { $enableTrace = true; } if ($enableTrace) {
PHP 8.2: src/MockByCallsTrait.php#L158
Escaped Mutant for Mutator "LogicalAndNegation": --- Original +++ New @@ @@ $trace = []; $enableTrace = false; foreach (debug_backtrace() as $row) { - if (isset($row['class']) && $mockName === $row['class']) { + if (!(isset($row['class']) && $mockName === $row['class'])) { $enableTrace = true; } if ($enableTrace) {
PHP 8.2: src/MockByCallsTrait.php#L166
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ if ($enableTrace) { $traceRow = ''; if (isset($row['class'])) { - $traceRow .= $row['class']; + $traceRow = $row['class']; } if (isset($row['type'])) { $traceRow .= $row['type'];
PHP 8.2: src/MockByCallsTrait.php#L185
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ $trace[] = $traceRow; } } - krsort($trace); + return array_values($trace); } }
PHP 8.3: src/MockByCallsTrait.php#L116
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { $expectedArgumentsCount = \count($expectedArguments); $argumentsCount = \count($arguments); - self::assertSame($expectedArgumentsCount, $argumentsCount, sprintf('Method "%s" on class "%s" at call %d, got %d arguments, but %d are expected', $method, $class, $at, $expectedArgumentsCount, $argumentsCount)); + foreach ($expectedArguments as $index => $expectedArgument) { if ($expectedArgument instanceof ArgumentInterface) { $expectedArgument->assert($arguments[$index], ['class' => $class, 'method' => $method, 'at' => $at, 'index' => $index]);
PHP 8.3: src/MockByCallsTrait.php#L136
Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ foreach ($expectedArguments as $index => $expectedArgument) { if ($expectedArgument instanceof ArgumentInterface) { $expectedArgument->assert($arguments[$index], ['class' => $class, 'method' => $method, 'at' => $at, 'index' => $index]); - continue; + break; } self::assertSame($expectedArgument, $arguments[$index], sprintf('Method "%s" on class "%s" at call %d, argument %d', $method, $class, $at, $index)); }
PHP 8.3: src/MockByCallsTrait.php#L139
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $expectedArgument->assert($arguments[$index], ['class' => $class, 'method' => $method, 'at' => $at, 'index' => $index]); continue; } - self::assertSame($expectedArgument, $arguments[$index], sprintf('Method "%s" on class "%s" at call %d, argument %d', $method, $class, $at, $index)); + } } private function getStackTrace(string $mockName) : array
PHP 8.3: src/MockByCallsTrait.php#L156
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ private function getStackTrace(string $mockName) : array { $trace = []; - $enableTrace = false; + $enableTrace = true; foreach (debug_backtrace() as $row) { if (isset($row['class']) && $mockName === $row['class']) { $enableTrace = true;
PHP 8.3: src/MockByCallsTrait.php#L158
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ $trace = []; $enableTrace = false; foreach (debug_backtrace() as $row) { - if (isset($row['class']) && $mockName === $row['class']) { + if (isset($row['class']) && $mockName !== $row['class']) { $enableTrace = true; } if ($enableTrace) {
PHP 8.3: src/MockByCallsTrait.php#L158
Escaped Mutant for Mutator "LogicalAndNegation": --- Original +++ New @@ @@ $trace = []; $enableTrace = false; foreach (debug_backtrace() as $row) { - if (isset($row['class']) && $mockName === $row['class']) { + if (!(isset($row['class']) && $mockName === $row['class'])) { $enableTrace = true; } if ($enableTrace) {
PHP 8.3: src/MockByCallsTrait.php#L166
Escaped Mutant for Mutator "Assignment": --- Original +++ New @@ @@ if ($enableTrace) { $traceRow = ''; if (isset($row['class'])) { - $traceRow .= $row['class']; + $traceRow = $row['class']; } if (isset($row['type'])) { $traceRow .= $row['type'];
PHP 8.3: src/MockByCallsTrait.php#L185
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ $trace[] = $traceRow; } } - krsort($trace); + return array_values($trace); } }