Update dependency infection/infection to ^0.32.0 #1327
Annotations
10 warnings
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L66
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
break;
}
- $sleepFor = max($sleepTimer - $ranTime, 0);
+ $sleepFor = max($sleepTimer - $ranTime, -1);
if ($sleepFor <= 0) {
continue;
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L63
Escaped Mutant for Mutator "Break_":
@@ @@
$this->eventDispatcher->dispatch(new WorkerRunningEvent($this));
if ($this->shouldStop) {
- break;
+ continue;
}
$sleepFor = max($sleepTimer - $ranTime, 0);
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L42
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
}
/** @param positive-int|0 $sleepTimer in milliseconds */
- public function run(int $sleepTimer = 1000): void
+ public function run(int $sleepTimer = 1001): void
{
$this->logger?->debug('Worker starting');
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L42
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
}
/** @param positive-int|0 $sleepTimer in milliseconds */
- public function run(int $sleepTimer = 1000): void
+ public function run(int $sleepTimer = 999): void
{
$this->logger?->debug('Worker starting');
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L38
Escaped Mutant for Mutator "RoundingFamily":
@@ @@
private readonly EventDispatcherInterface $eventDispatcher,
private readonly LoggerInterface|null $logger = null,
) {
- $this->timeMeasure = static fn () => (int)round(microtime(true) * 1000);
+ $this->timeMeasure = static fn () => (int)floor(microtime(true) * 1000);
}
/** @param positive-int|0 $sleepTimer in milliseconds */
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L38
Escaped Mutant for Mutator "RoundingFamily":
@@ @@
private readonly EventDispatcherInterface $eventDispatcher,
private readonly LoggerInterface|null $logger = null,
) {
- $this->timeMeasure = static fn () => (int)round(microtime(true) * 1000);
+ $this->timeMeasure = static fn () => (int)ceil(microtime(true) * 1000);
}
/** @param positive-int|0 $sleepTimer in milliseconds */
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L38
Escaped Mutant for Mutator "Multiplication":
@@ @@
private readonly EventDispatcherInterface $eventDispatcher,
private readonly LoggerInterface|null $logger = null,
) {
- $this->timeMeasure = static fn () => (int)round(microtime(true) * 1000);
+ $this->timeMeasure = static fn () => (int)round(microtime(true) / 1000);
}
/** @param positive-int|0 $sleepTimer in milliseconds */
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L38
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
private readonly EventDispatcherInterface $eventDispatcher,
private readonly LoggerInterface|null $logger = null,
) {
- $this->timeMeasure = static fn () => (int)round(microtime(true) * 1000);
+ $this->timeMeasure = static fn () => (int)round(microtime(true) * 999);
}
/** @param positive-int|0 $sleepTimer in milliseconds */
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L38
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
private readonly EventDispatcherInterface $eventDispatcher,
private readonly LoggerInterface|null $logger = null,
) {
- $this->timeMeasure = static fn () => (int)round(microtime(true) * 1000);
+ $this->timeMeasure = static fn () => (int)round(microtime(true) * 1001);
}
/** @param positive-int|0 $sleepTimer in milliseconds */
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Bytes.php#L39
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
throw new InvalidFormat($string);
}
- $number = (int)$matches[1];
+ $number = (int)$matches[0];
$unit = strtoupper($matches[2] ?? 'B');
if (!array_key_exists($unit, self::SIZES)) {
|