You are here

class Redis_Tests_Client_MockFactory in Redis 7.3

Hierarchy

Expanded class hierarchy of Redis_Tests_Client_MockFactory

File

lib/Redis/Tests/Client/MockFactory.php, line 3

View source
class Redis_Tests_Client_MockFactory implements Redis_Client_FactoryInterface {
  public function getClient($options = array()) {
    return (object) $options;
  }
  public function getName() {
    return 'Mock';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Redis_Tests_Client_MockFactory::getClient public function Get the connected client instance. Overrides Redis_Client_FactoryInterface::getClient
Redis_Tests_Client_MockFactory::getName public function Get underlaying library name used. Overrides Redis_Client_FactoryInterface::getName