File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed
Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change 3131
3232# [END bigquery_simple_app_deps]
3333
34- // get the project ID as the first argument
35- if (2 != count ($ argv )) {
36- die ("Usage: php stackoverflow.php YOUR_PROJECT_ID \n" );
37- }
38-
39- $ projectId = $ argv [1 ];
40-
4134# [START bigquery_simple_app_client]
42- $ bigQuery = new BigQueryClient ([
43- 'projectId ' => $ projectId ,
44- ]);
35+ $ bigQuery = new BigQueryClient ();
4536# [END bigquery_simple_app_client]
4637# [START bigquery_simple_app_query]
4738$ query = <<<ENDSQL
Original file line number Diff line number Diff line change @@ -21,12 +21,6 @@ class stackoverflowTest extends TestCase
2121{
2222 public function testStackoverflow ()
2323 {
24- global $ argv ;
25- if (!$ projectId = getenv ('GOOGLE_PROJECT_ID ' )) {
26- $ this ->markTestSkipped ('GOOGLE_PROJECT_ID must be set. ' );
27- }
28- $ argv [1 ] = $ projectId ;
29-
3024 // Invoke stackoverflow.php
3125 include __DIR__ . '/../stackoverflow.php ' ;
3226
You can’t perform that action at this time.
0 commit comments