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