public function testExec()
 {
     $this->assertNull($this->manager->nextQueue());
     $this->assertTrue($this->manager->createProcess(null));
     $this->manager->setMaxProcesses(0);
     $this->assertFalse($this->manager->createProcess("test"));
 }
 public function setUp()
 {
     $this->createApplication();
     LightQueueManager::instance('file');
 }
 public function __destruct()
 {
     LightQueueManager::instance()->jobDestruct($this->queue);
 }
 /**
  * Pop the next job off of the queue.
  *
  * @param  string $queue
  *
  * @return \Illuminate\Queue\Jobs\Job|null
  */
 public function pop($queue = null)
 {
     return $this->manager->nextQueue($queue);
 }