/** * Fire the job. * * @return void */ public function fire($job, $data) { try { // Send the data to Sentry. $this->raven->sendError($data); // Delete the processed job. $job->delete(); } catch (\Exception $e) { // Release Job with delay. $job->release(30); } }
public function test_sending_error_no_server() { $client = new Client([]); $this->assertNull($client->sendError([])); }