29 lines
434 B
PHP
29 lines
434 B
PHP
|
<?php
|
||
|
|
||
|
require_once('CacheDriverBase.php');
|
||
|
|
||
|
use Aviat\Ion\Cache\Driver\RedisDriver;
|
||
|
|
||
|
class CacheRedisDriverTest extends Ion_TestCase {
|
||
|
use CacheDriverBase;
|
||
|
|
||
|
protected $driver;
|
||
|
|
||
|
public function setUp()
|
||
|
{
|
||
|
parent::setUp();
|
||
|
|
||
|
$this->driver = new RedisDriver($this->container->get('config'));
|
||
|
}
|
||
|
|
||
|
public function tearDown()
|
||
|
{
|
||
|
parent::tearDown();
|
||
|
|
||
|
if ( ! is_null($this->driver))
|
||
|
{
|
||
|
$this->driver->__destruct();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|