diff options
Diffstat (limited to 'plugins/jobs/tests/Jobs/Beanstalk/ErrorJob.php')
-rw-r--r-- | plugins/jobs/tests/Jobs/Beanstalk/ErrorJob.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/jobs/tests/Jobs/Beanstalk/ErrorJob.php b/plugins/jobs/tests/Jobs/Beanstalk/ErrorJob.php new file mode 100644 index 00000000..c4349871 --- /dev/null +++ b/plugins/jobs/tests/Jobs/Beanstalk/ErrorJob.php @@ -0,0 +1,22 @@ +<?php + +/** + * Spiral Framework. + * + * @license MIT + * @author Anton Titov (Wolfy-J) + */ + +declare(strict_types=1); + +namespace Spiral\Jobs\Tests\Beanstalk; + +use Spiral\Jobs\JobHandler; + +class ErrorJob extends JobHandler +{ + public function invoke(string $id): void + { + throw new \Error('something is wrong'); + } +} |