public function RedisMock::setOption

Set client option.

Parameters

integer $name:

integer $value:

Return value

boolean

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Profiler/Mock/RedisMock.php, line 59

Class

RedisMock
RedisMock for simulating Redis extension in tests.

Namespace

Symfony\Component\HttpKernel\Tests\Profiler\Mock

Code

public function setOption($name, $value) {
  if (!$this->connected) {
    return false;
  }
  return true;
}