We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16b2d72 commit a98b908Copy full SHA for a98b908
tests/PHPStan/Parallel/SchedulerTest.php
@@ -55,11 +55,10 @@ public function testSchedule(
55
$schedule = $scheduler->scheduleWork($cpuCores, $files);
56
57
$this->assertSame($expectedNumberOfProcesses, $schedule->getNumberOfProcesses());
58
- $this->assertCount(count($expectedJobSizes), $schedule->getJobs());
59
- foreach ($expectedJobSizes as $i => $expectedJobSize) {
60
- $scheduledJob = $schedule->getJobs()[$i];
61
- $this->assertCount($expectedJobSize, $scheduledJob);
62
- }
+ $jobSizes = array_map(static function (array $job): int {
+ return count($job);
+ }, $schedule->getJobs());
+ $this->assertSame($expectedJobSizes, $jobSizes);
63
}
64
65
0 commit comments