/**
  *  @expectedException LaterJob\Exception
  *  @expectedExpectionMessage The path "worker.worker_name" cannot contain an empty value, but got ""
  */
 public function testQueueConfigEmptyWorkerConfigName()
 {
     $config = new WorkerConfig();
     $data = array('worker' => array('jobs_process' => 5, 'mean_runtime' => 60 * 60 * 4, 'cron_script' => '* * * * *', 'job_lock_timeout' => 60 * 60 * 4, 'worker_name' => ''));
     $config->parse($data);
 }
示例#2
0
 public function parseWorkerOptions(array $options, WorkerConfig $worker)
 {
     return $worker->parse($options);
 }