getConnection() public method

public getConnection ( )
 public function testUsesGrpcConnectionByDefault()
 {
     if (!extension_loaded('grpc')) {
         $this->markTestSkipped('Must have the grpc extension installed to run this test.');
     }
     $client = new PubSubClientStub(['projectId' => 'project']);
     $this->assertInstanceOf(Grpc::class, $client->getConnection());
 }