![]() |
[question] Redis cache driver thrown exeption in phpunit? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: [question] Redis cache driver thrown exeption in phpunit? (/showthread.php?tid=63397) |
[question] Redis cache driver thrown exeption in phpunit? - feryardiant - 10-26-2015 Anyone here had experience using Redis cache driver (CI v3.0.2) and test it using PHPUnit (v4.8.16)? I just tried it as described here and it seems works well in browser, but when I go to my terminal and try to test it using phpunit I got this: Code: Fatal error: Uncaught exception 'RedisException' with message 'Redis server went away' in /path/to/my-app/system/libraries/Cache/drivers/Cache_redis.php on line 317 Here my environment: Code: $ redis-cli --version and here my 'application/config/redis.php' file: PHP Code: <?php RE: [question] Redis cache driver thrown exeption in phpunit? - feryardiant - 10-26-2015 Noticed that i've repost this thread but seems still no solution yet ![]() RE: [question] Redis cache driver thrown exeption in phpunit? - trsw - 10-26-2015 Hi, feryardiant. Now I wrote like this: Code: // application/libraries/Cache/drivers/MY_Cache_redis.php RE: [question] Redis cache driver thrown exeption in phpunit? - feryardiant - 10-26-2015 (10-26-2015, 02:39 PM)trsw Wrote: Hi, feryardiant. 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 |