mirror of
https://github.com/idanoo/php-resque.git
synced 2024-11-24 09:15:15 +00:00
31 lines
706 B
PHP
31 lines
706 B
PHP
<?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()
|
|
{
|
|
date_default_timezone_set('UTC');
|
|
}
|
|
|
|
public function setUp()
|
|
{
|
|
// Setup redis connection on DB 9 for testing.
|
|
$this->redis = new Redis();
|
|
$this->redis->connect('localhost');
|
|
|
|
Resque::setBackend('localhost');
|
|
$this->redis->flushAll();
|
|
}
|
|
}
|