mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Fix bootstrap.php for tests
This commit is contained in:
parent
d702f498bf
commit
3b4d2e4c1f
6 changed files with 58 additions and 77 deletions
|
@ -21,8 +21,10 @@ class Resque_Tests_TestCase extends PHPUnit\Framework\TestCase
|
|||
public function setUp()
|
||||
{
|
||||
// Setup redis connection for testing.
|
||||
$this->redis = new Credis_Client('localhost', '6379');
|
||||
Resque::setBackend('localhost');
|
||||
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