/** * @expectedException \Resque\Component\Core\Exception\ResqueRuntimeException */ public function testCannotSetCurrentJobIfNotNull() { $this->worker->setCurrentJob(new Job()); $this->worker->setCurrentJob(new Job()); }