Exemplo n.º 1
0
 public function testPurge()
 {
     Queue::write('default', 'message');
     Queue::write('default', 'message');
     $result = Queue::purge('default');
     $this->assertTrue($result);
 }
Exemplo n.º 2
0
 /**
  * Performs a task
  *
  * @see li3_queue\Queue::run()
  * @param string $config The configuration to use
  * @return mixed The return value of the task
  */
 public function run($config = 'default')
 {
     return \li3_queue\storage\Queue::run(compact('config'));
 }