public getClient ( ) : Predis\ClientInterface | ||
return | Predis\ClientInterface |
public function getClient()
{
return $this->client;
}
/** * @group disconnected */ public function testGetUnderlyingClientInstance() { $connection = $this->getMock('Predis\\Connection\\NodeConnectionInterface'); $client = new Client($connection); $pubsub = new PubSubConsumer($client); $this->assertSame($client, $pubsub->getClient()); }