Skip to content

Refactor compatibility checker #192

Refactor compatibility checker

Refactor compatibility checker #192

Triggered via pull request September 8, 2026 08:49
Status Success
Total duration 5m 22s
Artifacts 2

phpunit.yml

on: pull_request
Matrix: phpunit
Mutation Tests (Infection)
5m 17s
Mutation Tests (Infection)
Publish badge data
Publish badge data
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation Tests (Infection): src/Console/Command/AbstractCommand.php#L434
Escaped Mutant for Mutator "PregMatchRemoveDollar": @@ @@ */ private function getServerVar(string $name): ?string { - if (!preg_match('/^[A-Z_][A-Z0-9_]*$/', $name)) { + if (!preg_match('/^[A-Z_][A-Z0-9_]*/', $name)) { return null; }
Mutation Tests (Infection): src/Console/Command/AbstractCommand.php#L434
Escaped Mutant for Mutator "PregMatchRemoveCaret": @@ @@ */ private function getServerVar(string $name): ?string { - if (!preg_match('/^[A-Z_][A-Z0-9_]*$/', $name)) { + if (!preg_match('/[A-Z_][A-Z0-9_]*$/', $name)) { return null; }
Mutation Tests (Infection): src/Console/Command/AbstractCommand.php#L363
Escaped Mutant for Mutator "MatchArmRemoval": @@ @@ 'COLUMNS', 'LINES' => $this->sanitizeNumericValue($value), 'TERM' => $this->sanitizeTermValue($value), 'CI', 'GITHUB_ACTIONS', 'GITLAB_CI' => $this->sanitizeBooleanValue($value), - 'JENKINS_URL', 'TEAMCITY_VERSION' => $this->sanitizeAlphanumericValue($value), + 'JENKINS_URL' => $this->sanitizeAlphanumericValue($value), default => $this->sanitizeAlphanumericValue($value), }; }
Mutation Tests (Infection): src/Console/Command/AbstractCommand.php#L363
Escaped Mutant for Mutator "MatchArmRemoval": @@ @@ 'COLUMNS', 'LINES' => $this->sanitizeNumericValue($value), 'TERM' => $this->sanitizeTermValue($value), 'CI', 'GITHUB_ACTIONS', 'GITLAB_CI' => $this->sanitizeBooleanValue($value), - 'JENKINS_URL', 'TEAMCITY_VERSION' => $this->sanitizeAlphanumericValue($value), + 'TEAMCITY_VERSION' => $this->sanitizeAlphanumericValue($value), default => $this->sanitizeAlphanumericValue($value), }; }
Mutation Tests (Infection): src/Console/Command/AbstractCommand.php#L343
Escaped Mutant for Mutator "Ternary": @@ @@ if (isset($this->secureEnvStorage[$var])) { $this->cachedEnv[$var] = $this->secureEnvStorage[$var]; } else { - $globalEnv = filter_input_array(INPUT_ENV) ?: []; + $globalEnv = filter_input_array(INPUT_ENV) ? [] : filter_input_array(INPUT_ENV); if (array_key_exists($var, $globalEnv)) { $this->cachedEnv[$var] = (string) $globalEnv[$var]; }
Mutation Tests (Infection): src/Console/Command/AbstractCommand.php#L227
Escaped Mutant for Mutator "LogicalOr": @@ @@ ]; foreach ($nonInteractiveEnvs as $env) { - if ($this->getEnvVar($env) || $this->getServerVar($env)) { + if ($this->getEnvVar($env) && $this->getServerVar($env)) { return false; } }
Mutation Tests (Infection): src/Console/Command/AbstractCommand.php#L226
Escaped Mutant for Mutator "Foreach_": @@ @@ 'TEAMCITY_VERSION', ]; - foreach ($nonInteractiveEnvs as $env) { + foreach ([] as $env) { if ($this->getEnvVar($env) || $this->getServerVar($env)) { return false; }
Mutation Tests (Infection): src/Console/Command/AbstractCommand.php#L218
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ // Check for CI environments $nonInteractiveEnvs = [ - 'CI', 'GITHUB_ACTIONS', 'GITLAB_CI', 'JENKINS_URL',
Mutation Tests (Infection): src/Console/Command/AbstractCommand.php#L209
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ { // Check if output supports ANSI if (!$output->isDecorated()) { - return false; + } // Check if STDIN is available (undefined outside the CLI SAPI)
Mutation Tests (Infection): src/Block/Inspector.php#L36
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ private readonly DeveloperAccessChecker $developerAccessChecker, array $data = [], ) { - parent::__construct($context, $data); + } /**

Artifacts

Produced during runtime
Name Size Digest
coverage-report
784 KB
sha256:a4d8c9c293e1445a4e5ee23b4b1095f7feed67507d4ecd4f95b6e6554585abc2
mutation-report
471 KB
sha256:1ff77e1c7d3d4b1e194307191a81f0432045f1820fd4e6deab545ca07bc42070