mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 21:52:21 +00:00
2.1.0 (2023-02-07) - PHP 8.2 compatibility
This commit is contained in:
parent
ef82313d4e
commit
3c7e20e364
11 changed files with 200 additions and 15 deletions
|
@ -35,6 +35,9 @@ if (function_exists('pcntl_signal')) {
|
|||
class TestJob
|
||||
{
|
||||
public static $called = false;
|
||||
public $args = false;
|
||||
public $queue;
|
||||
public $job;
|
||||
|
||||
public function perform()
|
||||
{
|
||||
|
@ -48,6 +51,11 @@ class FailingJobException extends \Exception
|
|||
|
||||
class FailingJob
|
||||
{
|
||||
public static $called = false;
|
||||
public $args = false;
|
||||
public $queue;
|
||||
public $job;
|
||||
|
||||
public function perform()
|
||||
{
|
||||
throw new FailingJobException('Message!');
|
||||
|
@ -62,6 +70,8 @@ class TestJobWithSetUp
|
|||
{
|
||||
public static $called = false;
|
||||
public $args = false;
|
||||
public $queue;
|
||||
public $job;
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
|
@ -78,6 +88,8 @@ class TestJobWithTearDown
|
|||
{
|
||||
public static $called = false;
|
||||
public $args = false;
|
||||
public $queue;
|
||||
public $job;
|
||||
|
||||
public function perform()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue