예제 #1
0
 public function testExec()
 {
     $this->assertNull($this->manager->nextQueue());
     $this->assertTrue($this->manager->createProcess(null));
     $this->manager->setMaxProcesses(0);
     $this->assertFalse($this->manager->createProcess("test"));
 }
예제 #2
0
 /**
  * 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);
 }