2016-08-04 14:55:37 -04:00
|
|
|
<?php
|
|
|
|
|
2016-08-29 11:34:25 -04:00
|
|
|
namespace Aviat\Ion\Tests\Cache\Driver;
|
2016-08-04 14:55:37 -04:00
|
|
|
|
|
|
|
use Aviat\Ion\Cache\Driver\RedisDriver;
|
|
|
|
|
2016-08-29 11:34:25 -04:00
|
|
|
class CacheRedisDriverTest extends \Ion_TestCase {
|
2016-08-04 14:55:37 -04:00
|
|
|
use CacheDriverBase;
|
2016-08-29 11:34:25 -04:00
|
|
|
|
2016-08-04 14:55:37 -04:00
|
|
|
protected $driver;
|
2016-08-29 11:34:25 -04:00
|
|
|
|
2016-08-04 14:55:37 -04:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|