We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c826ce commit e187c96Copy full SHA for e187c96
src/Codeception/Module/Redis.php
@@ -66,6 +66,9 @@ class Redis extends CodeceptionModule
66
*/
67
public function _initialize()
68
{
69
+ if (!class_exists('Predis\Client')) {
70
+ throw new ModuleException($this, 'This module requires Predis library to be installed. Please add "predis/predis": "^1.0" to composer.json');
71
+ }
72
try {
73
$this->driver = new RedisDriver([
74
'host' => $this->config['host'],
0 commit comments