public function setUp()
 {
     parent::setUp();
     $this->redis = $this->createRedisBackend();
     $this->lock = new Queue\Lock($this->redis);
     $this->queue = new Queue\Manager($this->redis, $this->lock);
     $this->queue->setNumberOfAvailableQueues(1);
     $this->queue->setNumberOfRequestsToProcessAtSameTime(3);
     $this->processor = $this->createProcessor();
 }
 public static function makeQueueManager(Backend $backend)
 {
     $settings = self::getSettings();
     $lock = self::makeLock($backend);
     $manager = new Manager($backend, $lock);
     $manager->setNumberOfAvailableQueues($settings->numQueueWorkers->getValue());
     $manager->setNumberOfRequestsToProcessAtSameTime($settings->numRequestsToProcess->getValue());
     return $manager;
 }