-2

I am using phpunit and want to use Redis() with it, but when I do something like:

phpunit --verbose UnitTest.php

It gives something back like:

PHP Fatal error:  Class 'Redis' not found in......
user645402
  • 737
  • 1
  • 16
  • 34

2 Answers2

1

oops. didn't have redis PHP extension installed

yum install php-redis
user645402
  • 737
  • 1
  • 16
  • 34
0

I would install it as follows:

pecl install redis

Just a note: If you have php-redis installed with php.ini entry correctly added, you need not have redis client installed on your app server to connect to a remote redis server. (y)

Manu Manjunath
  • 6,201
  • 3
  • 32
  • 31