Welcome Guest, Not a member yet? Register   Sign In
[question] Redis cache driver thrown exeption in phpunit?
#4

(This post was last modified: 10-26-2015, 07:41 PM by feryardiant.)

(10-26-2015, 02:39 PM)trsw Wrote: Hi, feryardiant.

Now I wrote like this:


Code:
// application/libraries/Cache/drivers/MY_Cache_redis.php
public function __destruct()
{
 if ($this->_redis)
 {
   try {
     $this->_redis->close();
   } catch (Exception $e) {
     // Do nothing
     // log_message('info', $e);
   }
 }
}

Hi, trsw.

Thank you, it works and I really hope it will implemented by the team. Anyway, it still couldn't work with PHPunit.

Code:
Unable to locate the specified class: Cache.php

for now I can just disable it

   
Here My blog  Big Grin
Reply


Messages In This Thread
RE: [question] Redis cache driver thrown exeption in phpunit? - by feryardiant - 10-26-2015, 07:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB