Skip to content

Update dependency phpunit/phpunit to v12 #1305

Update dependency phpunit/phpunit to v12

Update dependency phpunit/phpunit to v12 #1305

Triggered via push December 8, 2025 09:05
Status Success
Total duration 1m 16s
Artifacts
Matrix: Mutation tests
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Mutation tests (locked, 8.4, ubuntu-latest): src/DefaultWorker.php#L66
Escaped Mutant for Mutator "DecrementInteger": @@ @@ if ($this->shouldStop) { 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->logger?->debug('Worker finished job run ({ranTime}ms)', ['ranTime' => $ranTime]); $this->eventDispatcher->dispatch(new WorkerRunningEvent($this)); if ($this->shouldStop) { - break; + continue; } $sleepFor = max($sleepTimer - $ranTime, 0); if ($sleepFor <= 0) {
Mutation tests (locked, 8.4, ubuntu-latest): src/DefaultWorker.php#L42
Escaped Mutant for Mutator "IncrementInteger": @@ @@ $this->timeMeasure = static fn() => (int) round(microtime(true) * 1000); } /** @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'); $this->eventDispatcher->dispatch(new WorkerStartedEvent($this));
Mutation tests (locked, 8.4, ubuntu-latest): src/DefaultWorker.php#L42
Escaped Mutant for Mutator "DecrementInteger": @@ @@ $this->timeMeasure = static fn() => (int) round(microtime(true) * 1000); } /** @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'); $this->eventDispatcher->dispatch(new WorkerStartedEvent($this));
Mutation tests (locked, 8.4, ubuntu-latest): src/DefaultWorker.php#L38
Escaped Mutant for Mutator "RoundingFamily": @@ @@ /** @param Closure(Closure):void $job */ public function __construct(private readonly Closure $job, 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 */ public function run(int $sleepTimer = 1000): void
Mutation tests (locked, 8.4, ubuntu-latest): src/DefaultWorker.php#L38
Escaped Mutant for Mutator "RoundingFamily": @@ @@ /** @param Closure(Closure):void $job */ public function __construct(private readonly Closure $job, 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 */ public function run(int $sleepTimer = 1000): void
Mutation tests (locked, 8.4, ubuntu-latest): src/DefaultWorker.php#L38
Escaped Mutant for Mutator "IncrementInteger": @@ @@ /** @param Closure(Closure):void $job */ public function __construct(private readonly Closure $job, 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 */ public function run(int $sleepTimer = 1000): void
Mutation tests (locked, 8.4, ubuntu-latest): src/DefaultWorker.php#L38
Escaped Mutant for Mutator "Multiplication": @@ @@ /** @param Closure(Closure):void $job */ public function __construct(private readonly Closure $job, 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 */ public function run(int $sleepTimer = 1000): void
Mutation tests (locked, 8.4, ubuntu-latest): src/DefaultWorker.php#L38
Escaped Mutant for Mutator "DecrementInteger": @@ @@ /** @param Closure(Closure):void $job */ public function __construct(private readonly Closure $job, 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 */ public function run(int $sleepTimer = 1000): void
Mutation tests (locked, 8.4, ubuntu-latest): src/Bytes.php#L39
Escaped Mutant for Mutator "DecrementInteger": @@ @@ if (!preg_match('/^([0-9]+)([a-z]+)?$/i', $string, $matches)) { throw new InvalidFormat($string); } - $number = (int) $matches[1]; + $number = (int) $matches[0]; $unit = strtoupper($matches[2] ?? 'B'); if (!array_key_exists($unit, self::SIZES)) { throw new InvalidFormat($string);