private function assignAllPendingTests()
{
$phpunit = $this->options->phpunit;
$phpunitOptions = $this->options->filtered;
$phpunitOptions['no-globals-backup'] = null;
while (count($this->pending)) {
$this->waitForStreamsToChange($this->streams);
foreach ($this->progressedWorkers() as $worker) {
if ($worker->isFree()) {
$this->flushWorker($worker);
$pending = array_shift($this->pending);
if ($pending) {
$worker->assign($pending, $phpunit, $phpunitOptions);
}
}
}
}
}