File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ final class WriteTest extends TestCase
2929
3030 public static function setUpBeforeClass (): void
3131 {
32+ self ::requireGrpc ();
3233 self ::setUpBigtableVars ();
3334 self ::$ instanceId = self ::createDevInstance (self ::INSTANCE_ID_PREFIX );
3435 self ::$ tableId = self ::createTable (self ::TABLE_ID_PREFIX );
@@ -79,8 +80,6 @@ public function testWriteIncrement()
7980
8081 public function testWriteBatch ()
8182 {
82- $ this ->requireGrpc ();
83-
8483 $ output = $ this ->runFunctionSnippet ('write_batch ' , [
8584 self ::$ projectId ,
8685 self ::$ instanceId ,
Original file line number Diff line number Diff line change 4444$ sampleRateHertz = 32000 ;
4545$ languageCode = 'en-US ' ;
4646
47- // the gRPC extension is required for streaming
48- if (!extension_loaded ('grpc ' )) {
49- throw new \Exception ('Install the grpc extension (pecl install grpc) ' );
50- }
51-
5247$ speechClient = new SpeechClient ();
5348try {
5449 $ config = (new RecognitionConfig ())
You can’t perform that action at this time.
0 commit comments