Example #1
0
 protected function setUp()
 {
     if (empty($this->host)) {
         $this->host = Environment::get('resque.host');
     }
     if (empty($this->host)) {
         $this->host = 'localhost';
     }
     if (empty($this->port)) {
         $this->port = Environment::get('resque.port');
     }
     if (empty($this->port)) {
         $this->port = 6379;
     }
     ResqueProxy::setBackend($this->host . ':' . $this->port);
     $this->queues = ResqueProxy::queues();
 }