/** * {@inheritDoc} */ public function all() { $queues = array(); foreach ($this->adapter->all() as $queueName) { $queues[$queueName] = $this->createQueue($queueName); } return $queues; }
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)); }