From 363b7dab5d73d3a57fb495daf0212df71afa2c1d Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Mon, 23 Jan 2012 23:18:29 +0100 Subject: Removed test_redis controller. --- application/controllers/test_redis.php | 43 ---------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 application/controllers/test_redis.php (limited to 'application') diff --git a/application/controllers/test_redis.php b/application/controllers/test_redis.php deleted file mode 100644 index b84c652d7..000000000 --- a/application/controllers/test_redis.php +++ /dev/null @@ -1,43 +0,0 @@ -load->library('unit_test'); - - $this->load->driver('cache', array('adapter' => 'redis')); - } - - function index() - { - $this->unit->run($this->cache->redis->is_supported(), 'is_true'); - - $this->unit->run($this->cache->redis->save('foo', 'bar'), 'is_true'); - - $this->unit->run($this->cache->redis->get('foo'), 'bar'); - - $this->unit->run($this->cache->redis->delete('foo'), 'is_true'); - - $this->unit->run($this->cache->redis->save('foo', 'bar', 1800), 'is_true'); - - $this->unit->run( - $this->cache->redis->get_metadata('foo'), - array( - 'data' => 'bar', - 'expire' => time() + 1800 - ) - ); - - $this->unit->run($this->cache->redis->clean(), 'is_true'); - - $this->unit->run($this->cache->redis->get('foo'), 'is_false'); - - $this->unit->run($this->cache->redis->cache_info(), 'is_array'); - - echo $this->unit->report(); - } - -} \ No newline at end of file -- cgit v1.2.3-24-g4f1b