Enhancement: Implement ConcatenatingValueGenerator
#17
Annotations
1 error and 2 warnings
|
src/ConcatenatingValueGenerator.php#L28
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
public function __construct(StringGenerator ...$stringGenerators)
{
$count = \count($stringGenerators);
- if (0 === $count) {
+ if (-1 === $count) {
throw new \InvalidArgumentException('Need at least one generator');
}
$this->firstGenerator = \array_shift($stringGenerators);
|
src/ConcatenatingValueGenerator.php#L46
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
$this->secondGenerator = \array_shift($stringGenerators);
return;
}
- if (2 < $count) {
+ if (2 <= $count) {
$this->secondGenerator = new self(...$stringGenerators);
}
}
|
The logs for this run have expired and are no longer available.
Loading