예제 #1
0
 /**
  * {@inheritDoc}
  */
 public function all()
 {
     $queues = array();
     foreach ($this->adapter->all() as $queueName) {
         $queues[$queueName] = $this->createQueue($queueName);
     }
     return $queues;
 }
예제 #2
0
 function it_constructs_queue_names_in_to_queue_objects(QueueRegistryAdapterInterface $adapter, QueueFactoryInterface $factory, QueueInterface $queue)
 {
     $adapter->all()->willReturn(array('important-things'));
     $factory->createQueue('important-things')->willReturn($queue);
     $this->all()->shouldReturn(array('important-things' => $queue));
 }