Google\Cloud\Tests\PubSub\PubSubClientStub::getConnection PHP 메소드

getConnection() 공개 메소드

public getConnection ( )
    public function getConnection()
    {
        return $this->connection;
    }

Usage Example

 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());
 }