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
29
29
30
30
public static function setUpBeforeClass (): void
31
31
{
32
+ self ::requireGrpc ();
32
33
self ::setUpBigtableVars ();
33
34
self ::$ instanceId = self ::createDevInstance (self ::INSTANCE_ID_PREFIX );
34
35
self ::$ tableId = self ::createTable (self ::TABLE_ID_PREFIX );
@@ -79,8 +80,6 @@ public function testWriteIncrement()
79
80
80
81
public function testWriteBatch ()
81
82
{
82
- $ this ->requireGrpc ();
83
-
84
83
$ output = $ this ->runFunctionSnippet ('write_batch ' , [
85
84
self ::$ projectId ,
86
85
self ::$ instanceId ,
Original file line number Diff line number Diff line change 44
44
$ sampleRateHertz = 32000 ;
45
45
$ languageCode = 'en-US ' ;
46
46
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
-
52
47
$ speechClient = new SpeechClient ();
53
48
try {
54
49
$ config = (new RecognitionConfig ())
You can’t perform that action at this time.
0 commit comments