Exemplo 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.");
 }
Exemplo 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());
 }