ParaTest\Runners\PHPUnit\Runner::fillRunQueue PHP Méthode

fillRunQueue() private méthode

This method removes ExecutableTest objects from the pending collection and adds them to the running collection. It is also in charge of recycling and acquiring available test tokens for use
private fillRunQueue ( )
    private function fillRunQueue()
    {
        $opts = $this->options;
        while (sizeof($this->pending) && sizeof($this->running) < $opts->processes) {
            $tokenData = $this->getNextAvailableToken();
            if ($tokenData !== false) {
                $this->acquireToken($tokenData['token']);
                $env = array('TEST_TOKEN' => $tokenData['token'], 'UNIQUE_TEST_TOKEN' => $tokenData['unique']) + Habitat::getAll();
                $this->running[$tokenData['token']] = array_shift($this->pending)->run($opts->phpunit, $opts->filtered, $env);
            }
        }
    }