Esempio n. 1
0
 /**
  * @param array $options
  * @throws Exception
  */
 private function validateQueueName(array $options)
 {
     if ($this->worker_config->hasWorkerConfig("worker", $options['queue_name'])) {
         return;
     }
     throw new Exception("Worker named '{$options['queue_name']}' not found.");
 }
Esempio n. 2
0
 /**
  * @covers ::__construct
  * @covers ::getWorkerConfigs
  * @covers ::<private>
  */
 public function testWorkerConfigsCanBeRetrievedMultipleTimes()
 {
     $worker_config = new WorkerConfig($this->queue_config);
     $this->assertSame($worker_config->getWorkerConfigs(), $worker_config->getWorkerConfigs());
 }