Exemple #1
0
 /**
  * @param string $queue_name
  */
 private function checkQueueName($queue_name)
 {
     $this->adapter_factory->getConsumer($queue_name);
 }
Exemple #2
0
 /**
  * @param array $expected_job
  * @param FactoryInterface $mq_adapter
  */
 private function assertBufferedJobEquals(array $expected_job, FactoryInterface $mq_adapter)
 {
     $consumer = $mq_adapter->getConsumer('bufferer-default');
     $consumer->consumeMessage(function (IncomingMessage $message) use($expected_job) {
         $received_job = $message->getContent();
         $this->assertEquals($expected_job, ['name' => $received_job['name'], 'params' => $received_job['params'], 'options' => $received_job['options']]);
     });
 }