Next Release 0.28.0 (#229) #152
phpunit.yml
on: push
Matrix: phpunit
Mutation Tests (Infection)
3m 43s
Publish badge data
5s
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
|
781 KB |
sha256:5851a1761e01ff56dfc2eca268482430d46a1c38a6694b613ca0dc121f879250
|
|
|
mutation-report
|
469 KB |
sha256:9c1a611055690c2b86fa9c0bfde1349b9e69b6288875b0bfcd2a4b120312e1d7
|
|