コード例 #1
0
ファイル: WorkerTest.php プロジェクト: shonm/php-resque
 public function testResumedWorkerPicksUpJobs()
 {
     $worker = new Worker('*');
     $worker->pauseProcessing();
     Resque::enqueue('jobs', 'Test_Job');
     $worker->work(0);
     $this->assertEquals(0, Stat::get('processed'));
     $worker->unPauseProcessing();
     $worker->work(0);
     $this->assertEquals(1, Stat::get('processed'));
 }