Skip to content

CI

CI #1275

Triggered via schedule September 16, 2025 01:13
Status Failure
Total duration 1m 9s
Artifacts –
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

26 warnings
PHP 8.3: src/MockObjectBuilder.php#L23
Escaped Mutant for Mutator "IncrementInteger": @@ @@ */ public function create(string $className, array $mockMethods): object { - $trace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 0)[0]; + $trace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 1)[0]; $in = Utils::replaceProjectInPath($trace['file'] . ':' . $trace['line']); $mockClassName = $this->mockClassBuilder->mock($className); return new $mockClassName(new MockMethods($in, $className, $mockMethods)); } }
PHP 8.3: src/MockMethod/WithoutReturn.php#L158
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } } foreach ($reflectionObject->getProperties() as $reflectionProperty) { - $reflectionProperty->setAccessible(true); + $actualPropertyValue = $reflectionProperty->isInitialized($actual) ? $reflectionProperty->getValue($actual) : '(uninitialized)'; $expectedPropertyValue = $reflectionProperty->isInitialized($expected) ? $reflectionProperty->getValue($expected) : '(uninitialized)'; if (!$this->compareEqual($actualPropertyValue, $expectedPropertyValue)) {
PHP 8.3: src/MockMethod/WithoutReturn.php#L158
Escaped Mutant for Mutator "TrueValue": @@ @@ } } foreach ($reflectionObject->getProperties() as $reflectionProperty) { - $reflectionProperty->setAccessible(true); + $reflectionProperty->setAccessible(false); $actualPropertyValue = $reflectionProperty->isInitialized($actual) ? $reflectionProperty->getValue($actual) : '(uninitialized)'; $expectedPropertyValue = $reflectionProperty->isInitialized($expected) ? $reflectionProperty->getValue($expected) : '(uninitialized)'; if (!$this->compareEqual($actualPropertyValue, $expectedPropertyValue)) {
PHP 8.3: src/MockMethod/WithoutReturn.php#L104
Escaped Mutant for Mutator "FalseValue": @@ @@ throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, true); } } else if (!$this->compareEqual($actualParameter, $expectedParameter)) { - throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, false); + throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, true); } } }
PHP 8.3: src/MockMethod/WithoutReturn.php#L91
Escaped Mutant for Mutator "TrueValue": @@ @@ $actualParameter = $actualParameters[$parameterIndex]; if ($strict) { if ($actualParameter !== $expectedParameter) { - throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, true); + throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, false); } } else if (!$this->compareEqual($actualParameter, $expectedParameter)) { throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, false);
PHP 8.3: src/Exceptions/AbstractMock.php#L82
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } $data = []; foreach ($reflectionObject->getProperties() as $reflectionProperty) { - $reflectionProperty->setAccessible(true); + $subKey = $reflectionProperty->getName(); $subValue = $reflectionProperty->isInitialized($value) ? $reflectionProperty->getValue($value) : '(uninitialized)'; $data[$subKey] = $this->getData($subValue, $splObjectHashes);
PHP 8.3: src/Exceptions/AbstractMock.php#L82
Escaped Mutant for Mutator "TrueValue": @@ @@ } $data = []; foreach ($reflectionObject->getProperties() as $reflectionProperty) { - $reflectionProperty->setAccessible(true); + $reflectionProperty->setAccessible(false); $subKey = $reflectionProperty->getName(); $subValue = $reflectionProperty->isInitialized($value) ? $reflectionProperty->getValue($value) : '(uninitialized)'; $data[$subKey] = $this->getData($subValue, $splObjectHashes);
PHP 8.3: src/Exceptions/AbstractMock.php#L60
Escaped Mutant for Mutator "TrueValue": @@ @@ if (isset($splObjectHashes[$splObjectHash])) { return '(recursion)'; } - $splObjectHashes[$splObjectHash] = true; + $splObjectHashes[$splObjectHash] = false; if ($value instanceof \Throwable) { return $this->getThrowableData($value); }
PHP 8.2: src/MockObjectBuilder.php#L23
Escaped Mutant for Mutator "IncrementInteger": @@ @@ */ public function create(string $className, array $mockMethods): object { - $trace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 0)[0]; + $trace = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 1)[0]; $in = Utils::replaceProjectInPath($trace['file'] . ':' . $trace['line']); $mockClassName = $this->mockClassBuilder->mock($className); return new $mockClassName(new MockMethods($in, $className, $mockMethods)); } }
PHP 8.2: src/MockMethod/WithoutReturn.php#L158
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } } foreach ($reflectionObject->getProperties() as $reflectionProperty) { - $reflectionProperty->setAccessible(true); + $actualPropertyValue = $reflectionProperty->isInitialized($actual) ? $reflectionProperty->getValue($actual) : '(uninitialized)'; $expectedPropertyValue = $reflectionProperty->isInitialized($expected) ? $reflectionProperty->getValue($expected) : '(uninitialized)'; if (!$this->compareEqual($actualPropertyValue, $expectedPropertyValue)) {
PHP 8.2: src/MockMethod/WithoutReturn.php#L158
Escaped Mutant for Mutator "TrueValue": @@ @@ } } foreach ($reflectionObject->getProperties() as $reflectionProperty) { - $reflectionProperty->setAccessible(true); + $reflectionProperty->setAccessible(false); $actualPropertyValue = $reflectionProperty->isInitialized($actual) ? $reflectionProperty->getValue($actual) : '(uninitialized)'; $expectedPropertyValue = $reflectionProperty->isInitialized($expected) ? $reflectionProperty->getValue($expected) : '(uninitialized)'; if (!$this->compareEqual($actualPropertyValue, $expectedPropertyValue)) {
PHP 8.2: src/MockMethod/WithoutReturn.php#L104
Escaped Mutant for Mutator "FalseValue": @@ @@ throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, true); } } else if (!$this->compareEqual($actualParameter, $expectedParameter)) { - throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, false); + throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, true); } } }
PHP 8.2: src/MockMethod/WithoutReturn.php#L91
Escaped Mutant for Mutator "TrueValue": @@ @@ $actualParameter = $actualParameters[$parameterIndex]; if ($strict) { if ($actualParameter !== $expectedParameter) { - throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, true); + throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, false); } } else if (!$this->compareEqual($actualParameter, $expectedParameter)) { throw new ParameterMismatch($in, $class, $Index, $actualName, $parameterIndex, $actualParameter, $expectedParameter, false);
PHP 8.2: src/Exceptions/AbstractMock.php#L82
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } $data = []; foreach ($reflectionObject->getProperties() as $reflectionProperty) { - $reflectionProperty->setAccessible(true); + $subKey = $reflectionProperty->getName(); $subValue = $reflectionProperty->isInitialized($value) ? $reflectionProperty->getValue($value) : '(uninitialized)'; $data[$subKey] = $this->getData($subValue, $splObjectHashes);
PHP 8.2: src/Exceptions/AbstractMock.php#L82
Escaped Mutant for Mutator "TrueValue": @@ @@ } $data = []; foreach ($reflectionObject->getProperties() as $reflectionProperty) { - $reflectionProperty->setAccessible(true); + $reflectionProperty->setAccessible(false); $subKey = $reflectionProperty->getName(); $subValue = $reflectionProperty->isInitialized($value) ? $reflectionProperty->getValue($value) : '(uninitialized)'; $data[$subKey] = $this->getData($subValue, $splObjectHashes);
PHP 8.2: src/Exceptions/AbstractMock.php#L60
Escaped Mutant for Mutator "TrueValue": @@ @@ if (isset($splObjectHashes[$splObjectHash])) { return '(recursion)'; } - $splObjectHashes[$splObjectHash] = true; + $splObjectHashes[$splObjectHash] = false; if ($value instanceof \Throwable) { return $this->getThrowableData($value); }
PHP 8.4: src/MockClassBuilder.php#L58
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ $implementsOrExtends = $reflectionClass->isInterface() ? 'implements' : 'extends'; $methods = ['public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }' . PHP_EOL, 'public function __destruct() { }' . PHP_EOL]; foreach ($reflectionClass->getMethods() as $reflectionMethod) { - $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod) . PHP_EOL; + $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod); } $class = "final class {$mockClassName} {$implementsOrExtends} {$reflectionClass->getName()} {" . PHP_EOL; $class .= implode(PHP_EOL, $methods) . PHP_EOL;
PHP 8.4: src/MockClassBuilder.php#L58
Escaped Mutant for Mutator "Concat": @@ @@ $implementsOrExtends = $reflectionClass->isInterface() ? 'implements' : 'extends'; $methods = ['public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }' . PHP_EOL, 'public function __destruct() { }' . PHP_EOL]; foreach ($reflectionClass->getMethods() as $reflectionMethod) { - $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod) . PHP_EOL; + $methods[] = PHP_EOL . $this->mockMethod($reflectionClasses, $reflectionMethod); } $class = "final class {$mockClassName} {$implementsOrExtends} {$reflectionClass->getName()} {" . PHP_EOL; $class .= implode(PHP_EOL, $methods) . PHP_EOL;
PHP 8.4: src/MockClassBuilder.php#L54
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ { $reflectionClasses = $this->resolveReflectionClasses($reflectionClass); $implementsOrExtends = $reflectionClass->isInterface() ? 'implements' : 'extends'; - $methods = ['public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }' . PHP_EOL, 'public function __destruct() { }' . PHP_EOL]; + $methods = ['public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }' . PHP_EOL, 'public function __destruct() { }']; foreach ($reflectionClass->getMethods() as $reflectionMethod) { $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod) . PHP_EOL; }
PHP 8.4: src/MockClassBuilder.php#L54
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ { $reflectionClasses = $this->resolveReflectionClasses($reflectionClass); $implementsOrExtends = $reflectionClass->isInterface() ? 'implements' : 'extends'; - $methods = ['public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }' . PHP_EOL, 'public function __destruct() { }' . PHP_EOL]; + $methods = ['public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }' . PHP_EOL, PHP_EOL]; foreach ($reflectionClass->getMethods() as $reflectionMethod) { $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod) . PHP_EOL; }
PHP 8.4: src/MockClassBuilder.php#L54
Escaped Mutant for Mutator "Concat": @@ @@ { $reflectionClasses = $this->resolveReflectionClasses($reflectionClass); $implementsOrExtends = $reflectionClass->isInterface() ? 'implements' : 'extends'; - $methods = ['public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }' . PHP_EOL, 'public function __destruct() { }' . PHP_EOL]; + $methods = ['public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }' . PHP_EOL, PHP_EOL . 'public function __destruct() { }']; foreach ($reflectionClass->getMethods() as $reflectionMethod) { $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod) . PHP_EOL; }
PHP 8.4: src/MockClassBuilder.php#L53
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ { $reflectionClasses = $this->resolveReflectionClasses($reflectionClass); $implementsOrExtends = $reflectionClass->isInterface() ? 'implements' : 'extends'; - $methods = ['public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }' . PHP_EOL, 'public function __destruct() { }' . PHP_EOL]; + $methods = ['public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }', 'public function __destruct() { }' . PHP_EOL]; foreach ($reflectionClass->getMethods() as $reflectionMethod) { $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod) . PHP_EOL; }
PHP 8.4: src/MockClassBuilder.php#L53
Escaped Mutant for Mutator "Concat": @@ @@ { $reflectionClasses = $this->resolveReflectionClasses($reflectionClass); $implementsOrExtends = $reflectionClass->isInterface() ? 'implements' : 'extends'; - $methods = ['public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }' . PHP_EOL, 'public function __destruct() { }' . PHP_EOL]; + $methods = [PHP_EOL . 'public function __construct(private Chubbyphp\Mock\MockMethods $mockMethods) { }', 'public function __destruct() { }' . PHP_EOL]; foreach ($reflectionClass->getMethods() as $reflectionMethod) { $methods[] = $this->mockMethod($reflectionClasses, $reflectionMethod) . PHP_EOL; }
PHP 8.4: src/Exceptions/AbstractMock.php#L82
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } $data = []; foreach ($reflectionObject->getProperties() as $reflectionProperty) { - $reflectionProperty->setAccessible(true); + $subKey = $reflectionProperty->getName(); $subValue = $reflectionProperty->isInitialized($value) ? $reflectionProperty->getValue($value) : '(uninitialized)'; $data[$subKey] = $this->getData($subValue, $splObjectHashes);
PHP 8.4: src/Exceptions/AbstractMock.php#L82
Escaped Mutant for Mutator "TrueValue": @@ @@ } $data = []; foreach ($reflectionObject->getProperties() as $reflectionProperty) { - $reflectionProperty->setAccessible(true); + $reflectionProperty->setAccessible(false); $subKey = $reflectionProperty->getName(); $subValue = $reflectionProperty->isInitialized($value) ? $reflectionProperty->getValue($value) : '(uninitialized)'; $data[$subKey] = $this->getData($subValue, $splObjectHashes);
PHP 8.4: src/Exceptions/AbstractMock.php#L60
Escaped Mutant for Mutator "TrueValue": @@ @@ if (isset($splObjectHashes[$splObjectHash])) { return '(recursion)'; } - $splObjectHashes[$splObjectHash] = true; + $splObjectHashes[$splObjectHash] = false; if ($value instanceof \Throwable) { return $this->getThrowableData($value); }