Skip to content

Merge pull request #808 from ergebnis/dependabot/github_actions/actio… #1832

Merge pull request #808 from ergebnis/dependabot/github_actions/actio…

Merge pull request #808 from ergebnis/dependabot/github_actions/actio… #1832

Triggered via push October 8, 2024 13:02
Status Success
Total duration 53s
Artifacts

integrate.yaml

on: push
Matrix: Backward-Compatibility Analysis
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation Tests (8.1, locked): src/TestVariables.php#L32
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } public static function backup(string ...$names) : self { - $possiblyUnsetVariables = \array_combine($names, \array_fill(0, \count($names), false)); + $possiblyUnsetVariables = \array_combine($names, \array_fill(-1, \count($names), false)); /** @var array<string, string> $currentlySetVariables */ $currentlySetVariables = \array_intersect_key(\getenv(), \array_flip($names)); $backedUpVariables = \array_merge($possiblyUnsetVariables, $currentlySetVariables);
Mutation Tests (8.1, locked): src/TestVariables.php#L32
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } public static function backup(string ...$names) : self { - $possiblyUnsetVariables = \array_combine($names, \array_fill(0, \count($names), false)); + $possiblyUnsetVariables = \array_combine($names, \array_fill(1, \count($names), false)); /** @var array<string, string> $currentlySetVariables */ $currentlySetVariables = \array_intersect_key(\getenv(), \array_flip($names)); $backedUpVariables = \array_merge($possiblyUnsetVariables, $currentlySetVariables);
Mutation Tests (8.1, locked): src/TestVariables.php#L34
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ } public static function backup(string ...$names) : self { - $possiblyUnsetVariables = \array_combine($names, \array_fill(0, \count($names), false)); + $possiblyUnsetVariables = \array_combine($names, \array_fill(0, \count($names), true)); /** @var array<string, string> $currentlySetVariables */ $currentlySetVariables = \array_intersect_key(\getenv(), \array_flip($names)); $backedUpVariables = \array_merge($possiblyUnsetVariables, $currentlySetVariables);
Mutation Tests (8.1, locked): src/TestVariables.php#L58
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ } public function has(string $name) : bool { - if ('' === $name || \trim($name) !== $name) { + if ('' === $name && \trim($name) !== $name) { throw Exception\InvalidName::create(); } return $this->systemVariables->has($name);
Mutation Tests (8.1, locked): src/TestVariables.php#L59
Escaped Mutant for Mutator "UnwrapTrim": --- Original +++ New @@ @@ } public function has(string $name) : bool { - if ('' === $name || \trim($name) !== $name) { + if ('' === $name || $name !== $name) { throw Exception\InvalidName::create(); } return $this->systemVariables->has($name);
Mutation Tests (8.1, locked): src/TestVariables.php#L61
Escaped Mutant for Mutator "Throw_": --- Original +++ New @@ @@ public function has(string $name) : bool { if ('' === $name || \trim($name) !== $name) { - throw Exception\InvalidName::create(); + Exception\InvalidName::create(); } return $this->systemVariables->has($name); }
Mutation Tests (8.1, locked): src/TestVariables.php#L70
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ } public function get(string $name) : string { - if ('' === $name || \trim($name) !== $name) { + if ('' === $name && \trim($name) !== $name) { throw Exception\InvalidName::create(); } if (!$this->systemVariables->has($name)) {
Mutation Tests (8.1, locked): src/TestVariables.php#L71
Escaped Mutant for Mutator "UnwrapTrim": --- Original +++ New @@ @@ } public function get(string $name) : string { - if ('' === $name || \trim($name) !== $name) { + if ('' === $name || $name !== $name) { throw Exception\InvalidName::create(); } if (!$this->systemVariables->has($name)) {
Mutation Tests (8.1, locked): src/TestVariables.php#L73
Escaped Mutant for Mutator "Throw_": --- Original +++ New @@ @@ public function get(string $name) : string { if ('' === $name || \trim($name) !== $name) { - throw Exception\InvalidName::create(); + Exception\InvalidName::create(); } if (!$this->systemVariables->has($name)) { throw Exception\NotSet::name($name);
Mutation Tests (8.1, locked): src/TestVariables.php#L77
Escaped Mutant for Mutator "Throw_": --- Original +++ New @@ @@ throw Exception\InvalidName::create(); } if (!$this->systemVariables->has($name)) { - throw Exception\NotSet::name($name); + Exception\NotSet::name($name); } return $this->systemVariables->get($name); }