composer(deps-dev): bump ergebnis/data-provider from 3.3.0 to 3.4.0 #1856
integrate.yaml
on: pull_request
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
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);
}
|