Alex\BehatLauncher\Workspace::tick PHP Method

tick() public method

Verify pending units, and might run new units (if $startNew argument is true).
public tick ( boolean $startNew = false ) : integer
$startNew boolean true to startNew for new runs
return integer number of running units
    public function tick($startNew = false)
    {
        $verify = $this->verifyRunning();
        if ($startNew) {
            $new = $this->startUnits();
            if ($verify + $new == 0) {
                $this->output('no unit to run');
            }
        } else {
            $new = 0;
        }
        return $verify + $new;
    }