Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
2 changed files with 38 additions and 14 deletions
Showing only changes of commit c0c90eb565 - Show all commits

View File

@ -15,22 +15,33 @@ class CacheRedisDriverTestTwo extends AnimeClient_TestCase {
{
parent::setUp();
// Setup config with port and password
$container = new Container();
$container->set('config', new Config([
'redis' => [
'host' => 'localhost',
'port' => 6379,
'password' => '',
'database' => 13,
]
]));
$this->driver = new RedisDriver($container);
if ( ! class_exists('Redis'))
{
$this->markTestSkipped('Redis extension not installed');
}
else
{
// Setup config with port and password
$container = new Container();
$container->set('config', new Config([
'redis' => [
'host' => 'localhost',
'port' => 6379,
'password' => '',
'database' => 13,
]
]));
$this->driver = new RedisDriver($container);
}
}
public function tearDown()
{
parent::tearDown();
$this->driver->__destruct();
if ( ! is_null($this->driver))
{
$this->driver->__destruct();
}
}
}

View File

@ -12,12 +12,25 @@ class CacheRedisDriverTest extends AnimeClient_TestCase {
public function setUp()
{
parent::setUp();
$this->driver = new RedisDriver($this->container);
if ( ! class_exists('Redis'))
{
$this->markTestSkipped('Redis extension not installed');
}
else
{
$this->driver = new RedisDriver($this->container);
}
}
public function tearDown()
{
parent::tearDown();
$this->driver->__destruct();
if ( ! is_null($this->driver))
{
$this->driver->__destruct();
}
}
}