Update Redis tests to work with gitlab ci

This commit is contained in:
Timothy Warren 2016-07-22 17:48:13 -04:00
parent fa22f7b493
commit 96d3dfdbb4
2 changed files with 3 additions and 2 deletions

View File

@ -13,12 +13,13 @@
namespace Aviat\Ion\Cache\Driver; namespace Aviat\Ion\Cache\Driver;
use Aviat\Ion\Di\ContainerInterface; use Aviat\Ion\Di\ContainerInterface;
use Aviat\Ion\Cache\CacheDriverInterface;
use Aviat\AnimeClient\Model\DB; use Aviat\AnimeClient\Model\DB;
/** /**
* Driver for caching via a traditional SQL database * Driver for caching via a traditional SQL database
*/ */
class SQLDriver extends DB implements \Aviat\Ion\Cache\CacheDriverInterface { class SQLDriver extends DB implements CacheDriverInterface {
/** /**
* The query builder object * The query builder object

View File

@ -19,7 +19,7 @@ class CacheRedisDriverTestTwo extends AnimeClient_TestCase {
$container = new Container(); $container = new Container();
$container->set('config', new Config([ $container->set('config', new Config([
'redis' => [ 'redis' => [
'host' => 'localhost', 'host' => (array_key_exists('REDIS_HOST', $_ENV)) ? $_ENV['REDIS_HOST'] : 'localhost',
'port' => 6379, 'port' => 6379,
'password' => '', 'password' => '',
'database' => 13, 'database' => 13,