예제 #1
0
 public function testResumedWorkerPicksUpJobs()
 {
     return self::markTestSkipped();
     $this->worker->setLogger(new Resque_Log());
     $this->worker->pause();
     Resque::enqueue('jobs', 'Test_Job');
     $this->worker->work(0);
     $this->assertEquals(0, Resque_Stat::get('processed'));
     $this->worker->unPauseProcessing();
     $this->worker->work(0);
     $this->assertEquals(1, Resque_Stat::get('processed'));
 }