You are here

protected function Redis_Tests_Lock_PredisLockingUnitTestCase::getClientInterface in Redis 7.2

Same name and namespace in other branches
  1. 7.3 lib/Redis/Tests/Lock/PredisLockingUnitTestCase.test \Redis_Tests_Lock_PredisLockingUnitTestCase::getClientInterface()

Set up the Redis configuration

Set up the needed variables using variable_set() if necessary.

Return value

string Client interface or null if not exists

Overrides Redis_Tests_AbstractUnitTestCase::getClientInterface

File

lib/Redis/Tests/Lock/PredisLockingUnitTestCase.test, line 14

Class

Redis_Tests_Lock_PredisLockingUnitTestCase

Code

protected function getClientInterface() {
  Redis_Client_Predis::setPredisAutoload();
  if (class_exists('Predis\\Client')) {
    return 'Predis';
  }
}