Source of file TestExceptingJob.php
Size: 0,748 Bytes - Last Modified: 2021-12-23T10:33:37+00:00
/var/www/docs.ssmods.com/process/src/tests/QueuedJobsTest/TestExceptingJob.php
123456789101112131415161718192021222324252627282930313233343536373839 | <?php namespace Symbiote\QueuedJobs\Tests\QueuedJobsTest; use Symbiote\QueuedJobs\Services\AbstractQueuedJob; use Symbiote\QueuedJobs\Services\QueuedJob; use Exception; class TestExceptingJob extends AbstractQueuedJob implements QueuedJob { private $type = QueuedJob::QUEUED; public function __construct($type = null) { $this->type = QueuedJob::IMMEDIATE; $this->times = array(); } public function getJobType() { return $this->type; } public function getTitle() { return "A Test job throwing exceptions"; } public function setup() { $this->totalSteps = 1; } public function process() { throw new Exception("just excepted"); } } |