Update for PHP7.4 compatibility + UnitTests

This commit is contained in:
Daniel Mason 2020-04-11 09:24:18 +12:00
parent 493c12846a
commit b99217f2c0
9 changed files with 51 additions and 75 deletions

View file

@ -13,7 +13,7 @@ class Resque_Tests_EventTest extends Resque_Tests_TestCase
private $callbacksHit = [];
private $worker;
public function setUp()
public function setUp(): void
{
Test_Job::$called = false;
@ -23,7 +23,7 @@ class Resque_Tests_EventTest extends Resque_Tests_TestCase
$this->worker->registerWorker();
}
public function tearDown()
public function tearDown(): void
{
Resque_Event::clearListeners();
$this->callbacksHit = [];