mirror of
https://github.com/idanoo/php-resque
synced 2025-07-22 15:39:16 +00:00
2.0.0 Add namespacing + PHP8.0 support (#1)
2.0.0 (2021-02-19) Moved to PSR-4 Namespaced codebase Added more comments throughout Co-Authored-By: idanoo <daniel@m2.nz> Co-Committed-By: idanoo <daniel@m2.nz>
This commit is contained in:
parent
ebec2f7bf7
commit
80d64e79ff
56 changed files with 2215 additions and 1423 deletions
|
@ -1,30 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Resque test case class. Contains setup and teardown methods.
|
||||
*
|
||||
* @package Resque/Tests
|
||||
* @author Chris Boulton <chris@bigcommerce.com>
|
||||
* @license http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
|
||||
class Resque_Tests_TestCase extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
protected $resque;
|
||||
protected $redis;
|
||||
|
||||
public static function setUpBeforeClass(): void
|
||||
{
|
||||
date_default_timezone_set('UTC');
|
||||
}
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
// Setup redis connection for testing.
|
||||
global $redisTestServer;
|
||||
|
||||
$this->redis = new Credis_Client($redisTestServer, '6379');
|
||||
Resque::setBackend($redisTestServer);
|
||||
$this->redis->flushAll();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue