diff --git a/bigquery/quickstart/composer.json b/bigquery/quickstart/composer.json deleted file mode 100644 index 401c25a1e6..0000000000 --- a/bigquery/quickstart/composer.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "require": { - "php": ">=5.4", - "google/cloud-bigquery": "^1.0" - } -} diff --git a/bigquery/quickstart/phpunit.xml.dist b/bigquery/quickstart/phpunit.xml.dist deleted file mode 100644 index 56a4c7daac..0000000000 --- a/bigquery/quickstart/phpunit.xml.dist +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - test - - - - - - - - quickstart.php - - ./vendor - - - - diff --git a/bigquery/quickstart/quickstart.php b/bigquery/quickstart/quickstart.php deleted file mode 100644 index 3113e5d0e7..0000000000 --- a/bigquery/quickstart/quickstart.php +++ /dev/null @@ -1,41 +0,0 @@ - $projectId -]); - -# The name for the new dataset -$datasetName = 'my_new_dataset'; - -# Creates the new dataset -$dataset = $bigquery->createDataset($datasetName); - -echo 'Dataset ' . $dataset->id() . ' created.'; -# [END bigquery_quickstart] -return $dataset; diff --git a/bigquery/quickstart/test/quickstartTest.php b/bigquery/quickstart/test/quickstartTest.php deleted file mode 100644 index 6afbef1408..0000000000 --- a/bigquery/quickstart/test/quickstartTest.php +++ /dev/null @@ -1,56 +0,0 @@ -markTestSkipped('GOOGLE_PROJECT_ID must be set.'); - } - - $datasetId = 'my_new_dataset_' . time(); - $file = sys_get_temp_dir() . '/bigquery_quickstart.php'; - $contents = file_get_contents(__DIR__ . '/../quickstart.php'); - $contents = str_replace( - ['YOUR_PROJECT_ID', 'my_new_dataset', '__DIR__'], - [$projectId, $datasetId, sprintf('"%s/.."', __DIR__)], - $contents - ); - file_put_contents($file, $contents); - - // Invoke quickstart.php - ob_start(); - $this->dataset = include $file; - $output = ob_get_clean(); - - // Make sure it looks correct - $this->assertInstanceOf('Google\Cloud\BigQuery\Dataset', $this->dataset); - $this->assertEquals($datasetId, $this->dataset->id()); - } - - public function tearDown() - { - if ($this->dataset) { - $this->dataset->delete(); - } - } -}