From 01d924688c2950c4c8709c40e1ee22639ccd95c0 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 11 Jan 2018 11:59:33 -0800 Subject: [PATCH 01/59] Manual changes for restructure --- composer.json | 70 ++++++++++++++++++- phpunit-snippets.xml.dist | 2 +- phpunit-system.xml.dist | 2 +- phpunit.xml.dist | 2 +- tests/snippets/Speech/SpeechClientTest.php | 2 +- tests/snippets/bootstrap.php | 29 +++++++- tests/system/BigQuery/BigQueryTestCase.php | 2 +- .../system/BigQuery/LoadDataAndQueryTest.php | 10 +-- tests/unit/Core/ServicesNotFoundTest.php | 31 ++++++++ tests/unit/Debugger/BreakpointTest.php | 2 +- .../Debugger/MatchingFileIteratorTest.php | 2 +- .../Debugger/SourceLocationResolverTest.php | 6 +- tests/unit/Speech/SpeechClientTest.php | 2 +- tests/unit/Storage/Connection/RestTest.php | 2 +- 14 files changed, 143 insertions(+), 21 deletions(-) diff --git a/composer.json b/composer.json index a8722c32d738..eb9cc6a76943 100644 --- a/composer.json +++ b/composer.json @@ -95,18 +95,82 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\": "src" + "Google\\Cloud\\BigQuery\\": "BigQuery/src", + "Google\\Cloud\\Bigtable\\": "Bigtable/src", + "Google\\Cloud\\Container\\": "Container/src", + "Google\\Cloud\\Core\\": "Core/src", + "Google\\Cloud\\Dataproc\\": "Dataproc/src", + "Google\\Cloud\\Datastore\\": "Datastore/src", + "Google\\Cloud\\Debugger\\": "Debugger/src", + "Google\\Cloud\\Dlp\\": "Dlp/src", + "Google\\Cloud\\ErrorReporting\\": "ErrorReporting/src", + "Google\\Cloud\\Firestore\\": "Firestore/src", + "Google\\Cloud\\Language\\": "Language/src", + "Google\\Cloud\\Logging\\": "Logging/src", + "Google\\Cloud\\Monitoring\\": "Monitoring/src", + "Google\\Cloud\\OsLogin\\": "OsLogin/src", + "Google\\Cloud\\PubSub\\": "PubSub/src", + "Google\\Cloud\\Spanner\\": "Spanner/src", + "Google\\Cloud\\Speech\\": "Speech/src", + "Google\\Cloud\\Storage\\": "Storage/src", + "Google\\Cloud\\Trace\\": "Trace/src", + "Google\\Cloud\\Translate\\": "Translate/src", + "Google\\Cloud\\VideoIntelligence\\": "VideoIntelligence/src", + "Google\\Cloud\\Vision\\": "Vision/src" } }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Dev\\": "dev/src", + "Google\\Cloud\\": "src", "Google\\Cloud\\Tests\\": "tests", "Google\\Cloud\\Tests\\Common\\": "tests/common", "Google\\Cloud\\Tests\\Perf\\": "tests/perf", "Google\\Cloud\\Tests\\Snippets\\": "tests/snippets", "Google\\Cloud\\Tests\\System\\": "tests/system", - "Google\\Cloud\\Tests\\Unit\\": "tests/unit" + "Google\\Cloud\\Tests\\Unit\\BigQuery\\": "BigQuery/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Bigtable\\": "Bigtable/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Container\\": "Container/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Core\\": "Core/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Dataproc\\": "Dataproc/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Datastore\\": "Datastore/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Debugger\\": "Debugger/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Dlp\\": "Dlp/tests/unit", + "Google\\Cloud\\Tests\\Unit\\ErrorReporting\\": "ErrorReporting/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Firestore\\": "Firestore/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Language\\": "Language/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Logging\\": "Logging/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Monitoring\\": "Monitoring/tests/unit", + "Google\\Cloud\\Tests\\Unit\\OsLogin\\": "OsLogin/tests/unit", + "Google\\Cloud\\Tests\\Unit\\PubSub\\": "PubSub/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Spanner\\": "Spanner/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Speech\\": "Speech/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Storage\\": "Storage/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Trace\\": "Trace/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Translate\\": "Translate/tests/unit", + "Google\\Cloud\\Tests\\Unit\\VideoIntelligence\\": "VideoIntelligence/tests/unit", + "Google\\Cloud\\Tests\\Unit\\Vision\\": "Vision/tests/unit", + "Google\\Cloud\\Tests\\System\\BigQuery\\": "BigQuery/tests/system", + "Google\\Cloud\\Tests\\System\\Bigtable\\": "Bigtable/tests/system", + "Google\\Cloud\\Tests\\System\\Container\\": "Container/tests/system", + "Google\\Cloud\\Tests\\System\\Core\\": "Core/tests/system", + "Google\\Cloud\\Tests\\System\\Dataproc\\": "Dataproc/tests/system", + "Google\\Cloud\\Tests\\System\\Datastore\\": "Datastore/tests/system", + "Google\\Cloud\\Tests\\System\\Debugger\\": "Debugger/tests/system", + "Google\\Cloud\\Tests\\System\\Dlp\\": "Dlp/tests/system", + "Google\\Cloud\\Tests\\System\\ErrorReporting\\": "ErrorReporting/tests/system", + "Google\\Cloud\\Tests\\System\\Firestore\\": "Firestore/tests/system", + "Google\\Cloud\\Tests\\System\\Language\\": "Language/tests/system", + "Google\\Cloud\\Tests\\System\\Logging\\": "Logging/tests/system", + "Google\\Cloud\\Tests\\System\\Monitoring\\": "Monitoring/tests/system", + "Google\\Cloud\\Tests\\System\\OsLogin\\": "OsLogin/tests/system", + "Google\\Cloud\\Tests\\System\\PubSub\\": "PubSub/tests/system", + "Google\\Cloud\\Tests\\System\\Spanner\\": "Spanner/tests/system", + "Google\\Cloud\\Tests\\System\\Speech\\": "Speech/tests/system", + "Google\\Cloud\\Tests\\System\\Storage\\": "Storage/tests/system", + "Google\\Cloud\\Tests\\System\\Trace\\": "Trace/tests/system", + "Google\\Cloud\\Tests\\System\\Translate\\": "Translate/tests/system", + "Google\\Cloud\\Tests\\System\\VideoIntelligence\\": "VideoIntelligence/tests/system", + "Google\\Cloud\\Tests\\System\\Vision\\": "Vision/tests/system" }, "classmap": [ "tests/conformance-fixtures" diff --git a/phpunit-snippets.xml.dist b/phpunit-snippets.xml.dist index 6a3529b5faff..adf4adbeb5a3 100644 --- a/phpunit-snippets.xml.dist +++ b/phpunit-snippets.xml.dist @@ -2,7 +2,7 @@ - tests/snippets + */tests/snippets diff --git a/phpunit-system.xml.dist b/phpunit-system.xml.dist index fe00c67b1d96..adedf6efa577 100644 --- a/phpunit-system.xml.dist +++ b/phpunit-system.xml.dist @@ -2,7 +2,7 @@ - tests/system + */tests/system diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 443b0c12f1e3..046b30b6942b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -2,7 +2,7 @@ - tests/unit + */tests/unit diff --git a/tests/snippets/Speech/SpeechClientTest.php b/tests/snippets/Speech/SpeechClientTest.php index 09a5c6c2fb17..2df05e966545 100644 --- a/tests/snippets/Speech/SpeechClientTest.php +++ b/tests/snippets/Speech/SpeechClientTest.php @@ -34,7 +34,7 @@ class SpeechClientTest extends SnippetTestCase public function setUp() { - $this->testFile = "'" . __DIR__ . '/../fixtures/Speech/demo.flac' . "'"; + $this->testFile = "'" . __DIR__ . '/fixtures/demo.flac' . "'"; $this->connection = $this->prophesize(ConnectionInterface::class); $this->client = \Google\Cloud\Core\Testing\TestHelpers::stub(SpeechClient::class, [ ['languageCode' => 'en-US'] diff --git a/tests/snippets/bootstrap.php b/tests/snippets/bootstrap.php index 9112a77d1727..dfd13f96fd8f 100644 --- a/tests/snippets/bootstrap.php +++ b/tests/snippets/bootstrap.php @@ -11,8 +11,35 @@ require __DIR__ . '/../../vendor/autoload.php'; +class ExcludeFilter extends FilterIterator { + + private $excludeDirs; + + public function __construct(Iterator $iterator, array $excludeDirs) + { + parent::__construct($iterator); + $this->excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + $parser = new Parser; -$scanner = new Scanner($parser, __DIR__ . '/../../src'); +$scanner = new Scanner($parser, $filteredIterator); $coverage = new Coverage($scanner); $coverage->buildListToCover(); diff --git a/tests/system/BigQuery/BigQueryTestCase.php b/tests/system/BigQuery/BigQueryTestCase.php index d0162cb73b65..64f036148e6f 100644 --- a/tests/system/BigQuery/BigQueryTestCase.php +++ b/tests/system/BigQuery/BigQueryTestCase.php @@ -38,7 +38,7 @@ public static function setUpBeforeClass() } $keyFilePath = getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH'); - $schema = json_decode(file_get_contents(__DIR__ . '/../data/table-schema.json'), true); + $schema = json_decode(file_get_contents(__DIR__ . '/data/table-schema.json'), true); $storage = new StorageClient([ 'keyFilePath' => $keyFilePath diff --git a/tests/system/BigQuery/LoadDataAndQueryTest.php b/tests/system/BigQuery/LoadDataAndQueryTest.php index e0ebf71001a4..da97b6f85ab9 100644 --- a/tests/system/BigQuery/LoadDataAndQueryTest.php +++ b/tests/system/BigQuery/LoadDataAndQueryTest.php @@ -367,7 +367,7 @@ public function testLoadsDataToTable($data) $this->fail('Job failed to complete within the allotted time.'); } - self::$expectedRows += count(file(__DIR__ . '/../data/table-data.json')); + self::$expectedRows += count(file(__DIR__ . '/data/table-data.json')); $actualRows = count(iterator_to_array(self::$table->rows())); $this->assertEquals(self::$expectedRows, $actualRows); @@ -375,11 +375,11 @@ public function testLoadsDataToTable($data) public function rowProvider() { - $data = file_get_contents(__DIR__ . '/../data/table-data.json'); + $data = file_get_contents(__DIR__ . '/data/table-data.json'); return [ [$data], - [fopen(__DIR__ . '/../data/table-data.json', 'r')], + [fopen(__DIR__ . '/data/table-data.json', 'r')], [Psr7\stream_for($data)] ]; } @@ -390,7 +390,7 @@ public function rowProvider() public function testLoadsDataFromStorageToTable() { $object = self::$bucket->upload( - fopen(__DIR__ . '/../data/table-data.json', 'r') + fopen(__DIR__ . '/data/table-data.json', 'r') ); $loadJobConfig = self::$table->loadFromStorage($object) @@ -408,7 +408,7 @@ public function testLoadsDataFromStorageToTable() $this->fail('Job failed to complete within the allotted time.'); } - self::$expectedRows += count(file(__DIR__ . '/../data/table-data.json')); + self::$expectedRows += count(file(__DIR__ . '/data/table-data.json')); $actualRows = count(iterator_to_array(self::$table->rows())); $this->assertEquals(self::$expectedRows, $actualRows); diff --git a/tests/unit/Core/ServicesNotFoundTest.php b/tests/unit/Core/ServicesNotFoundTest.php index df13887786ba..cfffb43f17cb 100644 --- a/tests/unit/Core/ServicesNotFoundTest.php +++ b/tests/unit/Core/ServicesNotFoundTest.php @@ -37,6 +37,9 @@ public static function setUpBeforeClass() if ($function[0] instanceof ClassLoader) { $newAutoloader = clone $function[0]; $newAutoloader->setPsr4('Google\Cloud\\', '/tmp'); + foreach (self::getApis() as $api) { + $newAutoloader->setPsr4("Google\\Cloud\\$api\\", '/tmp'); + } spl_autoload_register(self::$newAutoloadFunc = [$newAutoloader, 'loadClass']); spl_autoload_unregister(self::$previousAutoloadFunc = $function); } @@ -49,6 +52,34 @@ public static function tearDownAfterClass() spl_autoload_unregister(self::$newAutoloadFunc); } + private static function getApis() + { + return [ + "BigQuery", + "Bigtable", + "Container", + "Core", + "Dataproc", + "Datastore", + "Debugger", + "Dlp", + "ErrorReporting", + "Firestore", + "Language", + "Logging", + "Monitoring", + "OsLogin", + "PubSub", + "Spanner", + "Speech", + "Storage", + "Trace", + "Translate", + "VideoIntelligence", + "Vision", + ]; + } + public function serviceBuilderMethods() { return [ diff --git a/tests/unit/Debugger/BreakpointTest.php b/tests/unit/Debugger/BreakpointTest.php index f726b236176f..1e9df0fc5af1 100644 --- a/tests/unit/Debugger/BreakpointTest.php +++ b/tests/unit/Debugger/BreakpointTest.php @@ -176,7 +176,7 @@ public function testAddingEvaluatedExpressions() public function testResolvedLocationNotIncludedInJson() { - $path = implode(DIRECTORY_SEPARATOR, ['Debugger', 'DebuggerClient.php']); + $path = implode(DIRECTORY_SEPARATOR, ['src', 'DebuggerClient.php']); $breakpoint = new Breakpoint([ 'location' => [ 'path' => $path, diff --git a/tests/unit/Debugger/MatchingFileIteratorTest.php b/tests/unit/Debugger/MatchingFileIteratorTest.php index 1a975aba8690..2232911b330b 100644 --- a/tests/unit/Debugger/MatchingFileIteratorTest.php +++ b/tests/unit/Debugger/MatchingFileIteratorTest.php @@ -29,7 +29,7 @@ public function testFindsMany() { // There are many files that end in Connection/RestTest.php in the test/unit folder $iterator = new MatchingFileIterator( - realpath($this->sourcePath([__DIR__, '..'])), + realpath($this->sourcePath([__DIR__, '../../..'])), $this->sourcePath(['Connection', 'RestTest.php']) ); $matches = iterator_to_array($iterator); diff --git a/tests/unit/Debugger/SourceLocationResolverTest.php b/tests/unit/Debugger/SourceLocationResolverTest.php index ab1538cda459..f46202d4f08d 100644 --- a/tests/unit/Debugger/SourceLocationResolverTest.php +++ b/tests/unit/Debugger/SourceLocationResolverTest.php @@ -32,7 +32,7 @@ public function testExactMatch() $resolver = new SourceLocationResolver(); $resolvedLocation = $resolver->resolve($location); $this->assertInstanceOf(SourceLocation::class, $resolvedLocation); - $expectedFile = $this->sourcePath(['src', 'Debugger', 'DebuggerClient.php']); + $expectedFile = $this->sourcePath(['Debugger', 'src', 'DebuggerClient.php']); $this->assertEquals($expectedFile, $resolvedLocation->path()); $this->assertEquals(1, $resolvedLocation->line()); } @@ -43,7 +43,7 @@ public function testExtraDirectories() $resolver = new SourceLocationResolver(); $resolvedLocation = $resolver->resolve($location); $this->assertInstanceOf(SourceLocation::class, $resolvedLocation); - $expectedFile = $this->sourcePath(['src', 'Debugger', 'DebuggerClient.php']); + $expectedFile = $this->sourcePath(['Debugger', 'src', 'DebuggerClient.php']); $this->assertEquals($expectedFile, $resolvedLocation->path()); $this->assertEquals(1, $resolvedLocation->line()); } @@ -54,7 +54,7 @@ public function testMissingDirectories() $resolver = new SourceLocationResolver(); $resolvedLocation = $resolver->resolve($location); $this->assertInstanceOf(SourceLocation::class, $resolvedLocation); - $expectedFile = $this->sourcePath(['src', 'Debugger', 'DebuggerClient.php']); + $expectedFile = $this->sourcePath(['Debugger', 'src', 'DebuggerClient.php']); $this->assertEquals($expectedFile, $resolvedLocation->path()); $this->assertEquals(1, $resolvedLocation->line()); } diff --git a/tests/unit/Speech/SpeechClientTest.php b/tests/unit/Speech/SpeechClientTest.php index 7f23497ea548..b90ab46efcd8 100644 --- a/tests/unit/Speech/SpeechClientTest.php +++ b/tests/unit/Speech/SpeechClientTest.php @@ -113,7 +113,7 @@ public function audioProvider() $amrMock->gcsUri(Argument::any())->willReturn(self::GCS_URI . '.amr'); $awbMock = $this->prophesize(StorageObject::class); $awbMock->gcsUri(Argument::any())->willReturn(self::GCS_URI . '.awb'); - $audioPath = __DIR__ . '/../data/brooklyn.flac'; + $audioPath = __DIR__ . '/data/brooklyn.flac'; return [ [ diff --git a/tests/unit/Storage/Connection/RestTest.php b/tests/unit/Storage/Connection/RestTest.php index d7fb68ee952d..d7bca3c05325 100644 --- a/tests/unit/Storage/Connection/RestTest.php +++ b/tests/unit/Storage/Connection/RestTest.php @@ -201,7 +201,7 @@ public function insertObjectProvider() { $tempFile = Psr7\stream_for(fopen('php://temp', 'r+')); $tempFile->write(str_repeat('0', 5000001)); - $logoFile = Psr7\stream_for(fopen(__DIR__ . '../../../data/logo.svg', 'r')); + $logoFile = Psr7\stream_for(fopen(__DIR__ . '/../data/logo.svg', 'r')); return [ [ From 771467189f37620352f879afb479df7f1995fbdc Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Wed, 31 Jan 2018 16:21:51 -0800 Subject: [PATCH 02/59] Restructure APIs via script --- {src/BigQuery => BigQuery}/CONTRIBUTING.md | 0 {src/BigQuery => BigQuery}/LICENSE | 0 {src/BigQuery => BigQuery}/README.md | 0 {src/BigQuery => BigQuery}/VERSION | 0 {src/BigQuery => BigQuery}/composer.json | 0 BigQuery/phpunit-snippets.xml.dist | 16 +++ BigQuery/phpunit-system.xml.dist | 16 +++ BigQuery/phpunit.xml.dist | 22 ++++ .../src}/BigQueryClient.php | 0 {src/BigQuery => BigQuery/src}/Bytes.php | 0 .../src}/Connection/ConnectionInterface.php | 0 .../src}/Connection/Rest.php | 0 .../ServiceDefinition/bigquery-v2.json | 0 .../src}/CopyJobConfiguration.php | 0 {src/BigQuery => BigQuery/src}/Dataset.php | 0 {src/BigQuery => BigQuery/src}/Date.php | 0 .../src}/Exception/JobException.php | 0 .../src}/ExtractJobConfiguration.php | 0 .../src}/InsertResponse.php | 0 {src/BigQuery => BigQuery/src}/Job.php | 0 .../src}/JobConfigurationInterface.php | 0 .../src}/JobConfigurationTrait.php | 0 .../src}/JobWaitTrait.php | 0 .../src}/LoadJobConfiguration.php | 0 .../src}/QueryJobConfiguration.php | 0 .../src}/QueryResults.php | 0 {src/BigQuery => BigQuery/src}/Table.php | 0 {src/BigQuery => BigQuery/src}/Time.php | 0 {src/BigQuery => BigQuery/src}/Timestamp.php | 0 .../src}/ValueInterface.php | 0 .../BigQuery => BigQuery/src}/ValueMapper.php | 0 .../tests/snippets}/BigQueryClientTest.php | 0 .../tests/snippets}/BytesTest.php | 0 .../snippets}/CopyJobConfigurationTest.php | 0 .../tests/snippets}/DatasetTest.php | 0 .../tests/snippets}/DateTest.php | 0 .../snippets}/ExtractJobConfigurationTest.php | 0 .../tests/snippets}/InsertResponseTest.php | 0 .../tests/snippets}/JobTest.php | 0 .../snippets}/LoadJobConfigurationTest.php | 0 .../snippets}/QueryJobConfigurationTest.php | 0 .../tests/snippets}/QueryResultsTest.php | 0 .../tests/snippets}/TableTest.php | 0 .../tests/snippets}/TimeTest.php | 0 .../tests/snippets}/TimestampTest.php | 0 BigQuery/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/BigQueryTestCase.php | 0 .../tests/system}/LoadDataAndQueryTest.php | 0 .../tests/system}/ManageDatasetsTest.php | 0 .../tests/system}/ManageJobsTest.php | 0 .../tests/system}/ManageTablesTest.php | 0 .../tests/system}/README.md | 0 BigQuery/tests/system/bootstrap.php | 43 +++++++ .../tests}/system/data/table-data.json | 0 .../tests}/system/data/table-schema.json | 0 .../tests/unit}/BigQueryClientTest.php | 0 .../tests/unit}/BytesTest.php | 0 .../tests/unit}/Connection/RestTest.php | 0 .../tests/unit}/CopyJobConfigurationTest.php | 0 .../tests/unit}/DatasetTest.php | 0 .../tests/unit}/DateTest.php | 0 .../unit}/Exception/JobExceptionTest.php | 0 .../unit}/ExtractJobConfigurationTest.php | 0 .../tests/unit}/InsertResponseTest.php | 0 .../tests/unit}/JobConfigurationTraitTest.php | 0 .../tests/unit}/JobTest.php | 0 .../tests/unit}/JobWaitTraitTest.php | 0 .../tests/unit}/LoadJobConfigurationTest.php | 0 .../tests/unit}/QueryJobConfigurationTest.php | 0 .../tests/unit}/QueryResultsTest.php | 0 .../tests/unit}/TableTest.php | 0 .../tests/unit}/TimeTest.php | 0 .../tests/unit}/TimestampTest.php | 0 .../tests/unit}/ValueMapperTest.php | 0 BigQuery/tests/unit/bootstrap.php | 3 + {src/Bigtable => Bigtable}/CONTRIBUTING.md | 0 {src/Bigtable => Bigtable}/LICENSE | 0 {src/Bigtable => Bigtable}/README.md | 0 {src/Bigtable => Bigtable}/VERSION | 0 {src/Bigtable => Bigtable}/composer.json | 0 Bigtable/phpunit-snippets.xml.dist | 16 +++ Bigtable/phpunit-system.xml.dist | 16 +++ Bigtable/phpunit.xml.dist | 22 ++++ .../Bigtable => Bigtable/src}/Admin/README.md | 0 .../Admin/V2/BigtableInstanceAdminClient.php | 0 .../Admin/V2/BigtableTableAdminClient.php | 0 .../BigtableInstanceAdminGapicClient.php | 0 .../Gapic/BigtableTableAdminGapicClient.php | 0 .../src}/Admin/V2/README.md | 0 ...bigtable_instance_admin_client_config.json | 0 ...table_instance_admin_descriptor_config.php | 0 ...able_instance_admin_rest_client_config.php | 0 .../bigtable_table_admin_client_config.json | 0 ...bigtable_table_admin_descriptor_config.php | 0 ...igtable_table_admin_rest_client_config.php | 0 .../src}/V2/BigtableClient.php | 0 .../src}/V2/Gapic/BigtableGapicClient.php | 0 {src/Bigtable => Bigtable/src}/V2/README.md | 0 .../V2/resources/bigtable_client_config.json | 0 .../resources/bigtable_descriptor_config.php | 0 .../resources/bigtable_rest_client_config.php | 0 Bigtable/tests/snippets/bootstrap.php | 64 ++++++++++ .../system}/BigtableInstanceAdminTest.php | 0 Bigtable/tests/system/bootstrap.php | 43 +++++++ Bigtable/tests/unit/bootstrap.php | 3 + {src/Container => Container}/CONTRIBUTING.md | 0 {src/Container => Container}/LICENSE | 0 {src/Container => Container}/README.md | 0 {src/Container => Container}/VERSION | 0 {src/Container => Container}/composer.json | 0 Container/phpunit-snippets.xml.dist | 16 +++ Container/phpunit-system.xml.dist | 16 +++ Container/phpunit.xml.dist | 22 ++++ .../src}/V1/ClusterManagerClient.php | 0 .../V1/Gapic/ClusterManagerGapicClient.php | 0 {src/Container => Container/src}/V1/README.md | 0 .../cluster_manager_client_config.json | 0 .../cluster_manager_descriptor_config.php | 0 .../cluster_manager_rest_client_config.php | 0 Container/tests/snippets/bootstrap.php | 64 ++++++++++ .../system}/ClusterManagerClientTest.php | 0 Container/tests/system/bootstrap.php | 43 +++++++ Container/tests/unit/bootstrap.php | 3 + {src/Core => Core}/CONTRIBUTING.md | 0 {src/Core => Core}/LICENSE | 0 {src/Core => Core}/README.md | 0 {src/Core => Core}/VERSION | 0 {src/Core => Core}/composer.json | 0 Core/phpunit-snippets.xml.dist | 16 +++ Core/phpunit-system.xml.dist | 16 +++ Core/phpunit.xml.dist | 22 ++++ .../src}/AnonymousCredentials.php | 0 {src/Core => Core/src}/ArrayTrait.php | 0 Core/src/Batch/BatchConfig.php | 118 ++++++++++++++++++ {src/Core => Core/src}/Batch/BatchDaemon.php | 0 .../src}/Batch/BatchDaemonTrait.php | 0 {src/Core => Core/src}/Batch/BatchJob.php | 0 {src/Core => Core/src}/Batch/BatchRunner.php | 0 {src/Core => Core/src}/Batch/BatchTrait.php | 0 .../src}/Batch/ConfigStorageInterface.php | 0 .../src}/Batch/HandleFailureTrait.php | 0 .../src}/Batch/InMemoryConfigStorage.php | 0 .../src}/Batch/ProcessItemInterface.php | 0 {src/Core => Core/src}/Batch/Retry.php | 0 .../src}/Batch/SysvConfigStorage.php | 0 .../Core => Core/src}/Batch/SysvProcessor.php | 0 {src/Core => Core/src}/Blob.php | 0 {src/Core => Core/src}/CallTrait.php | 0 {src/Core => Core/src}/ClientTrait.php | 0 {src/Core => Core/src}/Compute/Metadata.php | 0 .../Metadata/Readers/ReaderInterface.php | 0 .../Compute/Metadata/Readers/StreamReader.php | 0 .../src}/ConcurrencyControlTrait.php | 0 {src/Core => Core/src}/DebugInfoTrait.php | 0 {src/Core => Core/src}/Duration.php | 0 {src/Core => Core/src}/EmulatorTrait.php | 0 .../src}/Exception/AbortedException.php | 0 .../src}/Exception/BadRequestException.php | 0 .../src}/Exception/ConflictException.php | 0 .../Exception/DeadlineExceededException.php | 0 .../Exception/FailedPreconditionException.php | 0 .../src}/Exception/GoogleException.php | 0 .../src}/Exception/NotFoundException.php | 0 .../src}/Exception/ServerException.php | 0 .../src}/Exception/ServiceException.php | 0 {src/Core => Core/src}/ExponentialBackoff.php | 0 {src/Core => Core/src}/GeoPoint.php | 0 {src/Core => Core/src}/GrpcRequestWrapper.php | 0 {src/Core => Core/src}/GrpcTrait.php | 0 {src/Core => Core/src}/Iam/Iam.php | 0 .../src}/Iam/IamConnectionInterface.php | 0 {src/Core => Core/src}/Iam/PolicyBuilder.php | 0 {src/Core => Core/src}/Int64.php | 0 .../src}/Iterator/ItemIterator.php | 0 .../src}/Iterator/ItemIteratorTrait.php | 0 .../src}/Iterator/PageIterator.php | 0 .../src}/Iterator/PageIteratorTrait.php | 0 {src/Core => Core/src}/JsonTrait.php | 0 {src/Core => Core/src}/Lock/FlockLock.php | 0 {src/Core => Core/src}/Lock/LockInterface.php | 0 {src/Core => Core/src}/Lock/LockTrait.php | 0 {src/Core => Core/src}/Lock/SemaphoreLock.php | 0 .../src}/Lock/SymfonyLockAdapter.php | 0 .../src}/Logger/AppEngineFlexFormatter.php | 0 .../src}/Logger/AppEngineFlexHandler.php | 0 .../src}/LongRunning/LROTrait.php | 0 .../LongRunningConnectionInterface.php | 0 .../src}/LongRunning/LongRunningOperation.php | 0 .../LongRunning/OperationResponseTrait.php | 0 {src/Core => Core/src}/PhpArray.php | 0 .../src}/Report/EmptyMetadataProvider.php | 0 .../src}/Report/GAEFlexMetadataProvider.php | 0 .../src}/Report/MetadataProviderInterface.php | 0 .../src}/Report/MetadataProviderUtils.php | 0 .../src}/Report/SimpleMetadataProvider.php | 0 {src/Core => Core/src}/RequestBuilder.php | 0 {src/Core => Core/src}/RequestWrapper.php | 0 .../Core => Core/src}/RequestWrapperTrait.php | 0 {src/Core => Core/src}/RestTrait.php | 0 {src/Core => Core/src}/Retry.php | 0 {src/Core => Core/src}/RetryDeciderTrait.php | 0 {src/Core => Core/src}/ServiceBuilder.php | 0 {src/Core => Core/src}/SysvTrait.php | 0 .../src}/Testing/ArrayHasSameValuesToken.php | 0 .../src}/Testing/CheckForClassTrait.php | 0 .../src}/Testing/DocBlockStripSpaces.php | 0 .../src}/Testing/GrpcTestTrait.php | 0 .../src}/Testing/KeyPairGenerateTrait.php | 0 .../src}/Testing/Lock/MockGlobals.php | 0 .../src}/Testing/Lock/MockValues.php | 0 {src/Core => Core/src}/Testing/README.md | 0 .../src}/Testing/Snippet/Container.php | 0 .../Testing/Snippet/Coverage/Coverage.php | 0 .../src}/Testing/Snippet/Coverage/Scanner.php | 0 .../Snippet/Coverage/ScannerInterface.php | 0 .../Testing/Snippet/Parser/InvokeResult.php | 0 .../src}/Testing/Snippet/Parser/Parser.php | 0 .../src}/Testing/Snippet/Parser/Snippet.php | 0 .../src}/Testing/Snippet/SnippetTestCase.php | 0 {src/Core => Core/src}/Testing/StubTrait.php | 0 .../src}/Testing/System/DeletionQueue.php | 0 .../src}/Testing/System/SystemTestCase.php | 0 .../Core => Core/src}/Testing/TestHelpers.php | 0 {src/Core => Core/src}/Timestamp.php | 0 .../src}/Upload/AbstractUploader.php | 0 .../src}/Upload/MultipartUploader.php | 0 .../src}/Upload/ResumableUploader.php | 0 .../src}/Upload/SignedUrlUploader.php | 0 .../src}/Upload/StreamableUploader.php | 0 {src/Core => Core/src}/UriTrait.php | 0 {src/Core => Core/src}/ValidateTrait.php | 0 {src/Core => Core/src}/ValueMapperTrait.php | 0 {src/Core => Core/src}/WhitelistTrait.php | 0 {src/Core => Core/src}/bin/google-cloud-batch | 0 .../Core => Core/tests/snippets}/BlobTest.php | 0 .../tests/snippets}/Compute/MetadataTest.php | 0 .../tests/snippets}/DurationTest.php | 0 .../tests/snippets}/GeoPointTest.php | 0 .../tests/snippets}/Iam/IamTest.php | 0 .../tests/snippets}/Iam/PolicyBuilderTest.php | 0 .../tests/snippets}/Int64Test.php | 0 .../LongRunning/LongRunningOperationTest.php | 0 .../tests/snippets}/ServiceBuilderTest.php | 0 .../Testing/Snippet/Parser/ParserTest.php | 0 .../tests/snippets}/TimestampTest.php | 0 Core/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/Batch/BatchRunnerTest.php | 0 .../tests/system}/Batch/MyJob.php | 0 Core/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/AnonymousCredentialsTest.php | 0 .../tests/unit}/ArrayTraitTest.php | 0 Core/tests/unit/Batch/BatchConfigTest.php | 91 ++++++++++++++ .../unit}/Batch/BatchDaemonTraitTest.php | 0 .../tests/unit}/Batch/BatchJobTest.php | 0 .../tests/unit}/Batch/BatchRunnerTest.php | 0 .../tests/unit}/Batch/BatchTraitTest.php | 0 .../unit}/Batch/HandleFailureTraitTest.php | 0 .../unit}/Batch/InMemoryConfigStorageTest.php | 0 .../tests/unit}/Batch/RetryTest.php | 0 .../unit}/Batch/SysvConfigStorageTest.php | 0 .../tests/unit}/Batch/SysvProcessorTest.php | 0 .../tests/unit}/CallTraitTest.php | 0 .../tests/unit}/ClientTraitTest.php | 0 .../tests/unit}/Compute/MetadataTest.php | 0 .../unit}/ConcurrencyControlTraitTest.php | 0 .../Core => Core/tests/unit}/DurationTest.php | 0 .../tests/unit}/EmulatorTraitTest.php | 0 .../unit}/Exception/NotFoundExceptionTest.php | 0 .../unit}/Exception/ServiceExceptionTest.php | 0 .../tests/unit}/ExponentialBackoffTest.php | 0 .../Core => Core/tests/unit}/Fixtures.php | 0 .../tests/unit}/GrpcRequestWrapperTest.php | 0 .../tests/unit}/GrpcTraitTest.php | 0 .../Core => Core/tests/unit}/Iam/IamTest.php | 0 .../tests/unit}/Iam/PolicyBuilderTest.php | 0 .../Core => Core/tests/unit}/Int64Test.php | 0 .../tests/unit}/Iterator/ItemIteratorTest.php | 0 .../tests/unit}/Iterator/PageIteratorTest.php | 0 .../tests/unit}/JsonTraitTest.php | 0 .../tests/unit}/Lock/CommonLockTrait.php | 0 .../tests/unit}/Lock/FlockLockTest.php | 0 .../tests/unit}/Lock/SemaphoreLockTest.php | 0 .../unit}/Logger/AppEngineFlexHandlerTest.php | 0 .../Report/EmptyMetadataProviderTest.php | 0 .../Report/GAEFlexMetadataProviderTest.php | 0 .../Report/MetadataProviderUtilsTest.php | 0 .../Report/SimpleMetadataProviderTest.php | 0 .../tests/unit}/RequestBuilderTest.php | 0 .../tests/unit}/RequestWrapperTest.php | 0 .../tests/unit}/RestTraitTest.php | 0 .../tests/unit}/RetryDeciderTraitTest.php | 0 .../tests/unit}/ServiceBuilderTest.php | 0 .../tests/unit}/ServicesNotFoundTest.php | 0 .../tests/unit}/SysvTraitTest.php | 0 .../tests/unit}/TimestampTest.php | 0 .../unit}/Upload/MultipartUploaderTest.php | 0 .../unit}/Upload/ResumableUploaderTest.php | 0 .../unit}/Upload/SignedUrlUploaderTest.php | 0 .../unit}/Upload/StreamableUploaderTest.php | 0 .../Core => Core/tests/unit}/UriTraitTest.php | 0 .../tests/unit}/ValidateTraitTest.php | 0 .../tests/unit}/WhitelistTraitTest.php | 0 Core/tests/unit/bootstrap.php | 3 + .../fixtures/empty-json-key-fixture.json | 0 .../unit}/fixtures/json-key-fixture.json | 0 .../tests/unit}/fixtures/service-fixture.json | 0 {src/Dataproc => Dataproc}/CONTRIBUTING.md | 0 {src/Dataproc => Dataproc}/LICENSE | 0 {src/Dataproc => Dataproc}/README.md | 0 {src/Dataproc => Dataproc}/VERSION | 0 {src/Dataproc => Dataproc}/composer.json | 0 Dataproc/phpunit-snippets.xml.dist | 16 +++ Dataproc/phpunit-system.xml.dist | 16 +++ Dataproc/phpunit.xml.dist | 22 ++++ .../src}/V1/ClusterControllerClient.php | 0 .../V1/Gapic/ClusterControllerGapicClient.php | 0 .../V1/Gapic/JobControllerGapicClient.php | 0 .../src}/V1/JobControllerClient.php | 0 {src/Dataproc => Dataproc/src}/V1/README.md | 0 .../cluster_controller_client_config.json | 0 .../cluster_controller_descriptor_config.php | 0 .../cluster_controller_rest_client_config.php | 0 .../job_controller_client_config.json | 0 .../job_controller_descriptor_config.php | 0 .../job_controller_rest_client_config.php | 0 Dataproc/tests/snippets/bootstrap.php | 64 ++++++++++ .../system}/ClusterControllerClientTest.php | 0 Dataproc/tests/system/bootstrap.php | 43 +++++++ Dataproc/tests/unit/bootstrap.php | 3 + {src/Datastore => Datastore}/CONTRIBUTING.md | 0 {src/Datastore => Datastore}/LICENSE | 0 {src/Datastore => Datastore}/README.md | 0 {src/Datastore => Datastore}/VERSION | 0 {src/Datastore => Datastore}/composer.json | 0 Datastore/phpunit-snippets.xml.dist | 16 +++ Datastore/phpunit-system.xml.dist | 16 +++ Datastore/phpunit.xml.dist | 22 ++++ {src/Datastore => Datastore/src}/Blob.php | 0 .../src}/Connection/ConnectionInterface.php | 0 .../src}/Connection/Rest.php | 0 .../ServiceDefinition/datastore-v1.json | 0 .../src}/DatastoreClient.php | 0 .../src}/DatastoreSessionHandler.php | 0 .../src}/DatastoreTrait.php | 0 {src/Datastore => Datastore/src}/Entity.php | 0 .../src}/EntityIterator.php | 0 .../src}/EntityMapper.php | 0 .../src}/EntityPageIterator.php | 0 {src/Datastore => Datastore/src}/GeoPoint.php | 0 {src/Datastore => Datastore/src}/Key.php | 0 .../Datastore => Datastore/src}/Operation.php | 0 .../src}/Query/GqlQuery.php | 0 .../src}/Query/Query.php | 0 .../src}/Query/QueryInterface.php | 0 .../src}/ReadOnlyTransaction.php | 0 .../src}/Transaction.php | 0 .../src}/TransactionTrait.php | 0 .../tests/snippets}/BlobTest.php | 0 .../tests/snippets}/DatastoreClientTest.php | 0 .../tests/snippets}/EntityTest.php | 0 .../tests/snippets}/GeoPointTest.php | 0 .../tests/snippets}/KeyTest.php | 0 .../tests/snippets}/Query/GqlQueryTest.php | 0 .../tests/snippets}/Query/QueryTest.php | 0 .../snippets}/ReadOnlyTransactionTest.php | 0 .../tests/snippets}/TransactionTest.php | 0 Datastore/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/AllocateKeyTest.php | 0 .../tests/system}/DatastoreTestCase.php | 0 .../tests/system}/RunQueryTest.php | 0 .../tests/system}/RunTransactionTest.php | 0 .../tests/system}/SaveAndModifyTest.php | 0 Datastore/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/BlobTest.php | 0 .../tests/unit}/Connection/RestTest.php | 0 .../tests/unit}/DatastoreClientTest.php | 0 .../unit}/DatastoreSessionHandlerTest.php | 0 .../tests/unit}/DatastoreTraitTest.php | 0 .../tests/unit}/EntityIteratorTest.php | 0 .../tests/unit}/EntityMapperTest.php | 0 .../tests/unit}/EntityPageIteratorTest.php | 0 .../tests/unit}/EntityTest.php | 0 .../tests/unit}/Fixtures.php | 0 .../tests/unit}/GeoPointTest.php | 0 .../tests/unit}/KeyTest.php | 0 .../tests/unit}/OperationTest.php | 0 .../tests/unit}/Query/GqlQueryTest.php | 0 .../tests/unit}/Query/QueryTest.php | 0 .../tests/unit}/TransactionTest.php | 0 Datastore/tests/unit/bootstrap.php | 3 + .../unit}/fixtures/entity-batch-lookup.json | 0 .../unit}/fixtures/entity-lookup-bigsort.json | 0 .../fixtures/entity-result-no-properties.json | 0 .../tests/unit}/fixtures/entity-result.json | 0 .../tests/unit}/fixtures/query-results.json | 0 {src/Debugger => Debugger}/CONTRIBUTING.md | 0 {src/Debugger => Debugger}/LICENSE | 0 {src/Debugger => Debugger}/README.md | 0 {src/Debugger => Debugger}/VERSION | 0 {src/Debugger => Debugger}/composer.json | 0 Debugger/phpunit-snippets.xml.dist | 16 +++ Debugger/phpunit-system.xml.dist | 16 +++ Debugger/phpunit.xml.dist | 22 ++++ {src/Debugger => Debugger/src}/Agent.php | 0 .../src}/AliasContext.php | 0 {src/Debugger => Debugger/src}/Breakpoint.php | 0 .../BreakpointStorageInterface.php | 0 .../SysvBreakpointStorage.php | 0 .../src}/CloudRepoSourceContext.php | 0 .../src}/CloudWorkspaceId.php | 0 .../src}/CloudWorkspaceSourceContext.php | 0 .../src}/Connection/ConnectionInterface.php | 0 .../src}/Connection/Rest.php | 0 .../ServiceDefinition/debugger-v2.json | 0 {src/Debugger => Debugger/src}/Daemon.php | 0 {src/Debugger => Debugger/src}/Debuggee.php | 0 .../src}/DebuggerClient.php | 0 .../src}/ExtendedSourceContext.php | 0 .../src}/FormatMessage.php | 0 .../src}/GerritSourceContext.php | 0 .../src}/GitSourceContext.php | 0 .../src}/MatchingFileIterator.php | 0 .../src}/ProjectRepoId.php | 0 {src/Debugger => Debugger/src}/RepoId.php | 0 .../src}/SourceContext.php | 0 .../src}/SourceLocation.php | 0 .../src}/SourceLocationResolver.php | 0 {src/Debugger => Debugger/src}/StackFrame.php | 0 .../src}/StatusMessage.php | 0 .../src}/V2/Controller2Client.php | 0 .../src}/V2/Debugger2Client.php | 0 .../src}/V2/Gapic/Controller2GapicClient.php | 0 .../src}/V2/Gapic/Debugger2GapicClient.php | 0 .../resources/controller2_client_config.json | 0 .../controller2_descriptor_config.php | 0 .../controller2_rest_client_config.php | 0 .../V2/resources/debugger2_client_config.json | 0 .../resources/debugger2_descriptor_config.php | 0 .../debugger2_rest_client_config.php | 0 {src/Debugger => Debugger/src}/Variable.php | 0 .../src}/VariableTable.php | 0 .../src}/bin/google-cloud-debugger | 0 .../tests/snippets}/AgentTest.php | 0 .../tests/snippets}/AliasContextTest.php | 0 .../tests/snippets}/BreakpointTest.php | 0 .../snippets}/CloudRepoSourceContextTest.php | 0 .../tests/snippets}/CloudWorkspaceIdTest.php | 0 .../CloudWorkspaceSourceContextTest.php | 0 .../tests/snippets}/DaemonTest.php | 0 .../tests/snippets}/DebuggeeTest.php | 0 .../tests/snippets}/DebuggerClientTest.php | 0 .../snippets}/ExtendedSourceContextTest.php | 0 .../tests/snippets}/FormatMessageTest.php | 0 .../snippets}/GerritSourceContextTest.php | 0 .../tests/snippets}/GitSourceContextTest.php | 0 .../snippets}/MatchingFileIteratorTest.php | 0 .../tests/snippets}/ProjectRepoIdTest.php | 0 .../tests/snippets}/RepoIdTest.php | 0 .../snippets}/SourceLocationResolverTest.php | 0 .../tests/snippets}/SourceLocationTest.php | 0 .../tests/snippets}/StackFrameTest.php | 0 .../tests/snippets}/StatusMessageTest.php | 0 .../tests/snippets}/VariableTableTest.php | 0 .../tests/snippets}/VariableTest.php | 0 Debugger/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/BasicTest.php | 0 .../tests/system}/E2ETest.php | 0 .../tests/system}/app/.gitignore | 0 .../system/app/additional-supervisord.conf | 11 ++ .../tests/system}/app/app.yaml | 0 .../tests/system}/app/web/app.php | 0 .../tests/system}/app/web/index.php | 0 Debugger/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/AgentTest.php | 0 .../tests/unit}/AliasContextTest.php | 0 .../SysvBreakpointStorageTest.php | 0 .../tests/unit}/BreakpointTest.php | 0 .../tests/unit}/BreakpointValidationTest.php | 0 .../unit}/CloudRepoSourceContextTest.php | 0 .../tests/unit}/CloudWorkspaceIdTest.php | 0 .../unit}/CloudWorkspaceSourceContextTest.php | 0 .../tests/unit}/Connection/RestTest.php | 0 .../tests/unit}/DaemonTest.php | 0 .../tests/unit}/DebuggeeTest.php | 0 .../tests/unit}/DebuggerClientTest.php | 0 .../tests/unit}/ExtendedSourceContextTest.php | 0 .../tests/unit}/FormatMessageTest.php | 0 .../tests/unit}/GerritSourceContextTest.php | 0 .../tests/unit}/GitSourceContextTest.php | 0 .../tests/unit}/JsonTestTrait.php | 0 .../tests/unit}/MatchingFileIteratorTest.php | 0 .../tests/unit}/ProjectRepoIdTest.php | 0 .../tests/unit}/RepoIdTest.php | 0 .../unit}/SourceLocationResolverTest.php | 0 .../tests/unit}/SourceLocationTest.php | 0 .../tests/unit}/StackFrameTest.php | 0 .../tests/unit}/StatusMessageTest.php | 0 .../tests/unit}/VariableTableTest.php | 0 .../tests/unit}/VariableTest.php | 0 Debugger/tests/unit/bootstrap.php | 3 + .../tests/unit}/data/file.php | 0 .../tests/unit}/data/nested/folder/file2.php | 0 .../tests/unit}/data/source-context.json | 0 {src/Dlp => Dlp}/CONTRIBUTING.md | 0 {src/Dlp => Dlp}/LICENSE | 0 {src/Dlp => Dlp}/README.md | 0 {src/Dlp => Dlp}/VERSION | 0 {src/Dlp => Dlp}/composer.json | 0 Dlp/phpunit-snippets.xml.dist | 16 +++ Dlp/phpunit-system.xml.dist | 16 +++ Dlp/phpunit.xml.dist | 22 ++++ .../src}/V2beta1/DlpServiceClient.php | 0 .../V2beta1/Gapic/DlpServiceGapicClient.php | 0 {src/Dlp => Dlp/src}/V2beta1/README.md | 0 .../resources/dlp_service_client_config.json | 0 .../dlp_service_descriptor_config.php | 0 .../dlp_service_rest_client_config.php | 0 Dlp/tests/snippets/bootstrap.php | 64 ++++++++++ Dlp/tests/system/bootstrap.php | 43 +++++++ Dlp/tests/unit/bootstrap.php | 3 + .../CONTRIBUTING.md | 0 .../ErrorReporting => ErrorReporting}/LICENSE | 0 .../README.md | 0 .../ErrorReporting => ErrorReporting}/VERSION | 0 .../composer.json | 0 ErrorReporting/phpunit-snippets.xml.dist | 16 +++ ErrorReporting/phpunit-system.xml.dist | 16 +++ ErrorReporting/phpunit.xml.dist | 22 ++++ .../src}/Bootstrap.php | 0 .../src}/V1beta1/ErrorGroupServiceClient.php | 0 .../src}/V1beta1/ErrorStatsServiceClient.php | 0 .../Gapic/ErrorGroupServiceGapicClient.php | 0 .../Gapic/ErrorStatsServiceGapicClient.php | 0 .../Gapic/ReportErrorsServiceGapicClient.php | 0 .../src}/V1beta1/README.md | 0 .../V1beta1/ReportErrorsServiceClient.php | 0 .../error_group_service_client_config.json | 0 .../error_group_service_descriptor_config.php | 0 ...error_group_service_rest_client_config.php | 0 .../error_stats_service_client_config.json | 0 .../error_stats_service_descriptor_config.php | 0 ...error_stats_service_rest_client_config.php | 0 .../report_errors_service_client_config.json | 0 ...eport_errors_service_descriptor_config.php | 0 ...port_errors_service_rest_client_config.php | 0 .../src}/prepend.php | 0 ErrorReporting/tests/snippets/bootstrap.php | 64 ++++++++++ ErrorReporting/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/BootstrapTest.php | 0 ErrorReporting/tests/unit/bootstrap.php | 3 + .../tests/unit}/fakeGlobalFunctions.php | 0 {src/Firestore => Firestore}/CONTRIBUTING.md | 0 {src/Firestore => Firestore}/README.md | 0 {src/Firestore => Firestore}/VERSION | 0 {src/Firestore => Firestore}/composer.json | 0 Firestore/phpunit-snippets.xml.dist | 16 +++ Firestore/phpunit-system.xml.dist | 16 +++ Firestore/phpunit.xml.dist | 22 ++++ .../src}/CollectionReference.php | 0 .../src}/Connection/ConnectionInterface.php | 0 .../src}/Connection/Grpc.php | 0 .../src}/DocumentReference.php | 0 .../src}/DocumentSnapshot.php | 0 .../Firestore => Firestore/src}/FieldPath.php | 0 .../src}/FieldValue.php | 0 .../src}/FirestoreClient.php | 0 .../Firestore => Firestore/src}/PathTrait.php | 0 {src/Firestore => Firestore/src}/Query.php | 0 .../src}/QuerySnapshot.php | 0 .../src}/SnapshotTrait.php | 0 .../src}/Transaction.php | 0 .../src}/V1beta1/FirestoreClient.php | 0 .../V1beta1/Gapic/FirestoreGapicClient.php | 0 .../src}/V1beta1/README.md | 0 .../resources/firestore_client_config.json | 0 .../resources/firestore_descriptor_config.php | 0 .../firestore_rest_client_config.php | 0 .../src}/ValueMapper.php | 0 .../src}/WriteBatch.php | 0 .../snippets}/CollectionReferenceTest.php | 0 .../tests/snippets}/DocumentReferenceTest.php | 0 .../tests/snippets}/DocumentSnapshotTest.php | 0 .../tests/snippets}/FieldPathTest.php | 0 .../tests/snippets}/FieldValueTest.php | 0 .../tests/snippets}/FirestoreClientTest.php | 0 .../tests/snippets}/QuerySnapshotTest.php | 0 .../tests/snippets}/QueryTest.php | 0 .../tests/snippets}/TransactionTest.php | 0 .../tests/snippets}/WriteBatchTest.php | 0 Firestore/tests/snippets/bootstrap.php | 64 ++++++++++ .../system}/DocumentAndCollectionTest.php | 0 .../tests/system}/FirestoreTestCase.php | 0 .../tests/system}/QueryTest.php | 0 .../tests/system}/TransactionTest.php | 0 .../tests/system}/ValueMapperTest.php | 0 Firestore/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/CollectionReferenceTest.php | 0 .../tests/unit}/Connection/GrpcTest.php | 0 .../tests/unit}/DocumentReferenceTest.php | 0 .../tests/unit}/DocumentSnapshotTest.php | 0 .../tests/unit}/FieldPathTest.php | 0 .../tests/unit}/FirestoreClientTest.php | 0 .../tests/unit}/PathTraitTest.php | 0 .../tests/unit}/QuerySnapshotTest.php | 0 .../tests/unit}/QueryTest.php | 0 .../tests/unit}/SnapshotTraitTest.php | 0 .../tests/unit}/TransactionTest.php | 0 .../tests/unit}/ValueMapperTest.php | 0 .../tests/unit}/WriteBatchTest.php | 0 Firestore/tests/unit/bootstrap.php | 3 + {src/Language => Language}/CONTRIBUTING.md | 0 {src/Language => Language}/LICENSE | 0 {src/Language => Language}/README.md | 0 {src/Language => Language}/VERSION | 0 {src/Language => Language}/composer.json | 0 Language/phpunit-snippets.xml.dist | 16 +++ Language/phpunit-system.xml.dist | 16 +++ Language/phpunit.xml.dist | 22 ++++ {src/Language => Language/src}/Annotation.php | 0 .../src}/Connection/ConnectionInterface.php | 0 .../src}/Connection/Rest.php | 0 .../ServiceDefinition/language-v1.json | 0 .../src}/LanguageClient.php | 0 .../Gapic/LanguageServiceGapicClient.php | 0 .../src}/V1beta2/LanguageServiceClient.php | 0 .../src}/V1beta2/README.md | 0 .../language_service_client_config.json | 0 .../language_service_descriptor_config.php | 0 .../language_service_rest_client_config.php | 0 .../tests/snippets}/AnnotationTest.php | 0 .../tests/snippets}/LanguageClientTest.php | 0 Language/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/AnalyzeTest.php | 0 .../tests/system}/LanguageTestCase.php | 0 Language/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/AnnotationTest.php | 0 .../tests/unit}/Connection/RestTest.php | 0 .../tests/unit}/LanguageClientTest.php | 0 Language/tests/unit/bootstrap.php | 3 + {src/Logging => Logging}/CONTRIBUTING.md | 0 {src/Logging => Logging}/LICENSE | 0 {src/Logging => Logging}/README.md | 0 {src/Logging => Logging}/VERSION | 0 {src/Logging => Logging}/composer.json | 0 Logging/phpunit-snippets.xml.dist | 16 +++ Logging/phpunit-system.xml.dist | 16 +++ Logging/phpunit.xml.dist | 22 ++++ .../src}/Connection/ConnectionInterface.php | 0 .../src}/Connection/Grpc.php | 0 .../src}/Connection/Rest.php | 0 .../ServiceDefinition/logging-v2.json | 0 {src/Logging => Logging/src}/Entry.php | 0 {src/Logging => Logging/src}/Logger.php | 0 .../Logging => Logging/src}/LoggingClient.php | 0 {src/Logging => Logging/src}/Metric.php | 0 {src/Logging => Logging/src}/PsrLogger.php | 0 {src/Logging => Logging/src}/Sink.php | 0 .../src}/V2/ConfigServiceV2Client.php | 0 .../V2/Gapic/ConfigServiceV2GapicClient.php | 0 .../V2/Gapic/LoggingServiceV2GapicClient.php | 0 .../V2/Gapic/MetricsServiceV2GapicClient.php | 0 .../src}/V2/LoggingServiceV2Client.php | 0 .../src}/V2/MetricsServiceV2Client.php | 0 {src/Logging => Logging/src}/V2/README.md | 0 .../config_service_v2_client_config.json | 0 .../config_service_v2_descriptor_config.php | 0 .../config_service_v2_rest_client_config.php | 0 .../logging_service_v2_client_config.json | 0 .../logging_service_v2_descriptor_config.php | 0 .../logging_service_v2_rest_client_config.php | 0 .../metrics_service_v2_client_config.json | 0 .../metrics_service_v2_descriptor_config.php | 0 .../metrics_service_v2_rest_client_config.php | 0 .../tests/snippets}/EntryTest.php | 0 .../tests/snippets}/LoggerTest.php | 0 .../tests/snippets}/LoggingClientTest.php | 0 .../tests/snippets}/MetricTest.php | 0 .../tests/snippets}/PsrLoggerTest.php | 0 .../tests/snippets}/SinkTest.php | 0 Logging/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/LoggingTestCase.php | 0 .../tests/system}/ManageMetricsTest.php | 0 .../tests/system}/ManageSinksTest.php | 0 .../tests/system}/WriteAndListEntryTest.php | 0 Logging/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/Connection/GrpcTest.php | 0 .../tests/unit}/Connection/RestTest.php | 0 .../tests/unit}/LoggerTest.php | 0 .../tests/unit}/LoggingClientTest.php | 0 .../tests/unit}/MetricTest.php | 0 .../tests/unit}/PsrLoggerBatchTest.php | 0 .../unit}/PsrLoggerCompatibilityTest.php | 0 .../tests/unit}/PsrLoggerTest.php | 0 .../tests/unit}/SinkTest.php | 0 Logging/tests/unit/bootstrap.php | 3 + .../Monitoring => Monitoring}/CONTRIBUTING.md | 0 {src/Monitoring => Monitoring}/LICENSE | 0 {src/Monitoring => Monitoring}/README.md | 0 {src/Monitoring => Monitoring}/VERSION | 0 {src/Monitoring => Monitoring}/composer.json | 0 Monitoring/phpunit-snippets.xml.dist | 16 +++ Monitoring/phpunit-system.xml.dist | 16 +++ Monitoring/phpunit.xml.dist | 22 ++++ .../src}/V3/Gapic/GroupServiceGapicClient.php | 0 .../V3/Gapic/MetricServiceGapicClient.php | 0 .../Gapic/UptimeCheckServiceGapicClient.php | 0 .../src}/V3/GroupServiceClient.php | 0 .../src}/V3/MetricServiceClient.php | 0 .../src}/V3/README.md | 0 .../src}/V3/UptimeCheckServiceClient.php | 0 .../group_service_client_config.json | 0 .../group_service_descriptor_config.php | 0 .../group_service_rest_client_config.php | 0 .../metric_service_client_config.json | 0 .../metric_service_descriptor_config.php | 0 .../metric_service_rest_client_config.php | 0 .../uptime_check_service_client_config.json | 0 ...uptime_check_service_descriptor_config.php | 0 ...ptime_check_service_rest_client_config.php | 0 Monitoring/tests/snippets/bootstrap.php | 64 ++++++++++ Monitoring/tests/system/bootstrap.php | 43 +++++++ Monitoring/tests/unit/bootstrap.php | 3 + {src/OsLogin => OsLogin}/CONTRIBUTING.md | 0 {src/OsLogin => OsLogin}/LICENSE | 0 {src/OsLogin => OsLogin}/README.md | 0 {src/OsLogin => OsLogin}/VERSION | 0 {src/OsLogin => OsLogin}/composer.json | 0 OsLogin/phpunit-snippets.xml.dist | 16 +++ OsLogin/phpunit-system.xml.dist | 16 +++ OsLogin/phpunit.xml.dist | 22 ++++ .../Gapic/OsLoginServiceGapicClient.php | 0 .../src}/V1beta/OsLoginServiceClient.php | 0 {src/OsLogin => OsLogin/src}/V1beta/README.md | 0 .../os_login_service_client_config.json | 0 .../os_login_service_descriptor_config.php | 0 .../os_login_service_rest_client_config.php | 0 OsLogin/tests/snippets/bootstrap.php | 64 ++++++++++ .../system}/OsLoginServiceClientTest.php | 0 OsLogin/tests/system/bootstrap.php | 43 +++++++ OsLogin/tests/unit/bootstrap.php | 3 + {src/PubSub => PubSub}/CONTRIBUTING.md | 0 {src/PubSub => PubSub}/LICENSE | 0 {src/PubSub => PubSub}/README.md | 0 {src/PubSub => PubSub}/VERSION | 0 {src/PubSub => PubSub}/composer.json | 0 PubSub/phpunit-snippets.xml.dist | 16 +++ PubSub/phpunit-system.xml.dist | 16 +++ PubSub/phpunit.xml.dist | 22 ++++ {src/PubSub => PubSub/src}/BatchPublisher.php | 0 .../src}/Connection/ConnectionInterface.php | 0 .../PubSub => PubSub/src}/Connection/Grpc.php | 0 .../src}/Connection/IamSubscription.php | 0 .../src}/Connection/IamTopic.php | 0 .../PubSub => PubSub/src}/Connection/Rest.php | 0 .../ServiceDefinition/pubsub-v1.json | 0 .../src}/IncomingMessageTrait.php | 0 {src/PubSub => PubSub/src}/Message.php | 0 {src/PubSub => PubSub/src}/PubSubClient.php | 0 .../src}/ResourceNameTrait.php | 0 {src/PubSub => PubSub/src}/Snapshot.php | 0 {src/PubSub => PubSub/src}/Subscription.php | 0 {src/PubSub => PubSub/src}/Topic.php | 0 .../src}/V1/Gapic/PublisherGapicClient.php | 0 .../src}/V1/Gapic/SubscriberGapicClient.php | 0 .../src}/V1/PublisherClient.php | 0 {src/PubSub => PubSub/src}/V1/README.md | 0 .../src}/V1/SubscriberClient.php | 0 .../V1/resources/publisher_client_config.json | 0 .../resources/publisher_descriptor_config.php | 0 .../publisher_rest_client_config.php | 0 .../resources/subscriber_client_config.json | 0 .../subscriber_descriptor_config.php | 0 .../subscriber_rest_client_config.php | 0 .../tests/snippets}/BatchPublisherTest.php | 0 .../tests/snippets}/MessageTest.php | 0 .../tests/snippets}/PubSubClientTest.php | 0 .../tests/snippets}/SnapshotTest.php | 0 .../tests/snippets}/SubscriptionTest.php | 0 .../tests/snippets}/TopicTest.php | 0 PubSub/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/ManageIAMPoliciesTest.php | 0 .../tests/system}/ManageSubscriptionsTest.php | 0 .../tests/system}/ManageTopicsTest.php | 0 .../tests/system}/PubSubTestCase.php | 0 .../tests/system}/PublishAndPullTest.php | 0 PubSub/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/BatchPublisherTest.php | 0 .../tests/unit}/Connection/GrpcTest.php | 0 .../unit}/Connection/IamSubscriptionTest.php | 0 .../tests/unit}/Connection/IamTopicTest.php | 0 .../tests/unit}/Connection/RestTest.php | 0 .../tests/unit}/IncomingMessageTraitTest.php | 0 .../tests/unit}/MessageTest.php | 0 .../tests/unit}/PubSubClientTest.php | 0 .../tests/unit}/ResourceNameTraitTest.php | 0 .../tests/unit}/SnapshotTest.php | 0 .../tests/unit}/SubscriptionTest.php | 0 .../tests/unit}/TopicTest.php | 0 PubSub/tests/unit/bootstrap.php | 3 + {src/Spanner => Spanner}/CONTRIBUTING.md | 0 {src/Spanner => Spanner}/LICENSE | 0 {src/Spanner => Spanner}/README.md | 0 {src/Spanner => Spanner}/VERSION | 0 {src/Spanner => Spanner}/composer.json | 0 Spanner/phpunit-snippets.xml.dist | 16 +++ Spanner/phpunit-system.xml.dist | 16 +++ Spanner/phpunit.xml.dist | 22 ++++ .../Admin/Database/V1/DatabaseAdminClient.php | 0 .../V1/Gapic/DatabaseAdminGapicClient.php | 0 .../database_admin_client_config.json | 0 .../database_admin_descriptor_config.php | 0 .../database_admin_rest_client_config.php | 0 .../V1/Gapic/InstanceAdminGapicClient.php | 0 .../Admin/Instance/V1/InstanceAdminClient.php | 0 .../instance_admin_client_config.json | 0 .../instance_admin_descriptor_config.php | 0 .../instance_admin_rest_client_config.php | 0 {src/Spanner => Spanner/src}/Bytes.php | 0 .../src}/Connection/ConnectionInterface.php | 0 .../src}/Connection/Grpc.php | 0 .../src}/Connection/IamDatabase.php | 0 .../src}/Connection/IamInstance.php | 0 .../src}/Connection/LongRunningConnection.php | 0 {src/Spanner => Spanner/src}/Database.php | 0 {src/Spanner => Spanner/src}/Date.php | 0 {src/Spanner => Spanner/src}/Duration.php | 0 {src/Spanner => Spanner/src}/Instance.php | 0 .../src}/InstanceConfiguration.php | 0 {src/Spanner => Spanner/src}/KeyRange.php | 0 {src/Spanner => Spanner/src}/KeySet.php | 0 {src/Spanner => Spanner/src}/Operation.php | 0 {src/Spanner => Spanner/src}/Result.php | 0 .../src}/Session/CacheSessionPool.php | 0 .../src}/Session/Session.php | 0 .../src}/Session/SessionPoolInterface.php | 0 {src/Spanner => Spanner/src}/Snapshot.php | 0 .../Spanner => Spanner/src}/SpannerClient.php | 0 {src/Spanner => Spanner/src}/Timestamp.php | 0 {src/Spanner => Spanner/src}/Transaction.php | 0 .../src}/TransactionConfigurationTrait.php | 0 .../src}/TransactionalReadInterface.php | 0 .../src}/TransactionalReadTrait.php | 0 .../src}/V1/Gapic/SpannerGapicClient.php | 0 {src/Spanner => Spanner/src}/V1/README.md | 0 .../src}/V1/SpannerClient.php | 0 .../V1/resources/spanner_client_config.json | 0 .../resources/spanner_descriptor_config.php | 0 .../resources/spanner_rest_client_config.php | 0 .../src}/ValueInterface.php | 0 {src/Spanner => Spanner/src}/ValueMapper.php | 0 .../tests/snippets}/BytesTest.php | 0 .../tests/snippets}/DatabaseTest.php | 0 .../tests/snippets}/DateTest.php | 0 .../tests/snippets}/DurationTest.php | 0 .../snippets}/InstanceConfigurationTest.php | 0 .../tests/snippets}/InstanceTest.php | 0 .../tests/snippets}/KeyRangeTest.php | 0 .../tests/snippets}/KeySetTest.php | 0 .../tests/snippets}/ResultTest.php | 0 .../Session/CacheSessionPoolTest.php | 0 .../tests/snippets}/SnapshotTest.php | 0 .../tests/snippets}/SpannerClientTest.php | 0 .../tests/snippets}/TimestampTest.php | 0 .../tests/snippets}/TransactionTest.php | 0 Spanner/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/AdminTest.php | 0 .../tests/system}/LargeReadTest.php | 0 .../tests/system}/OperationsTest.php | 0 .../tests/system}/QueryTest.php | 0 .../tests/system}/ReadTest.php | 0 .../tests/system}/SnapshotTest.php | 0 .../tests/system}/SpannerTestCase.php | 0 .../tests/system}/TransactionTest.php | 0 .../tests/system}/WriteTest.php | 0 Spanner/tests/system/bootstrap.php | 43 +++++++ .../system}/pcntl/AbortedErrorCausesRetry.php | 0 ...tTransactionsIncrementValueWithExecute.php | 0 ...rentTransactionsIncrementValueWithRead.php | 0 .../system}/pcntl/forked-process-test.php | 0 .../tests/unit}/BytesTest.php | 0 .../tests/unit}/Connection/GrpcTest.php | 0 .../unit}/Connection/IamDatabaseTest.php | 0 .../unit}/Connection/IamInstanceTest.php | 0 .../Connection/LongRunningConnectionTest.php | 0 .../tests/unit}/DatabaseTest.php | 0 .../tests/unit}/DateTest.php | 0 .../tests/unit}/DurationTest.php | 0 .../tests/unit}/Fixtures.php | 0 .../tests/unit}/InstanceConfigurationTest.php | 0 .../tests/unit}/InstanceTest.php | 0 .../tests/unit}/KeyRangeTest.php | 0 .../tests/unit}/KeySetTest.php | 0 .../tests/unit}/OperationTest.php | 0 .../tests/unit}/ResultTest.php | 0 .../tests/unit}/ResultTestTrait.php | 0 .../unit}/Session/CacheSessionPoolTest.php | 0 .../tests/unit}/SnapshotTest.php | 0 .../tests/unit}/SpannerClientTest.php | 0 .../tests/unit}/TimestampTest.php | 0 .../TransactionConfigurationTraitTest.php | 0 .../tests/unit}/TransactionTest.php | 0 .../tests/unit}/TransactionTypeTest.php | 0 .../tests/unit}/ValueMapperTest.php | 0 Spanner/tests/unit/bootstrap.php | 3 + .../tests/unit}/fixtures/instance.json | 0 .../streaming-read-acceptance-test.json | 0 {src/Speech => Speech}/CONTRIBUTING.md | 0 {src/Speech => Speech}/LICENSE | 0 {src/Speech => Speech}/README.md | 0 {src/Speech => Speech}/VERSION | 0 {src/Speech => Speech}/composer.json | 0 Speech/phpunit-snippets.xml.dist | 16 +++ Speech/phpunit-system.xml.dist | 16 +++ Speech/phpunit.xml.dist | 22 ++++ .../src}/Connection/ConnectionInterface.php | 0 .../Speech => Speech/src}/Connection/Rest.php | 0 .../ServiceDefinition/speech-v1.json | 0 {src/Speech => Speech/src}/Operation.php | 0 {src/Speech => Speech/src}/Result.php | 0 {src/Speech => Speech/src}/SpeechClient.php | 0 .../src}/V1/Gapic/SpeechGapicClient.php | 0 {src/Speech => Speech/src}/V1/README.md | 0 .../Speech => Speech/src}/V1/SpeechClient.php | 0 .../V1/resources/speech_client_config.json | 0 .../V1/resources/speech_descriptor_config.php | 0 .../resources/speech_rest_client_config.php | 0 .../src}/V1beta1/Gapic/SpeechGapicClient.php | 0 {src/Speech => Speech/src}/V1beta1/README.md | 0 .../src}/V1beta1/SpeechClient.php | 0 .../resources/speech_client_config.json | 0 .../resources/speech_descriptor_config.php | 0 .../resources/speech_rest_client_config.php | 0 .../tests/snippets}/OperationTest.php | 0 .../tests/snippets}/ResultTest.php | 0 .../tests/snippets}/SpeechClientTest.php | 0 Speech/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/snippets/fixtures}/demo.flac | Bin Speech/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/Connection/RestTest.php | 0 .../tests/unit}/OperationTest.php | 0 .../tests/unit}/ResultTest.php | 0 .../tests/unit}/SpeechClientTest.php | 0 Speech/tests/unit/bootstrap.php | 3 + .../tests}/unit/data/brooklyn.flac | Bin {src/Storage => Storage}/CONTRIBUTING.md | 0 {src/Storage => Storage}/LICENSE | 0 {src/Storage => Storage}/README.md | 0 {src/Storage => Storage}/VERSION | 0 {src/Storage => Storage}/composer.json | 0 Storage/phpunit-snippets.xml.dist | 16 +++ Storage/phpunit-system.xml.dist | 16 +++ Storage/phpunit.xml.dist | 22 ++++ {src/Storage => Storage/src}/Acl.php | 0 {src/Storage => Storage/src}/Bucket.php | 0 .../src}/Connection/ConnectionInterface.php | 0 .../src}/Connection/IamBucket.php | 0 .../src}/Connection/Rest.php | 0 .../ServiceDefinition/storage-v1.json | 0 .../src}/EncryptionTrait.php | 0 {src/Storage => Storage/src}/Notification.php | 0 .../src}/ObjectIterator.php | 0 .../src}/ObjectPageIterator.php | 0 {src/Storage => Storage/src}/ReadStream.php | 0 .../Storage => Storage/src}/StorageClient.php | 0 .../Storage => Storage/src}/StorageObject.php | 0 .../Storage => Storage/src}/StreamWrapper.php | 0 {src/Storage => Storage/src}/WriteStream.php | 0 .../tests/snippets}/AclTest.php | 0 .../tests/snippets}/BucketTest.php | 0 .../tests/snippets}/NotificationTest.php | 0 .../tests/snippets}/StorageClientTest.php | 0 .../tests/snippets}/StorageObjectTest.php | 0 Storage/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/ManageAclTest.php | 0 .../tests/system}/ManageBucketsTest.php | 0 .../tests/system}/ManageNotificationsTest.php | 0 .../tests/system}/ManageObjectsTest.php | 0 .../tests/system}/README.md | 0 .../tests/system}/RequesterPaysTest.php | 0 .../tests/system}/SignedUrlTest.php | 0 .../tests/system}/StorageTestCase.php | 0 .../system}/StreamWrapper/DirectoryTest.php | 0 .../tests/system}/StreamWrapper/ImageTest.php | 0 .../tests/system}/StreamWrapper/ReadTest.php | 0 .../system}/StreamWrapper/RenameTest.php | 0 .../StreamWrapper/StreamWrapperTestCase.php | 0 .../system}/StreamWrapper/UrlStatTest.php | 0 .../tests/system}/StreamWrapper/WriteTest.php | 0 .../tests/system}/UploadObjectsTest.php | 0 Storage/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/AclTest.php | 0 .../tests/unit}/BucketTest.php | 0 .../tests/unit}/Connection/IamBucketTest.php | 0 .../tests/unit}/Connection/RestTest.php | 0 .../tests/unit}/EncryptionTraitTest.php | 0 .../tests/unit}/NotificationTest.php | 0 .../tests/unit}/ObjectIteratorTest.php | 0 .../tests/unit}/ObjectPageIteratorTest.php | 0 .../tests/unit}/ReadStreamTest.php | 0 .../tests/unit}/RequesterPaysTest.php | 0 .../tests/unit}/StorageClientTest.php | 0 .../tests/unit}/StorageObjectTest.php | 0 .../tests/unit}/StreamWrapperTest.php | 0 .../tests/unit}/WriteStreamTest.php | 0 Storage/tests/unit/bootstrap.php | 3 + {tests => Storage/tests}/unit/data/logo.svg | 0 {src/Trace => Trace}/CONTRIBUTING.md | 0 {src/Trace => Trace}/LICENSE | 0 {src/Trace => Trace}/README.md | 0 {src/Trace => Trace}/VERSION | 0 {src/Trace => Trace}/composer.json | 0 Trace/phpunit-snippets.xml.dist | 16 +++ Trace/phpunit-system.xml.dist | 16 +++ Trace/phpunit.xml.dist | 22 ++++ {src/Trace => Trace/src}/Annotation.php | 0 {src/Trace => Trace/src}/AttributeTrait.php | 0 {src/Trace => Trace/src}/Attributes.php | 0 .../src}/Connection/ConnectionInterface.php | 0 {src/Trace => Trace/src}/Connection/Rest.php | 0 .../ServiceDefinition/trace-v2.json | 0 {src/Trace => Trace/src}/Link.php | 0 {src/Trace => Trace/src}/MessageEvent.php | 0 {src/Trace => Trace/src}/Span.php | 0 {src/Trace => Trace/src}/StackTrace.php | 0 {src/Trace => Trace/src}/Status.php | 0 {src/Trace => Trace/src}/TimeEvent.php | 0 {src/Trace => Trace/src}/TimestampTrait.php | 0 {src/Trace => Trace/src}/Trace.php | 0 {src/Trace => Trace/src}/TraceClient.php | 0 .../src}/V2/Gapic/TraceServiceGapicClient.php | 0 {src/Trace => Trace/src}/V2/README.md | 0 .../src}/V2/TraceServiceClient.php | 0 .../trace_service_client_config.json | 0 .../trace_service_descriptor_config.php | 0 .../trace_service_rest_client_config.php | 0 .../tests/snippets}/AnnotationTest.php | 0 .../tests/snippets}/AttributesTest.php | 0 .../tests/snippets}/LinkTest.php | 0 .../tests/snippets}/MessageEventTest.php | 0 .../tests/snippets}/SpanTest.php | 0 .../tests/snippets}/StackTraceTest.php | 0 .../tests/snippets}/StatusTest.php | 0 .../tests/snippets}/TraceClientTest.php | 0 .../tests/snippets}/TraceTest.php | 0 Trace/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/BasicTest.php | 0 Trace/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/AnnotationTest.php | 0 .../tests/unit}/AttributeTraitTest.php | 0 .../tests/unit}/AttributesTest.php | 0 .../tests/unit}/Connection/RestTest.php | 0 .../Trace => Trace/tests/unit}/LinkTest.php | 0 .../tests/unit}/MessageEventTest.php | 0 .../Trace => Trace/tests/unit}/SpanTest.php | 0 .../tests/unit}/StackTraceTest.php | 0 .../Trace => Trace/tests/unit}/StatusTest.php | 0 .../tests/unit}/TimestampTraitTest.php | 0 .../tests/unit}/TraceClientTest.php | 0 .../Trace => Trace/tests/unit}/TraceTest.php | 0 Trace/tests/unit/bootstrap.php | 3 + {src/Translate => Translate}/CONTRIBUTING.md | 0 {src/Translate => Translate}/LICENSE | 0 {src/Translate => Translate}/README.md | 0 {src/Translate => Translate}/VERSION | 0 {src/Translate => Translate}/composer.json | 0 Translate/phpunit-snippets.xml.dist | 16 +++ Translate/phpunit-system.xml.dist | 16 +++ Translate/phpunit.xml.dist | 22 ++++ .../src}/Connection/ConnectionInterface.php | 0 .../src}/Connection/Rest.php | 0 .../ServiceDefinition/translate-v2.json | 0 .../src}/TranslateClient.php | 0 .../tests/snippets}/TranslateClientTest.php | 0 Translate/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/TranslateTest.php | 0 .../tests/system}/TranslateTestCase.php | 0 Translate/tests/system/bootstrap.php | 43 +++++++ .../tests/unit}/Connection/RestTest.php | 0 .../tests/unit}/TranslateClientTest.php | 0 Translate/tests/unit/bootstrap.php | 3 + .../CONTRIBUTING.md | 0 .../LICENSE | 0 .../README.md | 0 .../VERSION | 0 .../composer.json | 0 VideoIntelligence/phpunit-snippets.xml.dist | 16 +++ VideoIntelligence/phpunit-system.xml.dist | 16 +++ VideoIntelligence/phpunit.xml.dist | 22 ++++ .../VideoIntelligenceServiceGapicClient.php | 0 .../src}/V1/README.md | 0 .../V1/VideoIntelligenceServiceClient.php | 0 ...eo_intelligence_service_client_config.json | 0 ...intelligence_service_descriptor_config.php | 0 ...ntelligence_service_rest_client_config.php | 0 .../VideoIntelligenceServiceGapicClient.php | 0 .../src}/V1beta1/README.md | 0 .../VideoIntelligenceServiceClient.php | 0 ...eo_intelligence_service_client_config.json | 0 ...intelligence_service_descriptor_config.php | 0 ...ntelligence_service_rest_client_config.php | 0 .../VideoIntelligenceServiceGapicClient.php | 0 .../src}/V1beta2/README.md | 0 .../VideoIntelligenceServiceClient.php | 0 ...eo_intelligence_service_client_config.json | 0 ...intelligence_service_descriptor_config.php | 0 ...ntelligence_service_rest_client_config.php | 0 .../tests/snippets/bootstrap.php | 64 ++++++++++ VideoIntelligence/tests/system/bootstrap.php | 43 +++++++ VideoIntelligence/tests/unit/bootstrap.php | 3 + {src/Vision => Vision}/CONTRIBUTING.md | 0 {src/Vision => Vision}/LICENSE | 0 {src/Vision => Vision}/README.md | 0 {src/Vision => Vision}/VERSION | 0 {src/Vision => Vision}/composer.json | 0 Vision/phpunit-snippets.xml.dist | 16 +++ Vision/phpunit-system.xml.dist | 16 +++ Vision/phpunit.xml.dist | 22 ++++ {src/Vision => Vision/src}/Annotation.php | 0 .../src}/Annotation/AbstractFeature.php | 0 .../src}/Annotation/CropHint.php | 0 .../src}/Annotation/Document.php | 0 .../src}/Annotation/Entity.php | 0 .../Vision => Vision/src}/Annotation/Face.php | 0 .../src}/Annotation/Face/Landmarks.php | 0 .../src}/Annotation/FeatureInterface.php | 0 .../src}/Annotation/ImageProperties.php | 0 .../src}/Annotation/LikelihoodTrait.php | 0 .../src}/Annotation/SafeSearch.php | 0 {src/Vision => Vision/src}/Annotation/Web.php | 0 .../src}/Annotation/Web/WebEntity.php | 0 .../src}/Annotation/Web/WebImage.php | 0 .../src}/Annotation/Web/WebPage.php | 0 .../src}/Connection/ConnectionInterface.php | 0 .../Vision => Vision/src}/Connection/Rest.php | 0 .../ServiceDefinition/vision-v1.json | 0 {src/Vision => Vision/src}/Image.php | 0 .../V1/Gapic/ImageAnnotatorGapicClient.php | 0 .../src}/V1/ImageAnnotatorClient.php | 0 {src/Vision => Vision/src}/V1/README.md | 0 .../image_annotator_client_config.json | 0 .../image_annotator_descriptor_config.php | 0 .../image_annotator_rest_client_config.php | 0 {src/Vision => Vision/src}/VisionClient.php | 0 .../Annotation/AbstractFeatureTest.php | 0 .../snippets}/Annotation/CropHintTest.php | 0 .../snippets}/Annotation/DocumentTest.php | 0 .../tests/snippets}/Annotation/EntityTest.php | 0 .../Annotation/Face/LandmarksTest.php | 0 .../tests/snippets}/Annotation/FaceTest.php | 0 .../Annotation/ImagePropertiesTest.php | 0 .../snippets}/Annotation/SafeSearchTest.php | 0 .../Annotation/Web/WebEntityTest.php | 0 .../snippets}/Annotation/Web/WebImageTest.php | 0 .../snippets}/Annotation/Web/WebPageTest.php | 0 .../tests/snippets}/Annotation/WebTest.php | 0 .../tests/snippets}/AnnotationTest.php | 0 .../tests/snippets}/ImageTest.php | 0 .../tests/snippets}/VisionClientTest.php | 0 Vision/tests/snippets/bootstrap.php | 64 ++++++++++ .../tests/system}/AnnotationsTest.php | 0 .../tests/system}/VisionTestCase.php | 0 Vision/tests/system/bootstrap.php | 43 +++++++ .../tests/system}/fixtures/google.jpg | Bin .../tests/system}/fixtures/landmark.jpg | Bin .../tests/system}/fixtures/obama.jpg | Bin .../tests/system}/fixtures/text.jpg | Bin .../tests/unit}/Annotation/CropHintTest.php | 0 .../tests/unit}/Annotation/DocumentTest.php | 0 .../tests/unit}/Annotation/EntityTest.php | 0 .../unit}/Annotation/Face/LandmarksTest.php | 0 .../tests/unit}/Annotation/FaceTest.php | 0 .../unit}/Annotation/LikelihoodTraitTest.php | 0 .../tests/unit}/Annotation/SafeSearchTest.php | 0 .../unit}/Annotation/Web/WebEntityTest.php | 0 .../unit}/Annotation/Web/WebImageTest.php | 0 .../unit}/Annotation/Web/WebPageTest.php | 0 .../tests/unit}/Annotation/WebTest.php | 0 .../tests/unit}/AnnotationTest.php | 0 .../tests/unit}/Connection/RestTest.php | 0 .../Vision => Vision/tests/unit}/Fixtures.php | 0 .../tests/unit}/ImageTest.php | 0 .../tests/unit}/VisionClientTest.php | 0 Vision/tests/unit/bootstrap.php | 3 + .../tests/unit}/fixtures/eiffel-tower.jpg | Bin .../tests/unit}/fixtures/face-landmarks.json | 0 1185 files changed, 3828 insertions(+) rename {src/BigQuery => BigQuery}/CONTRIBUTING.md (100%) rename {src/BigQuery => BigQuery}/LICENSE (100%) rename {src/BigQuery => BigQuery}/README.md (100%) rename {src/BigQuery => BigQuery}/VERSION (100%) rename {src/BigQuery => BigQuery}/composer.json (100%) create mode 100644 BigQuery/phpunit-snippets.xml.dist create mode 100644 BigQuery/phpunit-system.xml.dist create mode 100644 BigQuery/phpunit.xml.dist rename {src/BigQuery => BigQuery/src}/BigQueryClient.php (100%) rename {src/BigQuery => BigQuery/src}/Bytes.php (100%) rename {src/BigQuery => BigQuery/src}/Connection/ConnectionInterface.php (100%) rename {src/BigQuery => BigQuery/src}/Connection/Rest.php (100%) rename {src/BigQuery => BigQuery/src}/Connection/ServiceDefinition/bigquery-v2.json (100%) rename {src/BigQuery => BigQuery/src}/CopyJobConfiguration.php (100%) rename {src/BigQuery => BigQuery/src}/Dataset.php (100%) rename {src/BigQuery => BigQuery/src}/Date.php (100%) rename {src/BigQuery => BigQuery/src}/Exception/JobException.php (100%) rename {src/BigQuery => BigQuery/src}/ExtractJobConfiguration.php (100%) rename {src/BigQuery => BigQuery/src}/InsertResponse.php (100%) rename {src/BigQuery => BigQuery/src}/Job.php (100%) rename {src/BigQuery => BigQuery/src}/JobConfigurationInterface.php (100%) rename {src/BigQuery => BigQuery/src}/JobConfigurationTrait.php (100%) rename {src/BigQuery => BigQuery/src}/JobWaitTrait.php (100%) rename {src/BigQuery => BigQuery/src}/LoadJobConfiguration.php (100%) rename {src/BigQuery => BigQuery/src}/QueryJobConfiguration.php (100%) rename {src/BigQuery => BigQuery/src}/QueryResults.php (100%) rename {src/BigQuery => BigQuery/src}/Table.php (100%) rename {src/BigQuery => BigQuery/src}/Time.php (100%) rename {src/BigQuery => BigQuery/src}/Timestamp.php (100%) rename {src/BigQuery => BigQuery/src}/ValueInterface.php (100%) rename {src/BigQuery => BigQuery/src}/ValueMapper.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/BigQueryClientTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/BytesTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/CopyJobConfigurationTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/DatasetTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/DateTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/ExtractJobConfigurationTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/InsertResponseTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/JobTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/LoadJobConfigurationTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/QueryJobConfigurationTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/QueryResultsTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/TableTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/TimeTest.php (100%) rename {tests/snippets/BigQuery => BigQuery/tests/snippets}/TimestampTest.php (100%) create mode 100644 BigQuery/tests/snippets/bootstrap.php rename {tests/system/BigQuery => BigQuery/tests/system}/BigQueryTestCase.php (100%) rename {tests/system/BigQuery => BigQuery/tests/system}/LoadDataAndQueryTest.php (100%) rename {tests/system/BigQuery => BigQuery/tests/system}/ManageDatasetsTest.php (100%) rename {tests/system/BigQuery => BigQuery/tests/system}/ManageJobsTest.php (100%) rename {tests/system/BigQuery => BigQuery/tests/system}/ManageTablesTest.php (100%) rename {tests/system/BigQuery => BigQuery/tests/system}/README.md (100%) create mode 100644 BigQuery/tests/system/bootstrap.php rename {tests => BigQuery/tests}/system/data/table-data.json (100%) rename {tests => BigQuery/tests}/system/data/table-schema.json (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/BigQueryClientTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/BytesTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/Connection/RestTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/CopyJobConfigurationTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/DatasetTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/DateTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/Exception/JobExceptionTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/ExtractJobConfigurationTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/InsertResponseTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/JobConfigurationTraitTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/JobTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/JobWaitTraitTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/LoadJobConfigurationTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/QueryJobConfigurationTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/QueryResultsTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/TableTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/TimeTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/TimestampTest.php (100%) rename {tests/unit/BigQuery => BigQuery/tests/unit}/ValueMapperTest.php (100%) create mode 100644 BigQuery/tests/unit/bootstrap.php rename {src/Bigtable => Bigtable}/CONTRIBUTING.md (100%) rename {src/Bigtable => Bigtable}/LICENSE (100%) rename {src/Bigtable => Bigtable}/README.md (100%) rename {src/Bigtable => Bigtable}/VERSION (100%) rename {src/Bigtable => Bigtable}/composer.json (100%) create mode 100644 Bigtable/phpunit-snippets.xml.dist create mode 100644 Bigtable/phpunit-system.xml.dist create mode 100644 Bigtable/phpunit.xml.dist rename {src/Bigtable => Bigtable/src}/Admin/README.md (100%) rename {src/Bigtable => Bigtable/src}/Admin/V2/BigtableInstanceAdminClient.php (100%) rename {src/Bigtable => Bigtable/src}/Admin/V2/BigtableTableAdminClient.php (100%) rename {src/Bigtable => Bigtable/src}/Admin/V2/Gapic/BigtableInstanceAdminGapicClient.php (100%) rename {src/Bigtable => Bigtable/src}/Admin/V2/Gapic/BigtableTableAdminGapicClient.php (100%) rename {src/Bigtable => Bigtable/src}/Admin/V2/README.md (100%) rename {src/Bigtable => Bigtable/src}/Admin/V2/resources/bigtable_instance_admin_client_config.json (100%) rename {src/Bigtable => Bigtable/src}/Admin/V2/resources/bigtable_instance_admin_descriptor_config.php (100%) rename {src/Bigtable => Bigtable/src}/Admin/V2/resources/bigtable_instance_admin_rest_client_config.php (100%) rename {src/Bigtable => Bigtable/src}/Admin/V2/resources/bigtable_table_admin_client_config.json (100%) rename {src/Bigtable => Bigtable/src}/Admin/V2/resources/bigtable_table_admin_descriptor_config.php (100%) rename {src/Bigtable => Bigtable/src}/Admin/V2/resources/bigtable_table_admin_rest_client_config.php (100%) rename {src/Bigtable => Bigtable/src}/V2/BigtableClient.php (100%) rename {src/Bigtable => Bigtable/src}/V2/Gapic/BigtableGapicClient.php (100%) rename {src/Bigtable => Bigtable/src}/V2/README.md (100%) rename {src/Bigtable => Bigtable/src}/V2/resources/bigtable_client_config.json (100%) rename {src/Bigtable => Bigtable/src}/V2/resources/bigtable_descriptor_config.php (100%) rename {src/Bigtable => Bigtable/src}/V2/resources/bigtable_rest_client_config.php (100%) create mode 100644 Bigtable/tests/snippets/bootstrap.php rename {tests/system/Bigtable => Bigtable/tests/system}/BigtableInstanceAdminTest.php (100%) create mode 100644 Bigtable/tests/system/bootstrap.php create mode 100644 Bigtable/tests/unit/bootstrap.php rename {src/Container => Container}/CONTRIBUTING.md (100%) rename {src/Container => Container}/LICENSE (100%) rename {src/Container => Container}/README.md (100%) rename {src/Container => Container}/VERSION (100%) rename {src/Container => Container}/composer.json (100%) create mode 100644 Container/phpunit-snippets.xml.dist create mode 100644 Container/phpunit-system.xml.dist create mode 100644 Container/phpunit.xml.dist rename {src/Container => Container/src}/V1/ClusterManagerClient.php (100%) rename {src/Container => Container/src}/V1/Gapic/ClusterManagerGapicClient.php (100%) rename {src/Container => Container/src}/V1/README.md (100%) rename {src/Container => Container/src}/V1/resources/cluster_manager_client_config.json (100%) rename {src/Container => Container/src}/V1/resources/cluster_manager_descriptor_config.php (100%) rename {src/Container => Container/src}/V1/resources/cluster_manager_rest_client_config.php (100%) create mode 100644 Container/tests/snippets/bootstrap.php rename {tests/system/Container => Container/tests/system}/ClusterManagerClientTest.php (100%) create mode 100644 Container/tests/system/bootstrap.php create mode 100644 Container/tests/unit/bootstrap.php rename {src/Core => Core}/CONTRIBUTING.md (100%) rename {src/Core => Core}/LICENSE (100%) rename {src/Core => Core}/README.md (100%) rename {src/Core => Core}/VERSION (100%) rename {src/Core => Core}/composer.json (100%) create mode 100644 Core/phpunit-snippets.xml.dist create mode 100644 Core/phpunit-system.xml.dist create mode 100644 Core/phpunit.xml.dist rename {src/Core => Core/src}/AnonymousCredentials.php (100%) rename {src/Core => Core/src}/ArrayTrait.php (100%) create mode 100644 Core/src/Batch/BatchConfig.php rename {src/Core => Core/src}/Batch/BatchDaemon.php (100%) rename {src/Core => Core/src}/Batch/BatchDaemonTrait.php (100%) rename {src/Core => Core/src}/Batch/BatchJob.php (100%) rename {src/Core => Core/src}/Batch/BatchRunner.php (100%) rename {src/Core => Core/src}/Batch/BatchTrait.php (100%) rename {src/Core => Core/src}/Batch/ConfigStorageInterface.php (100%) rename {src/Core => Core/src}/Batch/HandleFailureTrait.php (100%) rename {src/Core => Core/src}/Batch/InMemoryConfigStorage.php (100%) rename {src/Core => Core/src}/Batch/ProcessItemInterface.php (100%) rename {src/Core => Core/src}/Batch/Retry.php (100%) rename {src/Core => Core/src}/Batch/SysvConfigStorage.php (100%) rename {src/Core => Core/src}/Batch/SysvProcessor.php (100%) rename {src/Core => Core/src}/Blob.php (100%) rename {src/Core => Core/src}/CallTrait.php (100%) rename {src/Core => Core/src}/ClientTrait.php (100%) rename {src/Core => Core/src}/Compute/Metadata.php (100%) rename {src/Core => Core/src}/Compute/Metadata/Readers/ReaderInterface.php (100%) rename {src/Core => Core/src}/Compute/Metadata/Readers/StreamReader.php (100%) rename {src/Core => Core/src}/ConcurrencyControlTrait.php (100%) rename {src/Core => Core/src}/DebugInfoTrait.php (100%) rename {src/Core => Core/src}/Duration.php (100%) rename {src/Core => Core/src}/EmulatorTrait.php (100%) rename {src/Core => Core/src}/Exception/AbortedException.php (100%) rename {src/Core => Core/src}/Exception/BadRequestException.php (100%) rename {src/Core => Core/src}/Exception/ConflictException.php (100%) rename {src/Core => Core/src}/Exception/DeadlineExceededException.php (100%) rename {src/Core => Core/src}/Exception/FailedPreconditionException.php (100%) rename {src/Core => Core/src}/Exception/GoogleException.php (100%) rename {src/Core => Core/src}/Exception/NotFoundException.php (100%) rename {src/Core => Core/src}/Exception/ServerException.php (100%) rename {src/Core => Core/src}/Exception/ServiceException.php (100%) rename {src/Core => Core/src}/ExponentialBackoff.php (100%) rename {src/Core => Core/src}/GeoPoint.php (100%) rename {src/Core => Core/src}/GrpcRequestWrapper.php (100%) rename {src/Core => Core/src}/GrpcTrait.php (100%) rename {src/Core => Core/src}/Iam/Iam.php (100%) rename {src/Core => Core/src}/Iam/IamConnectionInterface.php (100%) rename {src/Core => Core/src}/Iam/PolicyBuilder.php (100%) rename {src/Core => Core/src}/Int64.php (100%) rename {src/Core => Core/src}/Iterator/ItemIterator.php (100%) rename {src/Core => Core/src}/Iterator/ItemIteratorTrait.php (100%) rename {src/Core => Core/src}/Iterator/PageIterator.php (100%) rename {src/Core => Core/src}/Iterator/PageIteratorTrait.php (100%) rename {src/Core => Core/src}/JsonTrait.php (100%) rename {src/Core => Core/src}/Lock/FlockLock.php (100%) rename {src/Core => Core/src}/Lock/LockInterface.php (100%) rename {src/Core => Core/src}/Lock/LockTrait.php (100%) rename {src/Core => Core/src}/Lock/SemaphoreLock.php (100%) rename {src/Core => Core/src}/Lock/SymfonyLockAdapter.php (100%) rename {src/Core => Core/src}/Logger/AppEngineFlexFormatter.php (100%) rename {src/Core => Core/src}/Logger/AppEngineFlexHandler.php (100%) rename {src/Core => Core/src}/LongRunning/LROTrait.php (100%) rename {src/Core => Core/src}/LongRunning/LongRunningConnectionInterface.php (100%) rename {src/Core => Core/src}/LongRunning/LongRunningOperation.php (100%) rename {src/Core => Core/src}/LongRunning/OperationResponseTrait.php (100%) rename {src/Core => Core/src}/PhpArray.php (100%) rename {src/Core => Core/src}/Report/EmptyMetadataProvider.php (100%) rename {src/Core => Core/src}/Report/GAEFlexMetadataProvider.php (100%) rename {src/Core => Core/src}/Report/MetadataProviderInterface.php (100%) rename {src/Core => Core/src}/Report/MetadataProviderUtils.php (100%) rename {src/Core => Core/src}/Report/SimpleMetadataProvider.php (100%) rename {src/Core => Core/src}/RequestBuilder.php (100%) rename {src/Core => Core/src}/RequestWrapper.php (100%) rename {src/Core => Core/src}/RequestWrapperTrait.php (100%) rename {src/Core => Core/src}/RestTrait.php (100%) rename {src/Core => Core/src}/Retry.php (100%) rename {src/Core => Core/src}/RetryDeciderTrait.php (100%) rename {src/Core => Core/src}/ServiceBuilder.php (100%) rename {src/Core => Core/src}/SysvTrait.php (100%) rename {src/Core => Core/src}/Testing/ArrayHasSameValuesToken.php (100%) rename {src/Core => Core/src}/Testing/CheckForClassTrait.php (100%) rename {src/Core => Core/src}/Testing/DocBlockStripSpaces.php (100%) rename {src/Core => Core/src}/Testing/GrpcTestTrait.php (100%) rename {src/Core => Core/src}/Testing/KeyPairGenerateTrait.php (100%) rename {src/Core => Core/src}/Testing/Lock/MockGlobals.php (100%) rename {src/Core => Core/src}/Testing/Lock/MockValues.php (100%) rename {src/Core => Core/src}/Testing/README.md (100%) rename {src/Core => Core/src}/Testing/Snippet/Container.php (100%) rename {src/Core => Core/src}/Testing/Snippet/Coverage/Coverage.php (100%) rename {src/Core => Core/src}/Testing/Snippet/Coverage/Scanner.php (100%) rename {src/Core => Core/src}/Testing/Snippet/Coverage/ScannerInterface.php (100%) rename {src/Core => Core/src}/Testing/Snippet/Parser/InvokeResult.php (100%) rename {src/Core => Core/src}/Testing/Snippet/Parser/Parser.php (100%) rename {src/Core => Core/src}/Testing/Snippet/Parser/Snippet.php (100%) rename {src/Core => Core/src}/Testing/Snippet/SnippetTestCase.php (100%) rename {src/Core => Core/src}/Testing/StubTrait.php (100%) rename {src/Core => Core/src}/Testing/System/DeletionQueue.php (100%) rename {src/Core => Core/src}/Testing/System/SystemTestCase.php (100%) rename {src/Core => Core/src}/Testing/TestHelpers.php (100%) rename {src/Core => Core/src}/Timestamp.php (100%) rename {src/Core => Core/src}/Upload/AbstractUploader.php (100%) rename {src/Core => Core/src}/Upload/MultipartUploader.php (100%) rename {src/Core => Core/src}/Upload/ResumableUploader.php (100%) rename {src/Core => Core/src}/Upload/SignedUrlUploader.php (100%) rename {src/Core => Core/src}/Upload/StreamableUploader.php (100%) rename {src/Core => Core/src}/UriTrait.php (100%) rename {src/Core => Core/src}/ValidateTrait.php (100%) rename {src/Core => Core/src}/ValueMapperTrait.php (100%) rename {src/Core => Core/src}/WhitelistTrait.php (100%) rename {src/Core => Core/src}/bin/google-cloud-batch (100%) rename {tests/snippets/Core => Core/tests/snippets}/BlobTest.php (100%) rename {tests/snippets/Core => Core/tests/snippets}/Compute/MetadataTest.php (100%) rename {tests/snippets/Core => Core/tests/snippets}/DurationTest.php (100%) rename {tests/snippets/Core => Core/tests/snippets}/GeoPointTest.php (100%) rename {tests/snippets/Core => Core/tests/snippets}/Iam/IamTest.php (100%) rename {tests/snippets/Core => Core/tests/snippets}/Iam/PolicyBuilderTest.php (100%) rename {tests/snippets/Core => Core/tests/snippets}/Int64Test.php (100%) rename {tests/snippets/Core => Core/tests/snippets}/LongRunning/LongRunningOperationTest.php (100%) rename {tests/snippets/Core => Core/tests/snippets}/ServiceBuilderTest.php (100%) rename {tests/snippets/Core => Core/tests/snippets}/Testing/Snippet/Parser/ParserTest.php (100%) rename {tests/snippets/Core => Core/tests/snippets}/TimestampTest.php (100%) create mode 100644 Core/tests/snippets/bootstrap.php rename {tests/system/Core => Core/tests/system}/Batch/BatchRunnerTest.php (100%) rename {tests/system/Core => Core/tests/system}/Batch/MyJob.php (100%) create mode 100644 Core/tests/system/bootstrap.php rename {tests/unit/Core => Core/tests/unit}/AnonymousCredentialsTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/ArrayTraitTest.php (100%) create mode 100644 Core/tests/unit/Batch/BatchConfigTest.php rename {tests/unit/Core => Core/tests/unit}/Batch/BatchDaemonTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Batch/BatchJobTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Batch/BatchRunnerTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Batch/BatchTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Batch/HandleFailureTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Batch/InMemoryConfigStorageTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Batch/RetryTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Batch/SysvConfigStorageTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Batch/SysvProcessorTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/CallTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/ClientTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Compute/MetadataTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/ConcurrencyControlTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/DurationTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/EmulatorTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Exception/NotFoundExceptionTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Exception/ServiceExceptionTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/ExponentialBackoffTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Fixtures.php (100%) rename {tests/unit/Core => Core/tests/unit}/GrpcRequestWrapperTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/GrpcTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Iam/IamTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Iam/PolicyBuilderTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Int64Test.php (100%) rename {tests/unit/Core => Core/tests/unit}/Iterator/ItemIteratorTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Iterator/PageIteratorTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/JsonTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Lock/CommonLockTrait.php (100%) rename {tests/unit/Core => Core/tests/unit}/Lock/FlockLockTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Lock/SemaphoreLockTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Logger/AppEngineFlexHandlerTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Report/EmptyMetadataProviderTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Report/GAEFlexMetadataProviderTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Report/MetadataProviderUtilsTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Report/SimpleMetadataProviderTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/RequestBuilderTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/RequestWrapperTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/RestTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/RetryDeciderTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/ServiceBuilderTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/ServicesNotFoundTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/SysvTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/TimestampTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Upload/MultipartUploaderTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Upload/ResumableUploaderTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Upload/SignedUrlUploaderTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/Upload/StreamableUploaderTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/UriTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/ValidateTraitTest.php (100%) rename {tests/unit/Core => Core/tests/unit}/WhitelistTraitTest.php (100%) create mode 100644 Core/tests/unit/bootstrap.php rename {tests/unit/Core => Core/tests/unit}/fixtures/empty-json-key-fixture.json (100%) rename {tests/unit/Core => Core/tests/unit}/fixtures/json-key-fixture.json (100%) rename {tests/unit/Core => Core/tests/unit}/fixtures/service-fixture.json (100%) rename {src/Dataproc => Dataproc}/CONTRIBUTING.md (100%) rename {src/Dataproc => Dataproc}/LICENSE (100%) rename {src/Dataproc => Dataproc}/README.md (100%) rename {src/Dataproc => Dataproc}/VERSION (100%) rename {src/Dataproc => Dataproc}/composer.json (100%) create mode 100644 Dataproc/phpunit-snippets.xml.dist create mode 100644 Dataproc/phpunit-system.xml.dist create mode 100644 Dataproc/phpunit.xml.dist rename {src/Dataproc => Dataproc/src}/V1/ClusterControllerClient.php (100%) rename {src/Dataproc => Dataproc/src}/V1/Gapic/ClusterControllerGapicClient.php (100%) rename {src/Dataproc => Dataproc/src}/V1/Gapic/JobControllerGapicClient.php (100%) rename {src/Dataproc => Dataproc/src}/V1/JobControllerClient.php (100%) rename {src/Dataproc => Dataproc/src}/V1/README.md (100%) rename {src/Dataproc => Dataproc/src}/V1/resources/cluster_controller_client_config.json (100%) rename {src/Dataproc => Dataproc/src}/V1/resources/cluster_controller_descriptor_config.php (100%) rename {src/Dataproc => Dataproc/src}/V1/resources/cluster_controller_rest_client_config.php (100%) rename {src/Dataproc => Dataproc/src}/V1/resources/job_controller_client_config.json (100%) rename {src/Dataproc => Dataproc/src}/V1/resources/job_controller_descriptor_config.php (100%) rename {src/Dataproc => Dataproc/src}/V1/resources/job_controller_rest_client_config.php (100%) create mode 100644 Dataproc/tests/snippets/bootstrap.php rename {tests/system/Dataproc => Dataproc/tests/system}/ClusterControllerClientTest.php (100%) create mode 100644 Dataproc/tests/system/bootstrap.php create mode 100644 Dataproc/tests/unit/bootstrap.php rename {src/Datastore => Datastore}/CONTRIBUTING.md (100%) rename {src/Datastore => Datastore}/LICENSE (100%) rename {src/Datastore => Datastore}/README.md (100%) rename {src/Datastore => Datastore}/VERSION (100%) rename {src/Datastore => Datastore}/composer.json (100%) create mode 100644 Datastore/phpunit-snippets.xml.dist create mode 100644 Datastore/phpunit-system.xml.dist create mode 100644 Datastore/phpunit.xml.dist rename {src/Datastore => Datastore/src}/Blob.php (100%) rename {src/Datastore => Datastore/src}/Connection/ConnectionInterface.php (100%) rename {src/Datastore => Datastore/src}/Connection/Rest.php (100%) rename {src/Datastore => Datastore/src}/Connection/ServiceDefinition/datastore-v1.json (100%) rename {src/Datastore => Datastore/src}/DatastoreClient.php (100%) rename {src/Datastore => Datastore/src}/DatastoreSessionHandler.php (100%) rename {src/Datastore => Datastore/src}/DatastoreTrait.php (100%) rename {src/Datastore => Datastore/src}/Entity.php (100%) rename {src/Datastore => Datastore/src}/EntityIterator.php (100%) rename {src/Datastore => Datastore/src}/EntityMapper.php (100%) rename {src/Datastore => Datastore/src}/EntityPageIterator.php (100%) rename {src/Datastore => Datastore/src}/GeoPoint.php (100%) rename {src/Datastore => Datastore/src}/Key.php (100%) rename {src/Datastore => Datastore/src}/Operation.php (100%) rename {src/Datastore => Datastore/src}/Query/GqlQuery.php (100%) rename {src/Datastore => Datastore/src}/Query/Query.php (100%) rename {src/Datastore => Datastore/src}/Query/QueryInterface.php (100%) rename {src/Datastore => Datastore/src}/ReadOnlyTransaction.php (100%) rename {src/Datastore => Datastore/src}/Transaction.php (100%) rename {src/Datastore => Datastore/src}/TransactionTrait.php (100%) rename {tests/snippets/Datastore => Datastore/tests/snippets}/BlobTest.php (100%) rename {tests/snippets/Datastore => Datastore/tests/snippets}/DatastoreClientTest.php (100%) rename {tests/snippets/Datastore => Datastore/tests/snippets}/EntityTest.php (100%) rename {tests/snippets/Datastore => Datastore/tests/snippets}/GeoPointTest.php (100%) rename {tests/snippets/Datastore => Datastore/tests/snippets}/KeyTest.php (100%) rename {tests/snippets/Datastore => Datastore/tests/snippets}/Query/GqlQueryTest.php (100%) rename {tests/snippets/Datastore => Datastore/tests/snippets}/Query/QueryTest.php (100%) rename {tests/snippets/Datastore => Datastore/tests/snippets}/ReadOnlyTransactionTest.php (100%) rename {tests/snippets/Datastore => Datastore/tests/snippets}/TransactionTest.php (100%) create mode 100644 Datastore/tests/snippets/bootstrap.php rename {tests/system/Datastore => Datastore/tests/system}/AllocateKeyTest.php (100%) rename {tests/system/Datastore => Datastore/tests/system}/DatastoreTestCase.php (100%) rename {tests/system/Datastore => Datastore/tests/system}/RunQueryTest.php (100%) rename {tests/system/Datastore => Datastore/tests/system}/RunTransactionTest.php (100%) rename {tests/system/Datastore => Datastore/tests/system}/SaveAndModifyTest.php (100%) create mode 100644 Datastore/tests/system/bootstrap.php rename {tests/unit/Datastore => Datastore/tests/unit}/BlobTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/Connection/RestTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/DatastoreClientTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/DatastoreSessionHandlerTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/DatastoreTraitTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/EntityIteratorTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/EntityMapperTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/EntityPageIteratorTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/EntityTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/Fixtures.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/GeoPointTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/KeyTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/OperationTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/Query/GqlQueryTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/Query/QueryTest.php (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/TransactionTest.php (100%) create mode 100644 Datastore/tests/unit/bootstrap.php rename {tests/unit/Datastore => Datastore/tests/unit}/fixtures/entity-batch-lookup.json (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/fixtures/entity-lookup-bigsort.json (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/fixtures/entity-result-no-properties.json (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/fixtures/entity-result.json (100%) rename {tests/unit/Datastore => Datastore/tests/unit}/fixtures/query-results.json (100%) rename {src/Debugger => Debugger}/CONTRIBUTING.md (100%) rename {src/Debugger => Debugger}/LICENSE (100%) rename {src/Debugger => Debugger}/README.md (100%) rename {src/Debugger => Debugger}/VERSION (100%) rename {src/Debugger => Debugger}/composer.json (100%) create mode 100644 Debugger/phpunit-snippets.xml.dist create mode 100644 Debugger/phpunit-system.xml.dist create mode 100644 Debugger/phpunit.xml.dist rename {src/Debugger => Debugger/src}/Agent.php (100%) rename {src/Debugger => Debugger/src}/AliasContext.php (100%) rename {src/Debugger => Debugger/src}/Breakpoint.php (100%) rename {src/Debugger => Debugger/src}/BreakpointStorage/BreakpointStorageInterface.php (100%) rename {src/Debugger => Debugger/src}/BreakpointStorage/SysvBreakpointStorage.php (100%) rename {src/Debugger => Debugger/src}/CloudRepoSourceContext.php (100%) rename {src/Debugger => Debugger/src}/CloudWorkspaceId.php (100%) rename {src/Debugger => Debugger/src}/CloudWorkspaceSourceContext.php (100%) rename {src/Debugger => Debugger/src}/Connection/ConnectionInterface.php (100%) rename {src/Debugger => Debugger/src}/Connection/Rest.php (100%) rename {src/Debugger => Debugger/src}/Connection/ServiceDefinition/debugger-v2.json (100%) rename {src/Debugger => Debugger/src}/Daemon.php (100%) rename {src/Debugger => Debugger/src}/Debuggee.php (100%) rename {src/Debugger => Debugger/src}/DebuggerClient.php (100%) rename {src/Debugger => Debugger/src}/ExtendedSourceContext.php (100%) rename {src/Debugger => Debugger/src}/FormatMessage.php (100%) rename {src/Debugger => Debugger/src}/GerritSourceContext.php (100%) rename {src/Debugger => Debugger/src}/GitSourceContext.php (100%) rename {src/Debugger => Debugger/src}/MatchingFileIterator.php (100%) rename {src/Debugger => Debugger/src}/ProjectRepoId.php (100%) rename {src/Debugger => Debugger/src}/RepoId.php (100%) rename {src/Debugger => Debugger/src}/SourceContext.php (100%) rename {src/Debugger => Debugger/src}/SourceLocation.php (100%) rename {src/Debugger => Debugger/src}/SourceLocationResolver.php (100%) rename {src/Debugger => Debugger/src}/StackFrame.php (100%) rename {src/Debugger => Debugger/src}/StatusMessage.php (100%) rename {src/Debugger => Debugger/src}/V2/Controller2Client.php (100%) rename {src/Debugger => Debugger/src}/V2/Debugger2Client.php (100%) rename {src/Debugger => Debugger/src}/V2/Gapic/Controller2GapicClient.php (100%) rename {src/Debugger => Debugger/src}/V2/Gapic/Debugger2GapicClient.php (100%) rename {src/Debugger => Debugger/src}/V2/resources/controller2_client_config.json (100%) rename {src/Debugger => Debugger/src}/V2/resources/controller2_descriptor_config.php (100%) rename {src/Debugger => Debugger/src}/V2/resources/controller2_rest_client_config.php (100%) rename {src/Debugger => Debugger/src}/V2/resources/debugger2_client_config.json (100%) rename {src/Debugger => Debugger/src}/V2/resources/debugger2_descriptor_config.php (100%) rename {src/Debugger => Debugger/src}/V2/resources/debugger2_rest_client_config.php (100%) rename {src/Debugger => Debugger/src}/Variable.php (100%) rename {src/Debugger => Debugger/src}/VariableTable.php (100%) rename {src/Debugger => Debugger/src}/bin/google-cloud-debugger (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/AgentTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/AliasContextTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/BreakpointTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/CloudRepoSourceContextTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/CloudWorkspaceIdTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/CloudWorkspaceSourceContextTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/DaemonTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/DebuggeeTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/DebuggerClientTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/ExtendedSourceContextTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/FormatMessageTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/GerritSourceContextTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/GitSourceContextTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/MatchingFileIteratorTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/ProjectRepoIdTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/RepoIdTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/SourceLocationResolverTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/SourceLocationTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/StackFrameTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/StatusMessageTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/VariableTableTest.php (100%) rename {tests/snippets/Debugger => Debugger/tests/snippets}/VariableTest.php (100%) create mode 100644 Debugger/tests/snippets/bootstrap.php rename {tests/system/Debugger => Debugger/tests/system}/BasicTest.php (100%) rename {tests/system/Debugger => Debugger/tests/system}/E2ETest.php (100%) rename {tests/system/Debugger => Debugger/tests/system}/app/.gitignore (100%) create mode 100644 Debugger/tests/system/app/additional-supervisord.conf rename {tests/system/Debugger => Debugger/tests/system}/app/app.yaml (100%) rename {tests/system/Debugger => Debugger/tests/system}/app/web/app.php (100%) rename {tests/system/Debugger => Debugger/tests/system}/app/web/index.php (100%) create mode 100644 Debugger/tests/system/bootstrap.php rename {tests/unit/Debugger => Debugger/tests/unit}/AgentTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/AliasContextTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/BreakpointStorage/SysvBreakpointStorageTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/BreakpointTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/BreakpointValidationTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/CloudRepoSourceContextTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/CloudWorkspaceIdTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/CloudWorkspaceSourceContextTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/Connection/RestTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/DaemonTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/DebuggeeTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/DebuggerClientTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/ExtendedSourceContextTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/FormatMessageTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/GerritSourceContextTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/GitSourceContextTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/JsonTestTrait.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/MatchingFileIteratorTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/ProjectRepoIdTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/RepoIdTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/SourceLocationResolverTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/SourceLocationTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/StackFrameTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/StatusMessageTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/VariableTableTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/VariableTest.php (100%) create mode 100644 Debugger/tests/unit/bootstrap.php rename {tests/unit/Debugger => Debugger/tests/unit}/data/file.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/data/nested/folder/file2.php (100%) rename {tests/unit/Debugger => Debugger/tests/unit}/data/source-context.json (100%) rename {src/Dlp => Dlp}/CONTRIBUTING.md (100%) rename {src/Dlp => Dlp}/LICENSE (100%) rename {src/Dlp => Dlp}/README.md (100%) rename {src/Dlp => Dlp}/VERSION (100%) rename {src/Dlp => Dlp}/composer.json (100%) create mode 100644 Dlp/phpunit-snippets.xml.dist create mode 100644 Dlp/phpunit-system.xml.dist create mode 100644 Dlp/phpunit.xml.dist rename {src/Dlp => Dlp/src}/V2beta1/DlpServiceClient.php (100%) rename {src/Dlp => Dlp/src}/V2beta1/Gapic/DlpServiceGapicClient.php (100%) rename {src/Dlp => Dlp/src}/V2beta1/README.md (100%) rename {src/Dlp => Dlp/src}/V2beta1/resources/dlp_service_client_config.json (100%) rename {src/Dlp => Dlp/src}/V2beta1/resources/dlp_service_descriptor_config.php (100%) rename {src/Dlp => Dlp/src}/V2beta1/resources/dlp_service_rest_client_config.php (100%) create mode 100644 Dlp/tests/snippets/bootstrap.php create mode 100644 Dlp/tests/system/bootstrap.php create mode 100644 Dlp/tests/unit/bootstrap.php rename {src/ErrorReporting => ErrorReporting}/CONTRIBUTING.md (100%) rename {src/ErrorReporting => ErrorReporting}/LICENSE (100%) rename {src/ErrorReporting => ErrorReporting}/README.md (100%) rename {src/ErrorReporting => ErrorReporting}/VERSION (100%) rename {src/ErrorReporting => ErrorReporting}/composer.json (100%) create mode 100644 ErrorReporting/phpunit-snippets.xml.dist create mode 100644 ErrorReporting/phpunit-system.xml.dist create mode 100644 ErrorReporting/phpunit.xml.dist rename {src/ErrorReporting => ErrorReporting/src}/Bootstrap.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/ErrorGroupServiceClient.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/ErrorStatsServiceClient.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/Gapic/ErrorGroupServiceGapicClient.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/Gapic/ErrorStatsServiceGapicClient.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/Gapic/ReportErrorsServiceGapicClient.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/README.md (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/ReportErrorsServiceClient.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/resources/error_group_service_client_config.json (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/resources/error_group_service_descriptor_config.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/resources/error_group_service_rest_client_config.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/resources/error_stats_service_client_config.json (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/resources/error_stats_service_descriptor_config.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/resources/error_stats_service_rest_client_config.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/resources/report_errors_service_client_config.json (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/resources/report_errors_service_descriptor_config.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/V1beta1/resources/report_errors_service_rest_client_config.php (100%) rename {src/ErrorReporting => ErrorReporting/src}/prepend.php (100%) create mode 100644 ErrorReporting/tests/snippets/bootstrap.php create mode 100644 ErrorReporting/tests/system/bootstrap.php rename {tests/unit/ErrorReporting => ErrorReporting/tests/unit}/BootstrapTest.php (100%) create mode 100644 ErrorReporting/tests/unit/bootstrap.php rename {tests/unit/ErrorReporting => ErrorReporting/tests/unit}/fakeGlobalFunctions.php (100%) rename {src/Firestore => Firestore}/CONTRIBUTING.md (100%) rename {src/Firestore => Firestore}/README.md (100%) rename {src/Firestore => Firestore}/VERSION (100%) rename {src/Firestore => Firestore}/composer.json (100%) create mode 100644 Firestore/phpunit-snippets.xml.dist create mode 100644 Firestore/phpunit-system.xml.dist create mode 100644 Firestore/phpunit.xml.dist rename {src/Firestore => Firestore/src}/CollectionReference.php (100%) rename {src/Firestore => Firestore/src}/Connection/ConnectionInterface.php (100%) rename {src/Firestore => Firestore/src}/Connection/Grpc.php (100%) rename {src/Firestore => Firestore/src}/DocumentReference.php (100%) rename {src/Firestore => Firestore/src}/DocumentSnapshot.php (100%) rename {src/Firestore => Firestore/src}/FieldPath.php (100%) rename {src/Firestore => Firestore/src}/FieldValue.php (100%) rename {src/Firestore => Firestore/src}/FirestoreClient.php (100%) rename {src/Firestore => Firestore/src}/PathTrait.php (100%) rename {src/Firestore => Firestore/src}/Query.php (100%) rename {src/Firestore => Firestore/src}/QuerySnapshot.php (100%) rename {src/Firestore => Firestore/src}/SnapshotTrait.php (100%) rename {src/Firestore => Firestore/src}/Transaction.php (100%) rename {src/Firestore => Firestore/src}/V1beta1/FirestoreClient.php (100%) rename {src/Firestore => Firestore/src}/V1beta1/Gapic/FirestoreGapicClient.php (100%) rename {src/Firestore => Firestore/src}/V1beta1/README.md (100%) rename {src/Firestore => Firestore/src}/V1beta1/resources/firestore_client_config.json (100%) rename {src/Firestore => Firestore/src}/V1beta1/resources/firestore_descriptor_config.php (100%) rename {src/Firestore => Firestore/src}/V1beta1/resources/firestore_rest_client_config.php (100%) rename {src/Firestore => Firestore/src}/ValueMapper.php (100%) rename {src/Firestore => Firestore/src}/WriteBatch.php (100%) rename {tests/snippets/Firestore => Firestore/tests/snippets}/CollectionReferenceTest.php (100%) rename {tests/snippets/Firestore => Firestore/tests/snippets}/DocumentReferenceTest.php (100%) rename {tests/snippets/Firestore => Firestore/tests/snippets}/DocumentSnapshotTest.php (100%) rename {tests/snippets/Firestore => Firestore/tests/snippets}/FieldPathTest.php (100%) rename {tests/snippets/Firestore => Firestore/tests/snippets}/FieldValueTest.php (100%) rename {tests/snippets/Firestore => Firestore/tests/snippets}/FirestoreClientTest.php (100%) rename {tests/snippets/Firestore => Firestore/tests/snippets}/QuerySnapshotTest.php (100%) rename {tests/snippets/Firestore => Firestore/tests/snippets}/QueryTest.php (100%) rename {tests/snippets/Firestore => Firestore/tests/snippets}/TransactionTest.php (100%) rename {tests/snippets/Firestore => Firestore/tests/snippets}/WriteBatchTest.php (100%) create mode 100644 Firestore/tests/snippets/bootstrap.php rename {tests/system/Firestore => Firestore/tests/system}/DocumentAndCollectionTest.php (100%) rename {tests/system/Firestore => Firestore/tests/system}/FirestoreTestCase.php (100%) rename {tests/system/Firestore => Firestore/tests/system}/QueryTest.php (100%) rename {tests/system/Firestore => Firestore/tests/system}/TransactionTest.php (100%) rename {tests/system/Firestore => Firestore/tests/system}/ValueMapperTest.php (100%) create mode 100644 Firestore/tests/system/bootstrap.php rename {tests/unit/Firestore => Firestore/tests/unit}/CollectionReferenceTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/Connection/GrpcTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/DocumentReferenceTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/DocumentSnapshotTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/FieldPathTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/FirestoreClientTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/PathTraitTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/QuerySnapshotTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/QueryTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/SnapshotTraitTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/TransactionTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/ValueMapperTest.php (100%) rename {tests/unit/Firestore => Firestore/tests/unit}/WriteBatchTest.php (100%) create mode 100644 Firestore/tests/unit/bootstrap.php rename {src/Language => Language}/CONTRIBUTING.md (100%) rename {src/Language => Language}/LICENSE (100%) rename {src/Language => Language}/README.md (100%) rename {src/Language => Language}/VERSION (100%) rename {src/Language => Language}/composer.json (100%) create mode 100644 Language/phpunit-snippets.xml.dist create mode 100644 Language/phpunit-system.xml.dist create mode 100644 Language/phpunit.xml.dist rename {src/Language => Language/src}/Annotation.php (100%) rename {src/Language => Language/src}/Connection/ConnectionInterface.php (100%) rename {src/Language => Language/src}/Connection/Rest.php (100%) rename {src/Language => Language/src}/Connection/ServiceDefinition/language-v1.json (100%) rename {src/Language => Language/src}/LanguageClient.php (100%) rename {src/Language => Language/src}/V1beta2/Gapic/LanguageServiceGapicClient.php (100%) rename {src/Language => Language/src}/V1beta2/LanguageServiceClient.php (100%) rename {src/Language => Language/src}/V1beta2/README.md (100%) rename {src/Language => Language/src}/V1beta2/resources/language_service_client_config.json (100%) rename {src/Language => Language/src}/V1beta2/resources/language_service_descriptor_config.php (100%) rename {src/Language => Language/src}/V1beta2/resources/language_service_rest_client_config.php (100%) rename {tests/snippets/Language => Language/tests/snippets}/AnnotationTest.php (100%) rename {tests/snippets/Language => Language/tests/snippets}/LanguageClientTest.php (100%) create mode 100644 Language/tests/snippets/bootstrap.php rename {tests/system/Language => Language/tests/system}/AnalyzeTest.php (100%) rename {tests/system/Language => Language/tests/system}/LanguageTestCase.php (100%) create mode 100644 Language/tests/system/bootstrap.php rename {tests/unit/Language => Language/tests/unit}/AnnotationTest.php (100%) rename {tests/unit/Language => Language/tests/unit}/Connection/RestTest.php (100%) rename {tests/unit/Language => Language/tests/unit}/LanguageClientTest.php (100%) create mode 100644 Language/tests/unit/bootstrap.php rename {src/Logging => Logging}/CONTRIBUTING.md (100%) rename {src/Logging => Logging}/LICENSE (100%) rename {src/Logging => Logging}/README.md (100%) rename {src/Logging => Logging}/VERSION (100%) rename {src/Logging => Logging}/composer.json (100%) create mode 100644 Logging/phpunit-snippets.xml.dist create mode 100644 Logging/phpunit-system.xml.dist create mode 100644 Logging/phpunit.xml.dist rename {src/Logging => Logging/src}/Connection/ConnectionInterface.php (100%) rename {src/Logging => Logging/src}/Connection/Grpc.php (100%) rename {src/Logging => Logging/src}/Connection/Rest.php (100%) rename {src/Logging => Logging/src}/Connection/ServiceDefinition/logging-v2.json (100%) rename {src/Logging => Logging/src}/Entry.php (100%) rename {src/Logging => Logging/src}/Logger.php (100%) rename {src/Logging => Logging/src}/LoggingClient.php (100%) rename {src/Logging => Logging/src}/Metric.php (100%) rename {src/Logging => Logging/src}/PsrLogger.php (100%) rename {src/Logging => Logging/src}/Sink.php (100%) rename {src/Logging => Logging/src}/V2/ConfigServiceV2Client.php (100%) rename {src/Logging => Logging/src}/V2/Gapic/ConfigServiceV2GapicClient.php (100%) rename {src/Logging => Logging/src}/V2/Gapic/LoggingServiceV2GapicClient.php (100%) rename {src/Logging => Logging/src}/V2/Gapic/MetricsServiceV2GapicClient.php (100%) rename {src/Logging => Logging/src}/V2/LoggingServiceV2Client.php (100%) rename {src/Logging => Logging/src}/V2/MetricsServiceV2Client.php (100%) rename {src/Logging => Logging/src}/V2/README.md (100%) rename {src/Logging => Logging/src}/V2/resources/config_service_v2_client_config.json (100%) rename {src/Logging => Logging/src}/V2/resources/config_service_v2_descriptor_config.php (100%) rename {src/Logging => Logging/src}/V2/resources/config_service_v2_rest_client_config.php (100%) rename {src/Logging => Logging/src}/V2/resources/logging_service_v2_client_config.json (100%) rename {src/Logging => Logging/src}/V2/resources/logging_service_v2_descriptor_config.php (100%) rename {src/Logging => Logging/src}/V2/resources/logging_service_v2_rest_client_config.php (100%) rename {src/Logging => Logging/src}/V2/resources/metrics_service_v2_client_config.json (100%) rename {src/Logging => Logging/src}/V2/resources/metrics_service_v2_descriptor_config.php (100%) rename {src/Logging => Logging/src}/V2/resources/metrics_service_v2_rest_client_config.php (100%) rename {tests/snippets/Logging => Logging/tests/snippets}/EntryTest.php (100%) rename {tests/snippets/Logging => Logging/tests/snippets}/LoggerTest.php (100%) rename {tests/snippets/Logging => Logging/tests/snippets}/LoggingClientTest.php (100%) rename {tests/snippets/Logging => Logging/tests/snippets}/MetricTest.php (100%) rename {tests/snippets/Logging => Logging/tests/snippets}/PsrLoggerTest.php (100%) rename {tests/snippets/Logging => Logging/tests/snippets}/SinkTest.php (100%) create mode 100644 Logging/tests/snippets/bootstrap.php rename {tests/system/Logging => Logging/tests/system}/LoggingTestCase.php (100%) rename {tests/system/Logging => Logging/tests/system}/ManageMetricsTest.php (100%) rename {tests/system/Logging => Logging/tests/system}/ManageSinksTest.php (100%) rename {tests/system/Logging => Logging/tests/system}/WriteAndListEntryTest.php (100%) create mode 100644 Logging/tests/system/bootstrap.php rename {tests/unit/Logging => Logging/tests/unit}/Connection/GrpcTest.php (100%) rename {tests/unit/Logging => Logging/tests/unit}/Connection/RestTest.php (100%) rename {tests/unit/Logging => Logging/tests/unit}/LoggerTest.php (100%) rename {tests/unit/Logging => Logging/tests/unit}/LoggingClientTest.php (100%) rename {tests/unit/Logging => Logging/tests/unit}/MetricTest.php (100%) rename {tests/unit/Logging => Logging/tests/unit}/PsrLoggerBatchTest.php (100%) rename {tests/unit/Logging => Logging/tests/unit}/PsrLoggerCompatibilityTest.php (100%) rename {tests/unit/Logging => Logging/tests/unit}/PsrLoggerTest.php (100%) rename {tests/unit/Logging => Logging/tests/unit}/SinkTest.php (100%) create mode 100644 Logging/tests/unit/bootstrap.php rename {src/Monitoring => Monitoring}/CONTRIBUTING.md (100%) rename {src/Monitoring => Monitoring}/LICENSE (100%) rename {src/Monitoring => Monitoring}/README.md (100%) rename {src/Monitoring => Monitoring}/VERSION (100%) rename {src/Monitoring => Monitoring}/composer.json (100%) create mode 100644 Monitoring/phpunit-snippets.xml.dist create mode 100644 Monitoring/phpunit-system.xml.dist create mode 100644 Monitoring/phpunit.xml.dist rename {src/Monitoring => Monitoring/src}/V3/Gapic/GroupServiceGapicClient.php (100%) rename {src/Monitoring => Monitoring/src}/V3/Gapic/MetricServiceGapicClient.php (100%) rename {src/Monitoring => Monitoring/src}/V3/Gapic/UptimeCheckServiceGapicClient.php (100%) rename {src/Monitoring => Monitoring/src}/V3/GroupServiceClient.php (100%) rename {src/Monitoring => Monitoring/src}/V3/MetricServiceClient.php (100%) rename {src/Monitoring => Monitoring/src}/V3/README.md (100%) rename {src/Monitoring => Monitoring/src}/V3/UptimeCheckServiceClient.php (100%) rename {src/Monitoring => Monitoring/src}/V3/resources/group_service_client_config.json (100%) rename {src/Monitoring => Monitoring/src}/V3/resources/group_service_descriptor_config.php (100%) rename {src/Monitoring => Monitoring/src}/V3/resources/group_service_rest_client_config.php (100%) rename {src/Monitoring => Monitoring/src}/V3/resources/metric_service_client_config.json (100%) rename {src/Monitoring => Monitoring/src}/V3/resources/metric_service_descriptor_config.php (100%) rename {src/Monitoring => Monitoring/src}/V3/resources/metric_service_rest_client_config.php (100%) rename {src/Monitoring => Monitoring/src}/V3/resources/uptime_check_service_client_config.json (100%) rename {src/Monitoring => Monitoring/src}/V3/resources/uptime_check_service_descriptor_config.php (100%) rename {src/Monitoring => Monitoring/src}/V3/resources/uptime_check_service_rest_client_config.php (100%) create mode 100644 Monitoring/tests/snippets/bootstrap.php create mode 100644 Monitoring/tests/system/bootstrap.php create mode 100644 Monitoring/tests/unit/bootstrap.php rename {src/OsLogin => OsLogin}/CONTRIBUTING.md (100%) rename {src/OsLogin => OsLogin}/LICENSE (100%) rename {src/OsLogin => OsLogin}/README.md (100%) rename {src/OsLogin => OsLogin}/VERSION (100%) rename {src/OsLogin => OsLogin}/composer.json (100%) create mode 100644 OsLogin/phpunit-snippets.xml.dist create mode 100644 OsLogin/phpunit-system.xml.dist create mode 100644 OsLogin/phpunit.xml.dist rename {src/OsLogin => OsLogin/src}/V1beta/Gapic/OsLoginServiceGapicClient.php (100%) rename {src/OsLogin => OsLogin/src}/V1beta/OsLoginServiceClient.php (100%) rename {src/OsLogin => OsLogin/src}/V1beta/README.md (100%) rename {src/OsLogin => OsLogin/src}/V1beta/resources/os_login_service_client_config.json (100%) rename {src/OsLogin => OsLogin/src}/V1beta/resources/os_login_service_descriptor_config.php (100%) rename {src/OsLogin => OsLogin/src}/V1beta/resources/os_login_service_rest_client_config.php (100%) create mode 100644 OsLogin/tests/snippets/bootstrap.php rename {tests/system/OsLogin => OsLogin/tests/system}/OsLoginServiceClientTest.php (100%) create mode 100644 OsLogin/tests/system/bootstrap.php create mode 100644 OsLogin/tests/unit/bootstrap.php rename {src/PubSub => PubSub}/CONTRIBUTING.md (100%) rename {src/PubSub => PubSub}/LICENSE (100%) rename {src/PubSub => PubSub}/README.md (100%) rename {src/PubSub => PubSub}/VERSION (100%) rename {src/PubSub => PubSub}/composer.json (100%) create mode 100644 PubSub/phpunit-snippets.xml.dist create mode 100644 PubSub/phpunit-system.xml.dist create mode 100644 PubSub/phpunit.xml.dist rename {src/PubSub => PubSub/src}/BatchPublisher.php (100%) rename {src/PubSub => PubSub/src}/Connection/ConnectionInterface.php (100%) rename {src/PubSub => PubSub/src}/Connection/Grpc.php (100%) rename {src/PubSub => PubSub/src}/Connection/IamSubscription.php (100%) rename {src/PubSub => PubSub/src}/Connection/IamTopic.php (100%) rename {src/PubSub => PubSub/src}/Connection/Rest.php (100%) rename {src/PubSub => PubSub/src}/Connection/ServiceDefinition/pubsub-v1.json (100%) rename {src/PubSub => PubSub/src}/IncomingMessageTrait.php (100%) rename {src/PubSub => PubSub/src}/Message.php (100%) rename {src/PubSub => PubSub/src}/PubSubClient.php (100%) rename {src/PubSub => PubSub/src}/ResourceNameTrait.php (100%) rename {src/PubSub => PubSub/src}/Snapshot.php (100%) rename {src/PubSub => PubSub/src}/Subscription.php (100%) rename {src/PubSub => PubSub/src}/Topic.php (100%) rename {src/PubSub => PubSub/src}/V1/Gapic/PublisherGapicClient.php (100%) rename {src/PubSub => PubSub/src}/V1/Gapic/SubscriberGapicClient.php (100%) rename {src/PubSub => PubSub/src}/V1/PublisherClient.php (100%) rename {src/PubSub => PubSub/src}/V1/README.md (100%) rename {src/PubSub => PubSub/src}/V1/SubscriberClient.php (100%) rename {src/PubSub => PubSub/src}/V1/resources/publisher_client_config.json (100%) rename {src/PubSub => PubSub/src}/V1/resources/publisher_descriptor_config.php (100%) rename {src/PubSub => PubSub/src}/V1/resources/publisher_rest_client_config.php (100%) rename {src/PubSub => PubSub/src}/V1/resources/subscriber_client_config.json (100%) rename {src/PubSub => PubSub/src}/V1/resources/subscriber_descriptor_config.php (100%) rename {src/PubSub => PubSub/src}/V1/resources/subscriber_rest_client_config.php (100%) rename {tests/snippets/PubSub => PubSub/tests/snippets}/BatchPublisherTest.php (100%) rename {tests/snippets/PubSub => PubSub/tests/snippets}/MessageTest.php (100%) rename {tests/snippets/PubSub => PubSub/tests/snippets}/PubSubClientTest.php (100%) rename {tests/snippets/PubSub => PubSub/tests/snippets}/SnapshotTest.php (100%) rename {tests/snippets/PubSub => PubSub/tests/snippets}/SubscriptionTest.php (100%) rename {tests/snippets/PubSub => PubSub/tests/snippets}/TopicTest.php (100%) create mode 100644 PubSub/tests/snippets/bootstrap.php rename {tests/system/PubSub => PubSub/tests/system}/ManageIAMPoliciesTest.php (100%) rename {tests/system/PubSub => PubSub/tests/system}/ManageSubscriptionsTest.php (100%) rename {tests/system/PubSub => PubSub/tests/system}/ManageTopicsTest.php (100%) rename {tests/system/PubSub => PubSub/tests/system}/PubSubTestCase.php (100%) rename {tests/system/PubSub => PubSub/tests/system}/PublishAndPullTest.php (100%) create mode 100644 PubSub/tests/system/bootstrap.php rename {tests/unit/PubSub => PubSub/tests/unit}/BatchPublisherTest.php (100%) rename {tests/unit/PubSub => PubSub/tests/unit}/Connection/GrpcTest.php (100%) rename {tests/unit/PubSub => PubSub/tests/unit}/Connection/IamSubscriptionTest.php (100%) rename {tests/unit/PubSub => PubSub/tests/unit}/Connection/IamTopicTest.php (100%) rename {tests/unit/PubSub => PubSub/tests/unit}/Connection/RestTest.php (100%) rename {tests/unit/PubSub => PubSub/tests/unit}/IncomingMessageTraitTest.php (100%) rename {tests/unit/PubSub => PubSub/tests/unit}/MessageTest.php (100%) rename {tests/unit/PubSub => PubSub/tests/unit}/PubSubClientTest.php (100%) rename {tests/unit/PubSub => PubSub/tests/unit}/ResourceNameTraitTest.php (100%) rename {tests/unit/PubSub => PubSub/tests/unit}/SnapshotTest.php (100%) rename {tests/unit/PubSub => PubSub/tests/unit}/SubscriptionTest.php (100%) rename {tests/unit/PubSub => PubSub/tests/unit}/TopicTest.php (100%) create mode 100644 PubSub/tests/unit/bootstrap.php rename {src/Spanner => Spanner}/CONTRIBUTING.md (100%) rename {src/Spanner => Spanner}/LICENSE (100%) rename {src/Spanner => Spanner}/README.md (100%) rename {src/Spanner => Spanner}/VERSION (100%) rename {src/Spanner => Spanner}/composer.json (100%) create mode 100644 Spanner/phpunit-snippets.xml.dist create mode 100644 Spanner/phpunit-system.xml.dist create mode 100644 Spanner/phpunit.xml.dist rename {src/Spanner => Spanner/src}/Admin/Database/V1/DatabaseAdminClient.php (100%) rename {src/Spanner => Spanner/src}/Admin/Database/V1/Gapic/DatabaseAdminGapicClient.php (100%) rename {src/Spanner => Spanner/src}/Admin/Database/V1/resources/database_admin_client_config.json (100%) rename {src/Spanner => Spanner/src}/Admin/Database/V1/resources/database_admin_descriptor_config.php (100%) rename {src/Spanner => Spanner/src}/Admin/Database/V1/resources/database_admin_rest_client_config.php (100%) rename {src/Spanner => Spanner/src}/Admin/Instance/V1/Gapic/InstanceAdminGapicClient.php (100%) rename {src/Spanner => Spanner/src}/Admin/Instance/V1/InstanceAdminClient.php (100%) rename {src/Spanner => Spanner/src}/Admin/Instance/V1/resources/instance_admin_client_config.json (100%) rename {src/Spanner => Spanner/src}/Admin/Instance/V1/resources/instance_admin_descriptor_config.php (100%) rename {src/Spanner => Spanner/src}/Admin/Instance/V1/resources/instance_admin_rest_client_config.php (100%) rename {src/Spanner => Spanner/src}/Bytes.php (100%) rename {src/Spanner => Spanner/src}/Connection/ConnectionInterface.php (100%) rename {src/Spanner => Spanner/src}/Connection/Grpc.php (100%) rename {src/Spanner => Spanner/src}/Connection/IamDatabase.php (100%) rename {src/Spanner => Spanner/src}/Connection/IamInstance.php (100%) rename {src/Spanner => Spanner/src}/Connection/LongRunningConnection.php (100%) rename {src/Spanner => Spanner/src}/Database.php (100%) rename {src/Spanner => Spanner/src}/Date.php (100%) rename {src/Spanner => Spanner/src}/Duration.php (100%) rename {src/Spanner => Spanner/src}/Instance.php (100%) rename {src/Spanner => Spanner/src}/InstanceConfiguration.php (100%) rename {src/Spanner => Spanner/src}/KeyRange.php (100%) rename {src/Spanner => Spanner/src}/KeySet.php (100%) rename {src/Spanner => Spanner/src}/Operation.php (100%) rename {src/Spanner => Spanner/src}/Result.php (100%) rename {src/Spanner => Spanner/src}/Session/CacheSessionPool.php (100%) rename {src/Spanner => Spanner/src}/Session/Session.php (100%) rename {src/Spanner => Spanner/src}/Session/SessionPoolInterface.php (100%) rename {src/Spanner => Spanner/src}/Snapshot.php (100%) rename {src/Spanner => Spanner/src}/SpannerClient.php (100%) rename {src/Spanner => Spanner/src}/Timestamp.php (100%) rename {src/Spanner => Spanner/src}/Transaction.php (100%) rename {src/Spanner => Spanner/src}/TransactionConfigurationTrait.php (100%) rename {src/Spanner => Spanner/src}/TransactionalReadInterface.php (100%) rename {src/Spanner => Spanner/src}/TransactionalReadTrait.php (100%) rename {src/Spanner => Spanner/src}/V1/Gapic/SpannerGapicClient.php (100%) rename {src/Spanner => Spanner/src}/V1/README.md (100%) rename {src/Spanner => Spanner/src}/V1/SpannerClient.php (100%) rename {src/Spanner => Spanner/src}/V1/resources/spanner_client_config.json (100%) rename {src/Spanner => Spanner/src}/V1/resources/spanner_descriptor_config.php (100%) rename {src/Spanner => Spanner/src}/V1/resources/spanner_rest_client_config.php (100%) rename {src/Spanner => Spanner/src}/ValueInterface.php (100%) rename {src/Spanner => Spanner/src}/ValueMapper.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/BytesTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/DatabaseTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/DateTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/DurationTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/InstanceConfigurationTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/InstanceTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/KeyRangeTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/KeySetTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/ResultTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/Session/CacheSessionPoolTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/SnapshotTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/SpannerClientTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/TimestampTest.php (100%) rename {tests/snippets/Spanner => Spanner/tests/snippets}/TransactionTest.php (100%) create mode 100644 Spanner/tests/snippets/bootstrap.php rename {tests/system/Spanner => Spanner/tests/system}/AdminTest.php (100%) rename {tests/system/Spanner => Spanner/tests/system}/LargeReadTest.php (100%) rename {tests/system/Spanner => Spanner/tests/system}/OperationsTest.php (100%) rename {tests/system/Spanner => Spanner/tests/system}/QueryTest.php (100%) rename {tests/system/Spanner => Spanner/tests/system}/ReadTest.php (100%) rename {tests/system/Spanner => Spanner/tests/system}/SnapshotTest.php (100%) rename {tests/system/Spanner => Spanner/tests/system}/SpannerTestCase.php (100%) rename {tests/system/Spanner => Spanner/tests/system}/TransactionTest.php (100%) rename {tests/system/Spanner => Spanner/tests/system}/WriteTest.php (100%) create mode 100644 Spanner/tests/system/bootstrap.php rename {tests/system/Spanner => Spanner/tests/system}/pcntl/AbortedErrorCausesRetry.php (100%) rename {tests/system/Spanner => Spanner/tests/system}/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php (100%) rename {tests/system/Spanner => Spanner/tests/system}/pcntl/ConcurrentTransactionsIncrementValueWithRead.php (100%) rename {tests/system/Spanner => Spanner/tests/system}/pcntl/forked-process-test.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/BytesTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/Connection/GrpcTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/Connection/IamDatabaseTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/Connection/IamInstanceTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/Connection/LongRunningConnectionTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/DatabaseTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/DateTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/DurationTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/Fixtures.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/InstanceConfigurationTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/InstanceTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/KeyRangeTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/KeySetTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/OperationTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/ResultTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/ResultTestTrait.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/Session/CacheSessionPoolTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/SnapshotTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/SpannerClientTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/TimestampTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/TransactionConfigurationTraitTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/TransactionTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/TransactionTypeTest.php (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/ValueMapperTest.php (100%) create mode 100644 Spanner/tests/unit/bootstrap.php rename {tests/unit/Spanner => Spanner/tests/unit}/fixtures/instance.json (100%) rename {tests/unit/Spanner => Spanner/tests/unit}/fixtures/streaming-read-acceptance-test.json (100%) rename {src/Speech => Speech}/CONTRIBUTING.md (100%) rename {src/Speech => Speech}/LICENSE (100%) rename {src/Speech => Speech}/README.md (100%) rename {src/Speech => Speech}/VERSION (100%) rename {src/Speech => Speech}/composer.json (100%) create mode 100644 Speech/phpunit-snippets.xml.dist create mode 100644 Speech/phpunit-system.xml.dist create mode 100644 Speech/phpunit.xml.dist rename {src/Speech => Speech/src}/Connection/ConnectionInterface.php (100%) rename {src/Speech => Speech/src}/Connection/Rest.php (100%) rename {src/Speech => Speech/src}/Connection/ServiceDefinition/speech-v1.json (100%) rename {src/Speech => Speech/src}/Operation.php (100%) rename {src/Speech => Speech/src}/Result.php (100%) rename {src/Speech => Speech/src}/SpeechClient.php (100%) rename {src/Speech => Speech/src}/V1/Gapic/SpeechGapicClient.php (100%) rename {src/Speech => Speech/src}/V1/README.md (100%) rename {src/Speech => Speech/src}/V1/SpeechClient.php (100%) rename {src/Speech => Speech/src}/V1/resources/speech_client_config.json (100%) rename {src/Speech => Speech/src}/V1/resources/speech_descriptor_config.php (100%) rename {src/Speech => Speech/src}/V1/resources/speech_rest_client_config.php (100%) rename {src/Speech => Speech/src}/V1beta1/Gapic/SpeechGapicClient.php (100%) rename {src/Speech => Speech/src}/V1beta1/README.md (100%) rename {src/Speech => Speech/src}/V1beta1/SpeechClient.php (100%) rename {src/Speech => Speech/src}/V1beta1/resources/speech_client_config.json (100%) rename {src/Speech => Speech/src}/V1beta1/resources/speech_descriptor_config.php (100%) rename {src/Speech => Speech/src}/V1beta1/resources/speech_rest_client_config.php (100%) rename {tests/snippets/Speech => Speech/tests/snippets}/OperationTest.php (100%) rename {tests/snippets/Speech => Speech/tests/snippets}/ResultTest.php (100%) rename {tests/snippets/Speech => Speech/tests/snippets}/SpeechClientTest.php (100%) create mode 100644 Speech/tests/snippets/bootstrap.php rename {tests/snippets/fixtures/Speech => Speech/tests/snippets/fixtures}/demo.flac (100%) create mode 100644 Speech/tests/system/bootstrap.php rename {tests/unit/Speech => Speech/tests/unit}/Connection/RestTest.php (100%) rename {tests/unit/Speech => Speech/tests/unit}/OperationTest.php (100%) rename {tests/unit/Speech => Speech/tests/unit}/ResultTest.php (100%) rename {tests/unit/Speech => Speech/tests/unit}/SpeechClientTest.php (100%) create mode 100644 Speech/tests/unit/bootstrap.php rename {tests => Speech/tests}/unit/data/brooklyn.flac (100%) rename {src/Storage => Storage}/CONTRIBUTING.md (100%) rename {src/Storage => Storage}/LICENSE (100%) rename {src/Storage => Storage}/README.md (100%) rename {src/Storage => Storage}/VERSION (100%) rename {src/Storage => Storage}/composer.json (100%) create mode 100644 Storage/phpunit-snippets.xml.dist create mode 100644 Storage/phpunit-system.xml.dist create mode 100644 Storage/phpunit.xml.dist rename {src/Storage => Storage/src}/Acl.php (100%) rename {src/Storage => Storage/src}/Bucket.php (100%) rename {src/Storage => Storage/src}/Connection/ConnectionInterface.php (100%) rename {src/Storage => Storage/src}/Connection/IamBucket.php (100%) rename {src/Storage => Storage/src}/Connection/Rest.php (100%) rename {src/Storage => Storage/src}/Connection/ServiceDefinition/storage-v1.json (100%) rename {src/Storage => Storage/src}/EncryptionTrait.php (100%) rename {src/Storage => Storage/src}/Notification.php (100%) rename {src/Storage => Storage/src}/ObjectIterator.php (100%) rename {src/Storage => Storage/src}/ObjectPageIterator.php (100%) rename {src/Storage => Storage/src}/ReadStream.php (100%) rename {src/Storage => Storage/src}/StorageClient.php (100%) rename {src/Storage => Storage/src}/StorageObject.php (100%) rename {src/Storage => Storage/src}/StreamWrapper.php (100%) rename {src/Storage => Storage/src}/WriteStream.php (100%) rename {tests/snippets/Storage => Storage/tests/snippets}/AclTest.php (100%) rename {tests/snippets/Storage => Storage/tests/snippets}/BucketTest.php (100%) rename {tests/snippets/Storage => Storage/tests/snippets}/NotificationTest.php (100%) rename {tests/snippets/Storage => Storage/tests/snippets}/StorageClientTest.php (100%) rename {tests/snippets/Storage => Storage/tests/snippets}/StorageObjectTest.php (100%) create mode 100644 Storage/tests/snippets/bootstrap.php rename {tests/system/Storage => Storage/tests/system}/ManageAclTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/ManageBucketsTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/ManageNotificationsTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/ManageObjectsTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/README.md (100%) rename {tests/system/Storage => Storage/tests/system}/RequesterPaysTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/SignedUrlTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/StorageTestCase.php (100%) rename {tests/system/Storage => Storage/tests/system}/StreamWrapper/DirectoryTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/StreamWrapper/ImageTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/StreamWrapper/ReadTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/StreamWrapper/RenameTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/StreamWrapper/StreamWrapperTestCase.php (100%) rename {tests/system/Storage => Storage/tests/system}/StreamWrapper/UrlStatTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/StreamWrapper/WriteTest.php (100%) rename {tests/system/Storage => Storage/tests/system}/UploadObjectsTest.php (100%) create mode 100644 Storage/tests/system/bootstrap.php rename {tests/unit/Storage => Storage/tests/unit}/AclTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/BucketTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/Connection/IamBucketTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/Connection/RestTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/EncryptionTraitTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/NotificationTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/ObjectIteratorTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/ObjectPageIteratorTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/ReadStreamTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/RequesterPaysTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/StorageClientTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/StorageObjectTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/StreamWrapperTest.php (100%) rename {tests/unit/Storage => Storage/tests/unit}/WriteStreamTest.php (100%) create mode 100644 Storage/tests/unit/bootstrap.php rename {tests => Storage/tests}/unit/data/logo.svg (100%) rename {src/Trace => Trace}/CONTRIBUTING.md (100%) rename {src/Trace => Trace}/LICENSE (100%) rename {src/Trace => Trace}/README.md (100%) rename {src/Trace => Trace}/VERSION (100%) rename {src/Trace => Trace}/composer.json (100%) create mode 100644 Trace/phpunit-snippets.xml.dist create mode 100644 Trace/phpunit-system.xml.dist create mode 100644 Trace/phpunit.xml.dist rename {src/Trace => Trace/src}/Annotation.php (100%) rename {src/Trace => Trace/src}/AttributeTrait.php (100%) rename {src/Trace => Trace/src}/Attributes.php (100%) rename {src/Trace => Trace/src}/Connection/ConnectionInterface.php (100%) rename {src/Trace => Trace/src}/Connection/Rest.php (100%) rename {src/Trace => Trace/src}/Connection/ServiceDefinition/trace-v2.json (100%) rename {src/Trace => Trace/src}/Link.php (100%) rename {src/Trace => Trace/src}/MessageEvent.php (100%) rename {src/Trace => Trace/src}/Span.php (100%) rename {src/Trace => Trace/src}/StackTrace.php (100%) rename {src/Trace => Trace/src}/Status.php (100%) rename {src/Trace => Trace/src}/TimeEvent.php (100%) rename {src/Trace => Trace/src}/TimestampTrait.php (100%) rename {src/Trace => Trace/src}/Trace.php (100%) rename {src/Trace => Trace/src}/TraceClient.php (100%) rename {src/Trace => Trace/src}/V2/Gapic/TraceServiceGapicClient.php (100%) rename {src/Trace => Trace/src}/V2/README.md (100%) rename {src/Trace => Trace/src}/V2/TraceServiceClient.php (100%) rename {src/Trace => Trace/src}/V2/resources/trace_service_client_config.json (100%) rename {src/Trace => Trace/src}/V2/resources/trace_service_descriptor_config.php (100%) rename {src/Trace => Trace/src}/V2/resources/trace_service_rest_client_config.php (100%) rename {tests/snippets/Trace => Trace/tests/snippets}/AnnotationTest.php (100%) rename {tests/snippets/Trace => Trace/tests/snippets}/AttributesTest.php (100%) rename {tests/snippets/Trace => Trace/tests/snippets}/LinkTest.php (100%) rename {tests/snippets/Trace => Trace/tests/snippets}/MessageEventTest.php (100%) rename {tests/snippets/Trace => Trace/tests/snippets}/SpanTest.php (100%) rename {tests/snippets/Trace => Trace/tests/snippets}/StackTraceTest.php (100%) rename {tests/snippets/Trace => Trace/tests/snippets}/StatusTest.php (100%) rename {tests/snippets/Trace => Trace/tests/snippets}/TraceClientTest.php (100%) rename {tests/snippets/Trace => Trace/tests/snippets}/TraceTest.php (100%) create mode 100644 Trace/tests/snippets/bootstrap.php rename {tests/system/Trace => Trace/tests/system}/BasicTest.php (100%) create mode 100644 Trace/tests/system/bootstrap.php rename {tests/unit/Trace => Trace/tests/unit}/AnnotationTest.php (100%) rename {tests/unit/Trace => Trace/tests/unit}/AttributeTraitTest.php (100%) rename {tests/unit/Trace => Trace/tests/unit}/AttributesTest.php (100%) rename {tests/unit/Trace => Trace/tests/unit}/Connection/RestTest.php (100%) rename {tests/unit/Trace => Trace/tests/unit}/LinkTest.php (100%) rename {tests/unit/Trace => Trace/tests/unit}/MessageEventTest.php (100%) rename {tests/unit/Trace => Trace/tests/unit}/SpanTest.php (100%) rename {tests/unit/Trace => Trace/tests/unit}/StackTraceTest.php (100%) rename {tests/unit/Trace => Trace/tests/unit}/StatusTest.php (100%) rename {tests/unit/Trace => Trace/tests/unit}/TimestampTraitTest.php (100%) rename {tests/unit/Trace => Trace/tests/unit}/TraceClientTest.php (100%) rename {tests/unit/Trace => Trace/tests/unit}/TraceTest.php (100%) create mode 100644 Trace/tests/unit/bootstrap.php rename {src/Translate => Translate}/CONTRIBUTING.md (100%) rename {src/Translate => Translate}/LICENSE (100%) rename {src/Translate => Translate}/README.md (100%) rename {src/Translate => Translate}/VERSION (100%) rename {src/Translate => Translate}/composer.json (100%) create mode 100644 Translate/phpunit-snippets.xml.dist create mode 100644 Translate/phpunit-system.xml.dist create mode 100644 Translate/phpunit.xml.dist rename {src/Translate => Translate/src}/Connection/ConnectionInterface.php (100%) rename {src/Translate => Translate/src}/Connection/Rest.php (100%) rename {src/Translate => Translate/src}/Connection/ServiceDefinition/translate-v2.json (100%) rename {src/Translate => Translate/src}/TranslateClient.php (100%) rename {tests/snippets/Translate => Translate/tests/snippets}/TranslateClientTest.php (100%) create mode 100644 Translate/tests/snippets/bootstrap.php rename {tests/system/Translate => Translate/tests/system}/TranslateTest.php (100%) rename {tests/system/Translate => Translate/tests/system}/TranslateTestCase.php (100%) create mode 100644 Translate/tests/system/bootstrap.php rename {tests/unit/Translate => Translate/tests/unit}/Connection/RestTest.php (100%) rename {tests/unit/Translate => Translate/tests/unit}/TranslateClientTest.php (100%) create mode 100644 Translate/tests/unit/bootstrap.php rename {src/VideoIntelligence => VideoIntelligence}/CONTRIBUTING.md (100%) rename {src/VideoIntelligence => VideoIntelligence}/LICENSE (100%) rename {src/VideoIntelligence => VideoIntelligence}/README.md (100%) rename {src/VideoIntelligence => VideoIntelligence}/VERSION (100%) rename {src/VideoIntelligence => VideoIntelligence}/composer.json (100%) create mode 100644 VideoIntelligence/phpunit-snippets.xml.dist create mode 100644 VideoIntelligence/phpunit-system.xml.dist create mode 100644 VideoIntelligence/phpunit.xml.dist rename {src/VideoIntelligence => VideoIntelligence/src}/V1/Gapic/VideoIntelligenceServiceGapicClient.php (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1/README.md (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1/VideoIntelligenceServiceClient.php (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1/resources/video_intelligence_service_client_config.json (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1/resources/video_intelligence_service_descriptor_config.php (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1/resources/video_intelligence_service_rest_client_config.php (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta1/Gapic/VideoIntelligenceServiceGapicClient.php (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta1/README.md (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta1/VideoIntelligenceServiceClient.php (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta1/resources/video_intelligence_service_client_config.json (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta1/resources/video_intelligence_service_descriptor_config.php (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta1/resources/video_intelligence_service_rest_client_config.php (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta2/Gapic/VideoIntelligenceServiceGapicClient.php (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta2/README.md (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta2/VideoIntelligenceServiceClient.php (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta2/resources/video_intelligence_service_client_config.json (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta2/resources/video_intelligence_service_descriptor_config.php (100%) rename {src/VideoIntelligence => VideoIntelligence/src}/V1beta2/resources/video_intelligence_service_rest_client_config.php (100%) create mode 100644 VideoIntelligence/tests/snippets/bootstrap.php create mode 100644 VideoIntelligence/tests/system/bootstrap.php create mode 100644 VideoIntelligence/tests/unit/bootstrap.php rename {src/Vision => Vision}/CONTRIBUTING.md (100%) rename {src/Vision => Vision}/LICENSE (100%) rename {src/Vision => Vision}/README.md (100%) rename {src/Vision => Vision}/VERSION (100%) rename {src/Vision => Vision}/composer.json (100%) create mode 100644 Vision/phpunit-snippets.xml.dist create mode 100644 Vision/phpunit-system.xml.dist create mode 100644 Vision/phpunit.xml.dist rename {src/Vision => Vision/src}/Annotation.php (100%) rename {src/Vision => Vision/src}/Annotation/AbstractFeature.php (100%) rename {src/Vision => Vision/src}/Annotation/CropHint.php (100%) rename {src/Vision => Vision/src}/Annotation/Document.php (100%) rename {src/Vision => Vision/src}/Annotation/Entity.php (100%) rename {src/Vision => Vision/src}/Annotation/Face.php (100%) rename {src/Vision => Vision/src}/Annotation/Face/Landmarks.php (100%) rename {src/Vision => Vision/src}/Annotation/FeatureInterface.php (100%) rename {src/Vision => Vision/src}/Annotation/ImageProperties.php (100%) rename {src/Vision => Vision/src}/Annotation/LikelihoodTrait.php (100%) rename {src/Vision => Vision/src}/Annotation/SafeSearch.php (100%) rename {src/Vision => Vision/src}/Annotation/Web.php (100%) rename {src/Vision => Vision/src}/Annotation/Web/WebEntity.php (100%) rename {src/Vision => Vision/src}/Annotation/Web/WebImage.php (100%) rename {src/Vision => Vision/src}/Annotation/Web/WebPage.php (100%) rename {src/Vision => Vision/src}/Connection/ConnectionInterface.php (100%) rename {src/Vision => Vision/src}/Connection/Rest.php (100%) rename {src/Vision => Vision/src}/Connection/ServiceDefinition/vision-v1.json (100%) rename {src/Vision => Vision/src}/Image.php (100%) rename {src/Vision => Vision/src}/V1/Gapic/ImageAnnotatorGapicClient.php (100%) rename {src/Vision => Vision/src}/V1/ImageAnnotatorClient.php (100%) rename {src/Vision => Vision/src}/V1/README.md (100%) rename {src/Vision => Vision/src}/V1/resources/image_annotator_client_config.json (100%) rename {src/Vision => Vision/src}/V1/resources/image_annotator_descriptor_config.php (100%) rename {src/Vision => Vision/src}/V1/resources/image_annotator_rest_client_config.php (100%) rename {src/Vision => Vision/src}/VisionClient.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/AbstractFeatureTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/CropHintTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/DocumentTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/EntityTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/Face/LandmarksTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/FaceTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/ImagePropertiesTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/SafeSearchTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/Web/WebEntityTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/Web/WebImageTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/Web/WebPageTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/Annotation/WebTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/AnnotationTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/ImageTest.php (100%) rename {tests/snippets/Vision => Vision/tests/snippets}/VisionClientTest.php (100%) create mode 100644 Vision/tests/snippets/bootstrap.php rename {tests/system/Vision => Vision/tests/system}/AnnotationsTest.php (100%) rename {tests/system/Vision => Vision/tests/system}/VisionTestCase.php (100%) create mode 100644 Vision/tests/system/bootstrap.php rename {tests/system/Vision => Vision/tests/system}/fixtures/google.jpg (100%) rename {tests/system/Vision => Vision/tests/system}/fixtures/landmark.jpg (100%) rename {tests/system/Vision => Vision/tests/system}/fixtures/obama.jpg (100%) rename {tests/system/Vision => Vision/tests/system}/fixtures/text.jpg (100%) rename {tests/unit/Vision => Vision/tests/unit}/Annotation/CropHintTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Annotation/DocumentTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Annotation/EntityTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Annotation/Face/LandmarksTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Annotation/FaceTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Annotation/LikelihoodTraitTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Annotation/SafeSearchTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Annotation/Web/WebEntityTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Annotation/Web/WebImageTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Annotation/Web/WebPageTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Annotation/WebTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/AnnotationTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Connection/RestTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/Fixtures.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/ImageTest.php (100%) rename {tests/unit/Vision => Vision/tests/unit}/VisionClientTest.php (100%) create mode 100644 Vision/tests/unit/bootstrap.php rename {tests/unit/Vision => Vision/tests/unit}/fixtures/eiffel-tower.jpg (100%) rename {tests/unit/Vision => Vision/tests/unit}/fixtures/face-landmarks.json (100%) diff --git a/src/BigQuery/CONTRIBUTING.md b/BigQuery/CONTRIBUTING.md similarity index 100% rename from src/BigQuery/CONTRIBUTING.md rename to BigQuery/CONTRIBUTING.md diff --git a/src/BigQuery/LICENSE b/BigQuery/LICENSE similarity index 100% rename from src/BigQuery/LICENSE rename to BigQuery/LICENSE diff --git a/src/BigQuery/README.md b/BigQuery/README.md similarity index 100% rename from src/BigQuery/README.md rename to BigQuery/README.md diff --git a/src/BigQuery/VERSION b/BigQuery/VERSION similarity index 100% rename from src/BigQuery/VERSION rename to BigQuery/VERSION diff --git a/src/BigQuery/composer.json b/BigQuery/composer.json similarity index 100% rename from src/BigQuery/composer.json rename to BigQuery/composer.json diff --git a/BigQuery/phpunit-snippets.xml.dist b/BigQuery/phpunit-snippets.xml.dist new file mode 100644 index 000000000000..adf4adbeb5a3 --- /dev/null +++ b/BigQuery/phpunit-snippets.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/BigQuery/phpunit-system.xml.dist b/BigQuery/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/BigQuery/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/BigQuery/phpunit.xml.dist b/BigQuery/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/BigQuery/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/BigQuery/BigQueryClient.php b/BigQuery/src/BigQueryClient.php similarity index 100% rename from src/BigQuery/BigQueryClient.php rename to BigQuery/src/BigQueryClient.php diff --git a/src/BigQuery/Bytes.php b/BigQuery/src/Bytes.php similarity index 100% rename from src/BigQuery/Bytes.php rename to BigQuery/src/Bytes.php diff --git a/src/BigQuery/Connection/ConnectionInterface.php b/BigQuery/src/Connection/ConnectionInterface.php similarity index 100% rename from src/BigQuery/Connection/ConnectionInterface.php rename to BigQuery/src/Connection/ConnectionInterface.php diff --git a/src/BigQuery/Connection/Rest.php b/BigQuery/src/Connection/Rest.php similarity index 100% rename from src/BigQuery/Connection/Rest.php rename to BigQuery/src/Connection/Rest.php diff --git a/src/BigQuery/Connection/ServiceDefinition/bigquery-v2.json b/BigQuery/src/Connection/ServiceDefinition/bigquery-v2.json similarity index 100% rename from src/BigQuery/Connection/ServiceDefinition/bigquery-v2.json rename to BigQuery/src/Connection/ServiceDefinition/bigquery-v2.json diff --git a/src/BigQuery/CopyJobConfiguration.php b/BigQuery/src/CopyJobConfiguration.php similarity index 100% rename from src/BigQuery/CopyJobConfiguration.php rename to BigQuery/src/CopyJobConfiguration.php diff --git a/src/BigQuery/Dataset.php b/BigQuery/src/Dataset.php similarity index 100% rename from src/BigQuery/Dataset.php rename to BigQuery/src/Dataset.php diff --git a/src/BigQuery/Date.php b/BigQuery/src/Date.php similarity index 100% rename from src/BigQuery/Date.php rename to BigQuery/src/Date.php diff --git a/src/BigQuery/Exception/JobException.php b/BigQuery/src/Exception/JobException.php similarity index 100% rename from src/BigQuery/Exception/JobException.php rename to BigQuery/src/Exception/JobException.php diff --git a/src/BigQuery/ExtractJobConfiguration.php b/BigQuery/src/ExtractJobConfiguration.php similarity index 100% rename from src/BigQuery/ExtractJobConfiguration.php rename to BigQuery/src/ExtractJobConfiguration.php diff --git a/src/BigQuery/InsertResponse.php b/BigQuery/src/InsertResponse.php similarity index 100% rename from src/BigQuery/InsertResponse.php rename to BigQuery/src/InsertResponse.php diff --git a/src/BigQuery/Job.php b/BigQuery/src/Job.php similarity index 100% rename from src/BigQuery/Job.php rename to BigQuery/src/Job.php diff --git a/src/BigQuery/JobConfigurationInterface.php b/BigQuery/src/JobConfigurationInterface.php similarity index 100% rename from src/BigQuery/JobConfigurationInterface.php rename to BigQuery/src/JobConfigurationInterface.php diff --git a/src/BigQuery/JobConfigurationTrait.php b/BigQuery/src/JobConfigurationTrait.php similarity index 100% rename from src/BigQuery/JobConfigurationTrait.php rename to BigQuery/src/JobConfigurationTrait.php diff --git a/src/BigQuery/JobWaitTrait.php b/BigQuery/src/JobWaitTrait.php similarity index 100% rename from src/BigQuery/JobWaitTrait.php rename to BigQuery/src/JobWaitTrait.php diff --git a/src/BigQuery/LoadJobConfiguration.php b/BigQuery/src/LoadJobConfiguration.php similarity index 100% rename from src/BigQuery/LoadJobConfiguration.php rename to BigQuery/src/LoadJobConfiguration.php diff --git a/src/BigQuery/QueryJobConfiguration.php b/BigQuery/src/QueryJobConfiguration.php similarity index 100% rename from src/BigQuery/QueryJobConfiguration.php rename to BigQuery/src/QueryJobConfiguration.php diff --git a/src/BigQuery/QueryResults.php b/BigQuery/src/QueryResults.php similarity index 100% rename from src/BigQuery/QueryResults.php rename to BigQuery/src/QueryResults.php diff --git a/src/BigQuery/Table.php b/BigQuery/src/Table.php similarity index 100% rename from src/BigQuery/Table.php rename to BigQuery/src/Table.php diff --git a/src/BigQuery/Time.php b/BigQuery/src/Time.php similarity index 100% rename from src/BigQuery/Time.php rename to BigQuery/src/Time.php diff --git a/src/BigQuery/Timestamp.php b/BigQuery/src/Timestamp.php similarity index 100% rename from src/BigQuery/Timestamp.php rename to BigQuery/src/Timestamp.php diff --git a/src/BigQuery/ValueInterface.php b/BigQuery/src/ValueInterface.php similarity index 100% rename from src/BigQuery/ValueInterface.php rename to BigQuery/src/ValueInterface.php diff --git a/src/BigQuery/ValueMapper.php b/BigQuery/src/ValueMapper.php similarity index 100% rename from src/BigQuery/ValueMapper.php rename to BigQuery/src/ValueMapper.php diff --git a/tests/snippets/BigQuery/BigQueryClientTest.php b/BigQuery/tests/snippets/BigQueryClientTest.php similarity index 100% rename from tests/snippets/BigQuery/BigQueryClientTest.php rename to BigQuery/tests/snippets/BigQueryClientTest.php diff --git a/tests/snippets/BigQuery/BytesTest.php b/BigQuery/tests/snippets/BytesTest.php similarity index 100% rename from tests/snippets/BigQuery/BytesTest.php rename to BigQuery/tests/snippets/BytesTest.php diff --git a/tests/snippets/BigQuery/CopyJobConfigurationTest.php b/BigQuery/tests/snippets/CopyJobConfigurationTest.php similarity index 100% rename from tests/snippets/BigQuery/CopyJobConfigurationTest.php rename to BigQuery/tests/snippets/CopyJobConfigurationTest.php diff --git a/tests/snippets/BigQuery/DatasetTest.php b/BigQuery/tests/snippets/DatasetTest.php similarity index 100% rename from tests/snippets/BigQuery/DatasetTest.php rename to BigQuery/tests/snippets/DatasetTest.php diff --git a/tests/snippets/BigQuery/DateTest.php b/BigQuery/tests/snippets/DateTest.php similarity index 100% rename from tests/snippets/BigQuery/DateTest.php rename to BigQuery/tests/snippets/DateTest.php diff --git a/tests/snippets/BigQuery/ExtractJobConfigurationTest.php b/BigQuery/tests/snippets/ExtractJobConfigurationTest.php similarity index 100% rename from tests/snippets/BigQuery/ExtractJobConfigurationTest.php rename to BigQuery/tests/snippets/ExtractJobConfigurationTest.php diff --git a/tests/snippets/BigQuery/InsertResponseTest.php b/BigQuery/tests/snippets/InsertResponseTest.php similarity index 100% rename from tests/snippets/BigQuery/InsertResponseTest.php rename to BigQuery/tests/snippets/InsertResponseTest.php diff --git a/tests/snippets/BigQuery/JobTest.php b/BigQuery/tests/snippets/JobTest.php similarity index 100% rename from tests/snippets/BigQuery/JobTest.php rename to BigQuery/tests/snippets/JobTest.php diff --git a/tests/snippets/BigQuery/LoadJobConfigurationTest.php b/BigQuery/tests/snippets/LoadJobConfigurationTest.php similarity index 100% rename from tests/snippets/BigQuery/LoadJobConfigurationTest.php rename to BigQuery/tests/snippets/LoadJobConfigurationTest.php diff --git a/tests/snippets/BigQuery/QueryJobConfigurationTest.php b/BigQuery/tests/snippets/QueryJobConfigurationTest.php similarity index 100% rename from tests/snippets/BigQuery/QueryJobConfigurationTest.php rename to BigQuery/tests/snippets/QueryJobConfigurationTest.php diff --git a/tests/snippets/BigQuery/QueryResultsTest.php b/BigQuery/tests/snippets/QueryResultsTest.php similarity index 100% rename from tests/snippets/BigQuery/QueryResultsTest.php rename to BigQuery/tests/snippets/QueryResultsTest.php diff --git a/tests/snippets/BigQuery/TableTest.php b/BigQuery/tests/snippets/TableTest.php similarity index 100% rename from tests/snippets/BigQuery/TableTest.php rename to BigQuery/tests/snippets/TableTest.php diff --git a/tests/snippets/BigQuery/TimeTest.php b/BigQuery/tests/snippets/TimeTest.php similarity index 100% rename from tests/snippets/BigQuery/TimeTest.php rename to BigQuery/tests/snippets/TimeTest.php diff --git a/tests/snippets/BigQuery/TimestampTest.php b/BigQuery/tests/snippets/TimestampTest.php similarity index 100% rename from tests/snippets/BigQuery/TimestampTest.php rename to BigQuery/tests/snippets/TimestampTest.php diff --git a/BigQuery/tests/snippets/bootstrap.php b/BigQuery/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/BigQuery/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/BigQuery/BigQueryTestCase.php b/BigQuery/tests/system/BigQueryTestCase.php similarity index 100% rename from tests/system/BigQuery/BigQueryTestCase.php rename to BigQuery/tests/system/BigQueryTestCase.php diff --git a/tests/system/BigQuery/LoadDataAndQueryTest.php b/BigQuery/tests/system/LoadDataAndQueryTest.php similarity index 100% rename from tests/system/BigQuery/LoadDataAndQueryTest.php rename to BigQuery/tests/system/LoadDataAndQueryTest.php diff --git a/tests/system/BigQuery/ManageDatasetsTest.php b/BigQuery/tests/system/ManageDatasetsTest.php similarity index 100% rename from tests/system/BigQuery/ManageDatasetsTest.php rename to BigQuery/tests/system/ManageDatasetsTest.php diff --git a/tests/system/BigQuery/ManageJobsTest.php b/BigQuery/tests/system/ManageJobsTest.php similarity index 100% rename from tests/system/BigQuery/ManageJobsTest.php rename to BigQuery/tests/system/ManageJobsTest.php diff --git a/tests/system/BigQuery/ManageTablesTest.php b/BigQuery/tests/system/ManageTablesTest.php similarity index 100% rename from tests/system/BigQuery/ManageTablesTest.php rename to BigQuery/tests/system/ManageTablesTest.php diff --git a/tests/system/BigQuery/README.md b/BigQuery/tests/system/README.md similarity index 100% rename from tests/system/BigQuery/README.md rename to BigQuery/tests/system/README.md diff --git a/BigQuery/tests/system/bootstrap.php b/BigQuery/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/BigQuery/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Bigtable/phpunit-system.xml.dist b/Bigtable/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Bigtable/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Bigtable/phpunit.xml.dist b/Bigtable/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Bigtable/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Bigtable/Admin/README.md b/Bigtable/src/Admin/README.md similarity index 100% rename from src/Bigtable/Admin/README.md rename to Bigtable/src/Admin/README.md diff --git a/src/Bigtable/Admin/V2/BigtableInstanceAdminClient.php b/Bigtable/src/Admin/V2/BigtableInstanceAdminClient.php similarity index 100% rename from src/Bigtable/Admin/V2/BigtableInstanceAdminClient.php rename to Bigtable/src/Admin/V2/BigtableInstanceAdminClient.php diff --git a/src/Bigtable/Admin/V2/BigtableTableAdminClient.php b/Bigtable/src/Admin/V2/BigtableTableAdminClient.php similarity index 100% rename from src/Bigtable/Admin/V2/BigtableTableAdminClient.php rename to Bigtable/src/Admin/V2/BigtableTableAdminClient.php diff --git a/src/Bigtable/Admin/V2/Gapic/BigtableInstanceAdminGapicClient.php b/Bigtable/src/Admin/V2/Gapic/BigtableInstanceAdminGapicClient.php similarity index 100% rename from src/Bigtable/Admin/V2/Gapic/BigtableInstanceAdminGapicClient.php rename to Bigtable/src/Admin/V2/Gapic/BigtableInstanceAdminGapicClient.php diff --git a/src/Bigtable/Admin/V2/Gapic/BigtableTableAdminGapicClient.php b/Bigtable/src/Admin/V2/Gapic/BigtableTableAdminGapicClient.php similarity index 100% rename from src/Bigtable/Admin/V2/Gapic/BigtableTableAdminGapicClient.php rename to Bigtable/src/Admin/V2/Gapic/BigtableTableAdminGapicClient.php diff --git a/src/Bigtable/Admin/V2/README.md b/Bigtable/src/Admin/V2/README.md similarity index 100% rename from src/Bigtable/Admin/V2/README.md rename to Bigtable/src/Admin/V2/README.md diff --git a/src/Bigtable/Admin/V2/resources/bigtable_instance_admin_client_config.json b/Bigtable/src/Admin/V2/resources/bigtable_instance_admin_client_config.json similarity index 100% rename from src/Bigtable/Admin/V2/resources/bigtable_instance_admin_client_config.json rename to Bigtable/src/Admin/V2/resources/bigtable_instance_admin_client_config.json diff --git a/src/Bigtable/Admin/V2/resources/bigtable_instance_admin_descriptor_config.php b/Bigtable/src/Admin/V2/resources/bigtable_instance_admin_descriptor_config.php similarity index 100% rename from src/Bigtable/Admin/V2/resources/bigtable_instance_admin_descriptor_config.php rename to Bigtable/src/Admin/V2/resources/bigtable_instance_admin_descriptor_config.php diff --git a/src/Bigtable/Admin/V2/resources/bigtable_instance_admin_rest_client_config.php b/Bigtable/src/Admin/V2/resources/bigtable_instance_admin_rest_client_config.php similarity index 100% rename from src/Bigtable/Admin/V2/resources/bigtable_instance_admin_rest_client_config.php rename to Bigtable/src/Admin/V2/resources/bigtable_instance_admin_rest_client_config.php diff --git a/src/Bigtable/Admin/V2/resources/bigtable_table_admin_client_config.json b/Bigtable/src/Admin/V2/resources/bigtable_table_admin_client_config.json similarity index 100% rename from src/Bigtable/Admin/V2/resources/bigtable_table_admin_client_config.json rename to Bigtable/src/Admin/V2/resources/bigtable_table_admin_client_config.json diff --git a/src/Bigtable/Admin/V2/resources/bigtable_table_admin_descriptor_config.php b/Bigtable/src/Admin/V2/resources/bigtable_table_admin_descriptor_config.php similarity index 100% rename from src/Bigtable/Admin/V2/resources/bigtable_table_admin_descriptor_config.php rename to Bigtable/src/Admin/V2/resources/bigtable_table_admin_descriptor_config.php diff --git a/src/Bigtable/Admin/V2/resources/bigtable_table_admin_rest_client_config.php b/Bigtable/src/Admin/V2/resources/bigtable_table_admin_rest_client_config.php similarity index 100% rename from src/Bigtable/Admin/V2/resources/bigtable_table_admin_rest_client_config.php rename to Bigtable/src/Admin/V2/resources/bigtable_table_admin_rest_client_config.php diff --git a/src/Bigtable/V2/BigtableClient.php b/Bigtable/src/V2/BigtableClient.php similarity index 100% rename from src/Bigtable/V2/BigtableClient.php rename to Bigtable/src/V2/BigtableClient.php diff --git a/src/Bigtable/V2/Gapic/BigtableGapicClient.php b/Bigtable/src/V2/Gapic/BigtableGapicClient.php similarity index 100% rename from src/Bigtable/V2/Gapic/BigtableGapicClient.php rename to Bigtable/src/V2/Gapic/BigtableGapicClient.php diff --git a/src/Bigtable/V2/README.md b/Bigtable/src/V2/README.md similarity index 100% rename from src/Bigtable/V2/README.md rename to Bigtable/src/V2/README.md diff --git a/src/Bigtable/V2/resources/bigtable_client_config.json b/Bigtable/src/V2/resources/bigtable_client_config.json similarity index 100% rename from src/Bigtable/V2/resources/bigtable_client_config.json rename to Bigtable/src/V2/resources/bigtable_client_config.json diff --git a/src/Bigtable/V2/resources/bigtable_descriptor_config.php b/Bigtable/src/V2/resources/bigtable_descriptor_config.php similarity index 100% rename from src/Bigtable/V2/resources/bigtable_descriptor_config.php rename to Bigtable/src/V2/resources/bigtable_descriptor_config.php diff --git a/src/Bigtable/V2/resources/bigtable_rest_client_config.php b/Bigtable/src/V2/resources/bigtable_rest_client_config.php similarity index 100% rename from src/Bigtable/V2/resources/bigtable_rest_client_config.php rename to Bigtable/src/V2/resources/bigtable_rest_client_config.php diff --git a/Bigtable/tests/snippets/bootstrap.php b/Bigtable/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Bigtable/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Bigtable/BigtableInstanceAdminTest.php b/Bigtable/tests/system/BigtableInstanceAdminTest.php similarity index 100% rename from tests/system/Bigtable/BigtableInstanceAdminTest.php rename to Bigtable/tests/system/BigtableInstanceAdminTest.php diff --git a/Bigtable/tests/system/bootstrap.php b/Bigtable/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Bigtable/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Container/phpunit-system.xml.dist b/Container/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Container/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Container/phpunit.xml.dist b/Container/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Container/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Container/V1/ClusterManagerClient.php b/Container/src/V1/ClusterManagerClient.php similarity index 100% rename from src/Container/V1/ClusterManagerClient.php rename to Container/src/V1/ClusterManagerClient.php diff --git a/src/Container/V1/Gapic/ClusterManagerGapicClient.php b/Container/src/V1/Gapic/ClusterManagerGapicClient.php similarity index 100% rename from src/Container/V1/Gapic/ClusterManagerGapicClient.php rename to Container/src/V1/Gapic/ClusterManagerGapicClient.php diff --git a/src/Container/V1/README.md b/Container/src/V1/README.md similarity index 100% rename from src/Container/V1/README.md rename to Container/src/V1/README.md diff --git a/src/Container/V1/resources/cluster_manager_client_config.json b/Container/src/V1/resources/cluster_manager_client_config.json similarity index 100% rename from src/Container/V1/resources/cluster_manager_client_config.json rename to Container/src/V1/resources/cluster_manager_client_config.json diff --git a/src/Container/V1/resources/cluster_manager_descriptor_config.php b/Container/src/V1/resources/cluster_manager_descriptor_config.php similarity index 100% rename from src/Container/V1/resources/cluster_manager_descriptor_config.php rename to Container/src/V1/resources/cluster_manager_descriptor_config.php diff --git a/src/Container/V1/resources/cluster_manager_rest_client_config.php b/Container/src/V1/resources/cluster_manager_rest_client_config.php similarity index 100% rename from src/Container/V1/resources/cluster_manager_rest_client_config.php rename to Container/src/V1/resources/cluster_manager_rest_client_config.php diff --git a/Container/tests/snippets/bootstrap.php b/Container/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Container/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Container/ClusterManagerClientTest.php b/Container/tests/system/ClusterManagerClientTest.php similarity index 100% rename from tests/system/Container/ClusterManagerClientTest.php rename to Container/tests/system/ClusterManagerClientTest.php diff --git a/Container/tests/system/bootstrap.php b/Container/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Container/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Core/phpunit-system.xml.dist b/Core/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Core/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Core/phpunit.xml.dist b/Core/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Core/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Core/AnonymousCredentials.php b/Core/src/AnonymousCredentials.php similarity index 100% rename from src/Core/AnonymousCredentials.php rename to Core/src/AnonymousCredentials.php diff --git a/src/Core/ArrayTrait.php b/Core/src/ArrayTrait.php similarity index 100% rename from src/Core/ArrayTrait.php rename to Core/src/ArrayTrait.php diff --git a/Core/src/Batch/BatchConfig.php b/Core/src/Batch/BatchConfig.php new file mode 100644 index 000000000000..0160ecc4d1e5 --- /dev/null +++ b/Core/src/Batch/BatchConfig.php @@ -0,0 +1,118 @@ +idmap) + ? $this->jobs[$identifier] + : null; + } + + /** + * Get the job with the given numeric id. + * + * @param int $idNum A numeric id of the job. + * + * @return BatchJob|null + */ + public function getJobFromIdNum($idNum) + { + return array_key_exists($idNum, $this->idmap_reverse) + ? $this->jobs[$this->idmap_reverse[$idNum]] + : null; + } + + /** + * Register a job for executing in batch. + * + * @param string $identifier Unique identifier of the job. + * @param callable $func Any Callable except for Closure. The callable + * should accept an array of items as the first argument. + * @param array $options [optional] { + * Configuration options. + * + * @type int $batchSize The size of the batch. + * @type float $callPeriod The period in seconds from the last execution + * to force executing the job. + * @type int $workerNum The number of child processes. It only takes + * effect with the {@see \Google\Cloud\Core\Batch\BatchDaemon}. + * @type string $bootstrapFile A file to load before executing the + * job. It's needed for registering global functions. + * } + * @return void + */ + public function registerJob($identifier, $func, array $options = []) + { + if (array_key_exists($identifier, $this->idmap)) { + $idNum = $this->idmap[$identifier]; + } else { + $idNum = count($this->idmap) + 1; + $this->idmap_reverse[$idNum] = $identifier; + } + $this->jobs[$identifier] = new BatchJob( + $identifier, + $func, + $idNum, + $options + ); + $this->idmap[$identifier] = $idNum; + } + + /** + * Get all the jobs. + * + * @return BatchJob[] + */ + public function getJobs() + { + return $this->jobs; + } +} diff --git a/src/Core/Batch/BatchDaemon.php b/Core/src/Batch/BatchDaemon.php similarity index 100% rename from src/Core/Batch/BatchDaemon.php rename to Core/src/Batch/BatchDaemon.php diff --git a/src/Core/Batch/BatchDaemonTrait.php b/Core/src/Batch/BatchDaemonTrait.php similarity index 100% rename from src/Core/Batch/BatchDaemonTrait.php rename to Core/src/Batch/BatchDaemonTrait.php diff --git a/src/Core/Batch/BatchJob.php b/Core/src/Batch/BatchJob.php similarity index 100% rename from src/Core/Batch/BatchJob.php rename to Core/src/Batch/BatchJob.php diff --git a/src/Core/Batch/BatchRunner.php b/Core/src/Batch/BatchRunner.php similarity index 100% rename from src/Core/Batch/BatchRunner.php rename to Core/src/Batch/BatchRunner.php diff --git a/src/Core/Batch/BatchTrait.php b/Core/src/Batch/BatchTrait.php similarity index 100% rename from src/Core/Batch/BatchTrait.php rename to Core/src/Batch/BatchTrait.php diff --git a/src/Core/Batch/ConfigStorageInterface.php b/Core/src/Batch/ConfigStorageInterface.php similarity index 100% rename from src/Core/Batch/ConfigStorageInterface.php rename to Core/src/Batch/ConfigStorageInterface.php diff --git a/src/Core/Batch/HandleFailureTrait.php b/Core/src/Batch/HandleFailureTrait.php similarity index 100% rename from src/Core/Batch/HandleFailureTrait.php rename to Core/src/Batch/HandleFailureTrait.php diff --git a/src/Core/Batch/InMemoryConfigStorage.php b/Core/src/Batch/InMemoryConfigStorage.php similarity index 100% rename from src/Core/Batch/InMemoryConfigStorage.php rename to Core/src/Batch/InMemoryConfigStorage.php diff --git a/src/Core/Batch/ProcessItemInterface.php b/Core/src/Batch/ProcessItemInterface.php similarity index 100% rename from src/Core/Batch/ProcessItemInterface.php rename to Core/src/Batch/ProcessItemInterface.php diff --git a/src/Core/Batch/Retry.php b/Core/src/Batch/Retry.php similarity index 100% rename from src/Core/Batch/Retry.php rename to Core/src/Batch/Retry.php diff --git a/src/Core/Batch/SysvConfigStorage.php b/Core/src/Batch/SysvConfigStorage.php similarity index 100% rename from src/Core/Batch/SysvConfigStorage.php rename to Core/src/Batch/SysvConfigStorage.php diff --git a/src/Core/Batch/SysvProcessor.php b/Core/src/Batch/SysvProcessor.php similarity index 100% rename from src/Core/Batch/SysvProcessor.php rename to Core/src/Batch/SysvProcessor.php diff --git a/src/Core/Blob.php b/Core/src/Blob.php similarity index 100% rename from src/Core/Blob.php rename to Core/src/Blob.php diff --git a/src/Core/CallTrait.php b/Core/src/CallTrait.php similarity index 100% rename from src/Core/CallTrait.php rename to Core/src/CallTrait.php diff --git a/src/Core/ClientTrait.php b/Core/src/ClientTrait.php similarity index 100% rename from src/Core/ClientTrait.php rename to Core/src/ClientTrait.php diff --git a/src/Core/Compute/Metadata.php b/Core/src/Compute/Metadata.php similarity index 100% rename from src/Core/Compute/Metadata.php rename to Core/src/Compute/Metadata.php diff --git a/src/Core/Compute/Metadata/Readers/ReaderInterface.php b/Core/src/Compute/Metadata/Readers/ReaderInterface.php similarity index 100% rename from src/Core/Compute/Metadata/Readers/ReaderInterface.php rename to Core/src/Compute/Metadata/Readers/ReaderInterface.php diff --git a/src/Core/Compute/Metadata/Readers/StreamReader.php b/Core/src/Compute/Metadata/Readers/StreamReader.php similarity index 100% rename from src/Core/Compute/Metadata/Readers/StreamReader.php rename to Core/src/Compute/Metadata/Readers/StreamReader.php diff --git a/src/Core/ConcurrencyControlTrait.php b/Core/src/ConcurrencyControlTrait.php similarity index 100% rename from src/Core/ConcurrencyControlTrait.php rename to Core/src/ConcurrencyControlTrait.php diff --git a/src/Core/DebugInfoTrait.php b/Core/src/DebugInfoTrait.php similarity index 100% rename from src/Core/DebugInfoTrait.php rename to Core/src/DebugInfoTrait.php diff --git a/src/Core/Duration.php b/Core/src/Duration.php similarity index 100% rename from src/Core/Duration.php rename to Core/src/Duration.php diff --git a/src/Core/EmulatorTrait.php b/Core/src/EmulatorTrait.php similarity index 100% rename from src/Core/EmulatorTrait.php rename to Core/src/EmulatorTrait.php diff --git a/src/Core/Exception/AbortedException.php b/Core/src/Exception/AbortedException.php similarity index 100% rename from src/Core/Exception/AbortedException.php rename to Core/src/Exception/AbortedException.php diff --git a/src/Core/Exception/BadRequestException.php b/Core/src/Exception/BadRequestException.php similarity index 100% rename from src/Core/Exception/BadRequestException.php rename to Core/src/Exception/BadRequestException.php diff --git a/src/Core/Exception/ConflictException.php b/Core/src/Exception/ConflictException.php similarity index 100% rename from src/Core/Exception/ConflictException.php rename to Core/src/Exception/ConflictException.php diff --git a/src/Core/Exception/DeadlineExceededException.php b/Core/src/Exception/DeadlineExceededException.php similarity index 100% rename from src/Core/Exception/DeadlineExceededException.php rename to Core/src/Exception/DeadlineExceededException.php diff --git a/src/Core/Exception/FailedPreconditionException.php b/Core/src/Exception/FailedPreconditionException.php similarity index 100% rename from src/Core/Exception/FailedPreconditionException.php rename to Core/src/Exception/FailedPreconditionException.php diff --git a/src/Core/Exception/GoogleException.php b/Core/src/Exception/GoogleException.php similarity index 100% rename from src/Core/Exception/GoogleException.php rename to Core/src/Exception/GoogleException.php diff --git a/src/Core/Exception/NotFoundException.php b/Core/src/Exception/NotFoundException.php similarity index 100% rename from src/Core/Exception/NotFoundException.php rename to Core/src/Exception/NotFoundException.php diff --git a/src/Core/Exception/ServerException.php b/Core/src/Exception/ServerException.php similarity index 100% rename from src/Core/Exception/ServerException.php rename to Core/src/Exception/ServerException.php diff --git a/src/Core/Exception/ServiceException.php b/Core/src/Exception/ServiceException.php similarity index 100% rename from src/Core/Exception/ServiceException.php rename to Core/src/Exception/ServiceException.php diff --git a/src/Core/ExponentialBackoff.php b/Core/src/ExponentialBackoff.php similarity index 100% rename from src/Core/ExponentialBackoff.php rename to Core/src/ExponentialBackoff.php diff --git a/src/Core/GeoPoint.php b/Core/src/GeoPoint.php similarity index 100% rename from src/Core/GeoPoint.php rename to Core/src/GeoPoint.php diff --git a/src/Core/GrpcRequestWrapper.php b/Core/src/GrpcRequestWrapper.php similarity index 100% rename from src/Core/GrpcRequestWrapper.php rename to Core/src/GrpcRequestWrapper.php diff --git a/src/Core/GrpcTrait.php b/Core/src/GrpcTrait.php similarity index 100% rename from src/Core/GrpcTrait.php rename to Core/src/GrpcTrait.php diff --git a/src/Core/Iam/Iam.php b/Core/src/Iam/Iam.php similarity index 100% rename from src/Core/Iam/Iam.php rename to Core/src/Iam/Iam.php diff --git a/src/Core/Iam/IamConnectionInterface.php b/Core/src/Iam/IamConnectionInterface.php similarity index 100% rename from src/Core/Iam/IamConnectionInterface.php rename to Core/src/Iam/IamConnectionInterface.php diff --git a/src/Core/Iam/PolicyBuilder.php b/Core/src/Iam/PolicyBuilder.php similarity index 100% rename from src/Core/Iam/PolicyBuilder.php rename to Core/src/Iam/PolicyBuilder.php diff --git a/src/Core/Int64.php b/Core/src/Int64.php similarity index 100% rename from src/Core/Int64.php rename to Core/src/Int64.php diff --git a/src/Core/Iterator/ItemIterator.php b/Core/src/Iterator/ItemIterator.php similarity index 100% rename from src/Core/Iterator/ItemIterator.php rename to Core/src/Iterator/ItemIterator.php diff --git a/src/Core/Iterator/ItemIteratorTrait.php b/Core/src/Iterator/ItemIteratorTrait.php similarity index 100% rename from src/Core/Iterator/ItemIteratorTrait.php rename to Core/src/Iterator/ItemIteratorTrait.php diff --git a/src/Core/Iterator/PageIterator.php b/Core/src/Iterator/PageIterator.php similarity index 100% rename from src/Core/Iterator/PageIterator.php rename to Core/src/Iterator/PageIterator.php diff --git a/src/Core/Iterator/PageIteratorTrait.php b/Core/src/Iterator/PageIteratorTrait.php similarity index 100% rename from src/Core/Iterator/PageIteratorTrait.php rename to Core/src/Iterator/PageIteratorTrait.php diff --git a/src/Core/JsonTrait.php b/Core/src/JsonTrait.php similarity index 100% rename from src/Core/JsonTrait.php rename to Core/src/JsonTrait.php diff --git a/src/Core/Lock/FlockLock.php b/Core/src/Lock/FlockLock.php similarity index 100% rename from src/Core/Lock/FlockLock.php rename to Core/src/Lock/FlockLock.php diff --git a/src/Core/Lock/LockInterface.php b/Core/src/Lock/LockInterface.php similarity index 100% rename from src/Core/Lock/LockInterface.php rename to Core/src/Lock/LockInterface.php diff --git a/src/Core/Lock/LockTrait.php b/Core/src/Lock/LockTrait.php similarity index 100% rename from src/Core/Lock/LockTrait.php rename to Core/src/Lock/LockTrait.php diff --git a/src/Core/Lock/SemaphoreLock.php b/Core/src/Lock/SemaphoreLock.php similarity index 100% rename from src/Core/Lock/SemaphoreLock.php rename to Core/src/Lock/SemaphoreLock.php diff --git a/src/Core/Lock/SymfonyLockAdapter.php b/Core/src/Lock/SymfonyLockAdapter.php similarity index 100% rename from src/Core/Lock/SymfonyLockAdapter.php rename to Core/src/Lock/SymfonyLockAdapter.php diff --git a/src/Core/Logger/AppEngineFlexFormatter.php b/Core/src/Logger/AppEngineFlexFormatter.php similarity index 100% rename from src/Core/Logger/AppEngineFlexFormatter.php rename to Core/src/Logger/AppEngineFlexFormatter.php diff --git a/src/Core/Logger/AppEngineFlexHandler.php b/Core/src/Logger/AppEngineFlexHandler.php similarity index 100% rename from src/Core/Logger/AppEngineFlexHandler.php rename to Core/src/Logger/AppEngineFlexHandler.php diff --git a/src/Core/LongRunning/LROTrait.php b/Core/src/LongRunning/LROTrait.php similarity index 100% rename from src/Core/LongRunning/LROTrait.php rename to Core/src/LongRunning/LROTrait.php diff --git a/src/Core/LongRunning/LongRunningConnectionInterface.php b/Core/src/LongRunning/LongRunningConnectionInterface.php similarity index 100% rename from src/Core/LongRunning/LongRunningConnectionInterface.php rename to Core/src/LongRunning/LongRunningConnectionInterface.php diff --git a/src/Core/LongRunning/LongRunningOperation.php b/Core/src/LongRunning/LongRunningOperation.php similarity index 100% rename from src/Core/LongRunning/LongRunningOperation.php rename to Core/src/LongRunning/LongRunningOperation.php diff --git a/src/Core/LongRunning/OperationResponseTrait.php b/Core/src/LongRunning/OperationResponseTrait.php similarity index 100% rename from src/Core/LongRunning/OperationResponseTrait.php rename to Core/src/LongRunning/OperationResponseTrait.php diff --git a/src/Core/PhpArray.php b/Core/src/PhpArray.php similarity index 100% rename from src/Core/PhpArray.php rename to Core/src/PhpArray.php diff --git a/src/Core/Report/EmptyMetadataProvider.php b/Core/src/Report/EmptyMetadataProvider.php similarity index 100% rename from src/Core/Report/EmptyMetadataProvider.php rename to Core/src/Report/EmptyMetadataProvider.php diff --git a/src/Core/Report/GAEFlexMetadataProvider.php b/Core/src/Report/GAEFlexMetadataProvider.php similarity index 100% rename from src/Core/Report/GAEFlexMetadataProvider.php rename to Core/src/Report/GAEFlexMetadataProvider.php diff --git a/src/Core/Report/MetadataProviderInterface.php b/Core/src/Report/MetadataProviderInterface.php similarity index 100% rename from src/Core/Report/MetadataProviderInterface.php rename to Core/src/Report/MetadataProviderInterface.php diff --git a/src/Core/Report/MetadataProviderUtils.php b/Core/src/Report/MetadataProviderUtils.php similarity index 100% rename from src/Core/Report/MetadataProviderUtils.php rename to Core/src/Report/MetadataProviderUtils.php diff --git a/src/Core/Report/SimpleMetadataProvider.php b/Core/src/Report/SimpleMetadataProvider.php similarity index 100% rename from src/Core/Report/SimpleMetadataProvider.php rename to Core/src/Report/SimpleMetadataProvider.php diff --git a/src/Core/RequestBuilder.php b/Core/src/RequestBuilder.php similarity index 100% rename from src/Core/RequestBuilder.php rename to Core/src/RequestBuilder.php diff --git a/src/Core/RequestWrapper.php b/Core/src/RequestWrapper.php similarity index 100% rename from src/Core/RequestWrapper.php rename to Core/src/RequestWrapper.php diff --git a/src/Core/RequestWrapperTrait.php b/Core/src/RequestWrapperTrait.php similarity index 100% rename from src/Core/RequestWrapperTrait.php rename to Core/src/RequestWrapperTrait.php diff --git a/src/Core/RestTrait.php b/Core/src/RestTrait.php similarity index 100% rename from src/Core/RestTrait.php rename to Core/src/RestTrait.php diff --git a/src/Core/Retry.php b/Core/src/Retry.php similarity index 100% rename from src/Core/Retry.php rename to Core/src/Retry.php diff --git a/src/Core/RetryDeciderTrait.php b/Core/src/RetryDeciderTrait.php similarity index 100% rename from src/Core/RetryDeciderTrait.php rename to Core/src/RetryDeciderTrait.php diff --git a/src/Core/ServiceBuilder.php b/Core/src/ServiceBuilder.php similarity index 100% rename from src/Core/ServiceBuilder.php rename to Core/src/ServiceBuilder.php diff --git a/src/Core/SysvTrait.php b/Core/src/SysvTrait.php similarity index 100% rename from src/Core/SysvTrait.php rename to Core/src/SysvTrait.php diff --git a/src/Core/Testing/ArrayHasSameValuesToken.php b/Core/src/Testing/ArrayHasSameValuesToken.php similarity index 100% rename from src/Core/Testing/ArrayHasSameValuesToken.php rename to Core/src/Testing/ArrayHasSameValuesToken.php diff --git a/src/Core/Testing/CheckForClassTrait.php b/Core/src/Testing/CheckForClassTrait.php similarity index 100% rename from src/Core/Testing/CheckForClassTrait.php rename to Core/src/Testing/CheckForClassTrait.php diff --git a/src/Core/Testing/DocBlockStripSpaces.php b/Core/src/Testing/DocBlockStripSpaces.php similarity index 100% rename from src/Core/Testing/DocBlockStripSpaces.php rename to Core/src/Testing/DocBlockStripSpaces.php diff --git a/src/Core/Testing/GrpcTestTrait.php b/Core/src/Testing/GrpcTestTrait.php similarity index 100% rename from src/Core/Testing/GrpcTestTrait.php rename to Core/src/Testing/GrpcTestTrait.php diff --git a/src/Core/Testing/KeyPairGenerateTrait.php b/Core/src/Testing/KeyPairGenerateTrait.php similarity index 100% rename from src/Core/Testing/KeyPairGenerateTrait.php rename to Core/src/Testing/KeyPairGenerateTrait.php diff --git a/src/Core/Testing/Lock/MockGlobals.php b/Core/src/Testing/Lock/MockGlobals.php similarity index 100% rename from src/Core/Testing/Lock/MockGlobals.php rename to Core/src/Testing/Lock/MockGlobals.php diff --git a/src/Core/Testing/Lock/MockValues.php b/Core/src/Testing/Lock/MockValues.php similarity index 100% rename from src/Core/Testing/Lock/MockValues.php rename to Core/src/Testing/Lock/MockValues.php diff --git a/src/Core/Testing/README.md b/Core/src/Testing/README.md similarity index 100% rename from src/Core/Testing/README.md rename to Core/src/Testing/README.md diff --git a/src/Core/Testing/Snippet/Container.php b/Core/src/Testing/Snippet/Container.php similarity index 100% rename from src/Core/Testing/Snippet/Container.php rename to Core/src/Testing/Snippet/Container.php diff --git a/src/Core/Testing/Snippet/Coverage/Coverage.php b/Core/src/Testing/Snippet/Coverage/Coverage.php similarity index 100% rename from src/Core/Testing/Snippet/Coverage/Coverage.php rename to Core/src/Testing/Snippet/Coverage/Coverage.php diff --git a/src/Core/Testing/Snippet/Coverage/Scanner.php b/Core/src/Testing/Snippet/Coverage/Scanner.php similarity index 100% rename from src/Core/Testing/Snippet/Coverage/Scanner.php rename to Core/src/Testing/Snippet/Coverage/Scanner.php diff --git a/src/Core/Testing/Snippet/Coverage/ScannerInterface.php b/Core/src/Testing/Snippet/Coverage/ScannerInterface.php similarity index 100% rename from src/Core/Testing/Snippet/Coverage/ScannerInterface.php rename to Core/src/Testing/Snippet/Coverage/ScannerInterface.php diff --git a/src/Core/Testing/Snippet/Parser/InvokeResult.php b/Core/src/Testing/Snippet/Parser/InvokeResult.php similarity index 100% rename from src/Core/Testing/Snippet/Parser/InvokeResult.php rename to Core/src/Testing/Snippet/Parser/InvokeResult.php diff --git a/src/Core/Testing/Snippet/Parser/Parser.php b/Core/src/Testing/Snippet/Parser/Parser.php similarity index 100% rename from src/Core/Testing/Snippet/Parser/Parser.php rename to Core/src/Testing/Snippet/Parser/Parser.php diff --git a/src/Core/Testing/Snippet/Parser/Snippet.php b/Core/src/Testing/Snippet/Parser/Snippet.php similarity index 100% rename from src/Core/Testing/Snippet/Parser/Snippet.php rename to Core/src/Testing/Snippet/Parser/Snippet.php diff --git a/src/Core/Testing/Snippet/SnippetTestCase.php b/Core/src/Testing/Snippet/SnippetTestCase.php similarity index 100% rename from src/Core/Testing/Snippet/SnippetTestCase.php rename to Core/src/Testing/Snippet/SnippetTestCase.php diff --git a/src/Core/Testing/StubTrait.php b/Core/src/Testing/StubTrait.php similarity index 100% rename from src/Core/Testing/StubTrait.php rename to Core/src/Testing/StubTrait.php diff --git a/src/Core/Testing/System/DeletionQueue.php b/Core/src/Testing/System/DeletionQueue.php similarity index 100% rename from src/Core/Testing/System/DeletionQueue.php rename to Core/src/Testing/System/DeletionQueue.php diff --git a/src/Core/Testing/System/SystemTestCase.php b/Core/src/Testing/System/SystemTestCase.php similarity index 100% rename from src/Core/Testing/System/SystemTestCase.php rename to Core/src/Testing/System/SystemTestCase.php diff --git a/src/Core/Testing/TestHelpers.php b/Core/src/Testing/TestHelpers.php similarity index 100% rename from src/Core/Testing/TestHelpers.php rename to Core/src/Testing/TestHelpers.php diff --git a/src/Core/Timestamp.php b/Core/src/Timestamp.php similarity index 100% rename from src/Core/Timestamp.php rename to Core/src/Timestamp.php diff --git a/src/Core/Upload/AbstractUploader.php b/Core/src/Upload/AbstractUploader.php similarity index 100% rename from src/Core/Upload/AbstractUploader.php rename to Core/src/Upload/AbstractUploader.php diff --git a/src/Core/Upload/MultipartUploader.php b/Core/src/Upload/MultipartUploader.php similarity index 100% rename from src/Core/Upload/MultipartUploader.php rename to Core/src/Upload/MultipartUploader.php diff --git a/src/Core/Upload/ResumableUploader.php b/Core/src/Upload/ResumableUploader.php similarity index 100% rename from src/Core/Upload/ResumableUploader.php rename to Core/src/Upload/ResumableUploader.php diff --git a/src/Core/Upload/SignedUrlUploader.php b/Core/src/Upload/SignedUrlUploader.php similarity index 100% rename from src/Core/Upload/SignedUrlUploader.php rename to Core/src/Upload/SignedUrlUploader.php diff --git a/src/Core/Upload/StreamableUploader.php b/Core/src/Upload/StreamableUploader.php similarity index 100% rename from src/Core/Upload/StreamableUploader.php rename to Core/src/Upload/StreamableUploader.php diff --git a/src/Core/UriTrait.php b/Core/src/UriTrait.php similarity index 100% rename from src/Core/UriTrait.php rename to Core/src/UriTrait.php diff --git a/src/Core/ValidateTrait.php b/Core/src/ValidateTrait.php similarity index 100% rename from src/Core/ValidateTrait.php rename to Core/src/ValidateTrait.php diff --git a/src/Core/ValueMapperTrait.php b/Core/src/ValueMapperTrait.php similarity index 100% rename from src/Core/ValueMapperTrait.php rename to Core/src/ValueMapperTrait.php diff --git a/src/Core/WhitelistTrait.php b/Core/src/WhitelistTrait.php similarity index 100% rename from src/Core/WhitelistTrait.php rename to Core/src/WhitelistTrait.php diff --git a/src/Core/bin/google-cloud-batch b/Core/src/bin/google-cloud-batch similarity index 100% rename from src/Core/bin/google-cloud-batch rename to Core/src/bin/google-cloud-batch diff --git a/tests/snippets/Core/BlobTest.php b/Core/tests/snippets/BlobTest.php similarity index 100% rename from tests/snippets/Core/BlobTest.php rename to Core/tests/snippets/BlobTest.php diff --git a/tests/snippets/Core/Compute/MetadataTest.php b/Core/tests/snippets/Compute/MetadataTest.php similarity index 100% rename from tests/snippets/Core/Compute/MetadataTest.php rename to Core/tests/snippets/Compute/MetadataTest.php diff --git a/tests/snippets/Core/DurationTest.php b/Core/tests/snippets/DurationTest.php similarity index 100% rename from tests/snippets/Core/DurationTest.php rename to Core/tests/snippets/DurationTest.php diff --git a/tests/snippets/Core/GeoPointTest.php b/Core/tests/snippets/GeoPointTest.php similarity index 100% rename from tests/snippets/Core/GeoPointTest.php rename to Core/tests/snippets/GeoPointTest.php diff --git a/tests/snippets/Core/Iam/IamTest.php b/Core/tests/snippets/Iam/IamTest.php similarity index 100% rename from tests/snippets/Core/Iam/IamTest.php rename to Core/tests/snippets/Iam/IamTest.php diff --git a/tests/snippets/Core/Iam/PolicyBuilderTest.php b/Core/tests/snippets/Iam/PolicyBuilderTest.php similarity index 100% rename from tests/snippets/Core/Iam/PolicyBuilderTest.php rename to Core/tests/snippets/Iam/PolicyBuilderTest.php diff --git a/tests/snippets/Core/Int64Test.php b/Core/tests/snippets/Int64Test.php similarity index 100% rename from tests/snippets/Core/Int64Test.php rename to Core/tests/snippets/Int64Test.php diff --git a/tests/snippets/Core/LongRunning/LongRunningOperationTest.php b/Core/tests/snippets/LongRunning/LongRunningOperationTest.php similarity index 100% rename from tests/snippets/Core/LongRunning/LongRunningOperationTest.php rename to Core/tests/snippets/LongRunning/LongRunningOperationTest.php diff --git a/tests/snippets/Core/ServiceBuilderTest.php b/Core/tests/snippets/ServiceBuilderTest.php similarity index 100% rename from tests/snippets/Core/ServiceBuilderTest.php rename to Core/tests/snippets/ServiceBuilderTest.php diff --git a/tests/snippets/Core/Testing/Snippet/Parser/ParserTest.php b/Core/tests/snippets/Testing/Snippet/Parser/ParserTest.php similarity index 100% rename from tests/snippets/Core/Testing/Snippet/Parser/ParserTest.php rename to Core/tests/snippets/Testing/Snippet/Parser/ParserTest.php diff --git a/tests/snippets/Core/TimestampTest.php b/Core/tests/snippets/TimestampTest.php similarity index 100% rename from tests/snippets/Core/TimestampTest.php rename to Core/tests/snippets/TimestampTest.php diff --git a/Core/tests/snippets/bootstrap.php b/Core/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Core/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Core/Batch/BatchRunnerTest.php b/Core/tests/system/Batch/BatchRunnerTest.php similarity index 100% rename from tests/system/Core/Batch/BatchRunnerTest.php rename to Core/tests/system/Batch/BatchRunnerTest.php diff --git a/tests/system/Core/Batch/MyJob.php b/Core/tests/system/Batch/MyJob.php similarity index 100% rename from tests/system/Core/Batch/MyJob.php rename to Core/tests/system/Batch/MyJob.php diff --git a/Core/tests/system/bootstrap.php b/Core/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Core/tests/system/bootstrap.php @@ -0,0 +1,43 @@ +config = new BatchConfig(); + $this->identifier = 'job1'; + $this->func = 'myFunc'; + $this->config->registerJob( + $this->identifier, + $this->func, + [] + ); + // It must have 1 as the idNum. + $this->idNum = 1; + } + + public function testGetJobFromId() + { + $job = $this->config->getJobFromId($this->identifier); + $this->assertEquals($this->idNum, $job->getIdNum()); + $this->assertEquals($this->identifier, $job->getIdentifier()); + $this->assertNull($this->config->getJobFromId('bogus')); + } + + public function testGetJobFromIdNum() + { + $job = $this->config->getJobFromIdNum($this->idNum); + $this->assertEquals($this->idNum, $job->getIdNum()); + $this->assertEquals($this->identifier, $job->getIdentifier()); + $this->assertNull($this->config->getJobFromIdNum(10)); + } + + public function testRegisterJob() + { + $identifier = 'job2'; + $this->config->registerJob( + $identifier, + $this->func, + [] + ); + // The idNum is 1 origin, incremented by 1 + $job = $this->config->getJobFromIdNum(2); + $this->assertEquals(2, $job->getIdNum()); + $this->assertEquals($identifier, $job->getIdentifier()); + } + + public function testGetjobs() + { + $identifier = 'job2'; + $this->config->registerJob( + $identifier, + $this->func, + [] + ); + $jobs = $this->config->getJobs(); + $this->assertCount(2, $jobs); + $this->assertEquals($this->idNum, $jobs[$this->identifier]->getIdNum()); + $this->assertEquals(2, $jobs[$identifier]->getIdNum()); + } +} diff --git a/tests/unit/Core/Batch/BatchDaemonTraitTest.php b/Core/tests/unit/Batch/BatchDaemonTraitTest.php similarity index 100% rename from tests/unit/Core/Batch/BatchDaemonTraitTest.php rename to Core/tests/unit/Batch/BatchDaemonTraitTest.php diff --git a/tests/unit/Core/Batch/BatchJobTest.php b/Core/tests/unit/Batch/BatchJobTest.php similarity index 100% rename from tests/unit/Core/Batch/BatchJobTest.php rename to Core/tests/unit/Batch/BatchJobTest.php diff --git a/tests/unit/Core/Batch/BatchRunnerTest.php b/Core/tests/unit/Batch/BatchRunnerTest.php similarity index 100% rename from tests/unit/Core/Batch/BatchRunnerTest.php rename to Core/tests/unit/Batch/BatchRunnerTest.php diff --git a/tests/unit/Core/Batch/BatchTraitTest.php b/Core/tests/unit/Batch/BatchTraitTest.php similarity index 100% rename from tests/unit/Core/Batch/BatchTraitTest.php rename to Core/tests/unit/Batch/BatchTraitTest.php diff --git a/tests/unit/Core/Batch/HandleFailureTraitTest.php b/Core/tests/unit/Batch/HandleFailureTraitTest.php similarity index 100% rename from tests/unit/Core/Batch/HandleFailureTraitTest.php rename to Core/tests/unit/Batch/HandleFailureTraitTest.php diff --git a/tests/unit/Core/Batch/InMemoryConfigStorageTest.php b/Core/tests/unit/Batch/InMemoryConfigStorageTest.php similarity index 100% rename from tests/unit/Core/Batch/InMemoryConfigStorageTest.php rename to Core/tests/unit/Batch/InMemoryConfigStorageTest.php diff --git a/tests/unit/Core/Batch/RetryTest.php b/Core/tests/unit/Batch/RetryTest.php similarity index 100% rename from tests/unit/Core/Batch/RetryTest.php rename to Core/tests/unit/Batch/RetryTest.php diff --git a/tests/unit/Core/Batch/SysvConfigStorageTest.php b/Core/tests/unit/Batch/SysvConfigStorageTest.php similarity index 100% rename from tests/unit/Core/Batch/SysvConfigStorageTest.php rename to Core/tests/unit/Batch/SysvConfigStorageTest.php diff --git a/tests/unit/Core/Batch/SysvProcessorTest.php b/Core/tests/unit/Batch/SysvProcessorTest.php similarity index 100% rename from tests/unit/Core/Batch/SysvProcessorTest.php rename to Core/tests/unit/Batch/SysvProcessorTest.php diff --git a/tests/unit/Core/CallTraitTest.php b/Core/tests/unit/CallTraitTest.php similarity index 100% rename from tests/unit/Core/CallTraitTest.php rename to Core/tests/unit/CallTraitTest.php diff --git a/tests/unit/Core/ClientTraitTest.php b/Core/tests/unit/ClientTraitTest.php similarity index 100% rename from tests/unit/Core/ClientTraitTest.php rename to Core/tests/unit/ClientTraitTest.php diff --git a/tests/unit/Core/Compute/MetadataTest.php b/Core/tests/unit/Compute/MetadataTest.php similarity index 100% rename from tests/unit/Core/Compute/MetadataTest.php rename to Core/tests/unit/Compute/MetadataTest.php diff --git a/tests/unit/Core/ConcurrencyControlTraitTest.php b/Core/tests/unit/ConcurrencyControlTraitTest.php similarity index 100% rename from tests/unit/Core/ConcurrencyControlTraitTest.php rename to Core/tests/unit/ConcurrencyControlTraitTest.php diff --git a/tests/unit/Core/DurationTest.php b/Core/tests/unit/DurationTest.php similarity index 100% rename from tests/unit/Core/DurationTest.php rename to Core/tests/unit/DurationTest.php diff --git a/tests/unit/Core/EmulatorTraitTest.php b/Core/tests/unit/EmulatorTraitTest.php similarity index 100% rename from tests/unit/Core/EmulatorTraitTest.php rename to Core/tests/unit/EmulatorTraitTest.php diff --git a/tests/unit/Core/Exception/NotFoundExceptionTest.php b/Core/tests/unit/Exception/NotFoundExceptionTest.php similarity index 100% rename from tests/unit/Core/Exception/NotFoundExceptionTest.php rename to Core/tests/unit/Exception/NotFoundExceptionTest.php diff --git a/tests/unit/Core/Exception/ServiceExceptionTest.php b/Core/tests/unit/Exception/ServiceExceptionTest.php similarity index 100% rename from tests/unit/Core/Exception/ServiceExceptionTest.php rename to Core/tests/unit/Exception/ServiceExceptionTest.php diff --git a/tests/unit/Core/ExponentialBackoffTest.php b/Core/tests/unit/ExponentialBackoffTest.php similarity index 100% rename from tests/unit/Core/ExponentialBackoffTest.php rename to Core/tests/unit/ExponentialBackoffTest.php diff --git a/tests/unit/Core/Fixtures.php b/Core/tests/unit/Fixtures.php similarity index 100% rename from tests/unit/Core/Fixtures.php rename to Core/tests/unit/Fixtures.php diff --git a/tests/unit/Core/GrpcRequestWrapperTest.php b/Core/tests/unit/GrpcRequestWrapperTest.php similarity index 100% rename from tests/unit/Core/GrpcRequestWrapperTest.php rename to Core/tests/unit/GrpcRequestWrapperTest.php diff --git a/tests/unit/Core/GrpcTraitTest.php b/Core/tests/unit/GrpcTraitTest.php similarity index 100% rename from tests/unit/Core/GrpcTraitTest.php rename to Core/tests/unit/GrpcTraitTest.php diff --git a/tests/unit/Core/Iam/IamTest.php b/Core/tests/unit/Iam/IamTest.php similarity index 100% rename from tests/unit/Core/Iam/IamTest.php rename to Core/tests/unit/Iam/IamTest.php diff --git a/tests/unit/Core/Iam/PolicyBuilderTest.php b/Core/tests/unit/Iam/PolicyBuilderTest.php similarity index 100% rename from tests/unit/Core/Iam/PolicyBuilderTest.php rename to Core/tests/unit/Iam/PolicyBuilderTest.php diff --git a/tests/unit/Core/Int64Test.php b/Core/tests/unit/Int64Test.php similarity index 100% rename from tests/unit/Core/Int64Test.php rename to Core/tests/unit/Int64Test.php diff --git a/tests/unit/Core/Iterator/ItemIteratorTest.php b/Core/tests/unit/Iterator/ItemIteratorTest.php similarity index 100% rename from tests/unit/Core/Iterator/ItemIteratorTest.php rename to Core/tests/unit/Iterator/ItemIteratorTest.php diff --git a/tests/unit/Core/Iterator/PageIteratorTest.php b/Core/tests/unit/Iterator/PageIteratorTest.php similarity index 100% rename from tests/unit/Core/Iterator/PageIteratorTest.php rename to Core/tests/unit/Iterator/PageIteratorTest.php diff --git a/tests/unit/Core/JsonTraitTest.php b/Core/tests/unit/JsonTraitTest.php similarity index 100% rename from tests/unit/Core/JsonTraitTest.php rename to Core/tests/unit/JsonTraitTest.php diff --git a/tests/unit/Core/Lock/CommonLockTrait.php b/Core/tests/unit/Lock/CommonLockTrait.php similarity index 100% rename from tests/unit/Core/Lock/CommonLockTrait.php rename to Core/tests/unit/Lock/CommonLockTrait.php diff --git a/tests/unit/Core/Lock/FlockLockTest.php b/Core/tests/unit/Lock/FlockLockTest.php similarity index 100% rename from tests/unit/Core/Lock/FlockLockTest.php rename to Core/tests/unit/Lock/FlockLockTest.php diff --git a/tests/unit/Core/Lock/SemaphoreLockTest.php b/Core/tests/unit/Lock/SemaphoreLockTest.php similarity index 100% rename from tests/unit/Core/Lock/SemaphoreLockTest.php rename to Core/tests/unit/Lock/SemaphoreLockTest.php diff --git a/tests/unit/Core/Logger/AppEngineFlexHandlerTest.php b/Core/tests/unit/Logger/AppEngineFlexHandlerTest.php similarity index 100% rename from tests/unit/Core/Logger/AppEngineFlexHandlerTest.php rename to Core/tests/unit/Logger/AppEngineFlexHandlerTest.php diff --git a/tests/unit/Core/Report/EmptyMetadataProviderTest.php b/Core/tests/unit/Report/EmptyMetadataProviderTest.php similarity index 100% rename from tests/unit/Core/Report/EmptyMetadataProviderTest.php rename to Core/tests/unit/Report/EmptyMetadataProviderTest.php diff --git a/tests/unit/Core/Report/GAEFlexMetadataProviderTest.php b/Core/tests/unit/Report/GAEFlexMetadataProviderTest.php similarity index 100% rename from tests/unit/Core/Report/GAEFlexMetadataProviderTest.php rename to Core/tests/unit/Report/GAEFlexMetadataProviderTest.php diff --git a/tests/unit/Core/Report/MetadataProviderUtilsTest.php b/Core/tests/unit/Report/MetadataProviderUtilsTest.php similarity index 100% rename from tests/unit/Core/Report/MetadataProviderUtilsTest.php rename to Core/tests/unit/Report/MetadataProviderUtilsTest.php diff --git a/tests/unit/Core/Report/SimpleMetadataProviderTest.php b/Core/tests/unit/Report/SimpleMetadataProviderTest.php similarity index 100% rename from tests/unit/Core/Report/SimpleMetadataProviderTest.php rename to Core/tests/unit/Report/SimpleMetadataProviderTest.php diff --git a/tests/unit/Core/RequestBuilderTest.php b/Core/tests/unit/RequestBuilderTest.php similarity index 100% rename from tests/unit/Core/RequestBuilderTest.php rename to Core/tests/unit/RequestBuilderTest.php diff --git a/tests/unit/Core/RequestWrapperTest.php b/Core/tests/unit/RequestWrapperTest.php similarity index 100% rename from tests/unit/Core/RequestWrapperTest.php rename to Core/tests/unit/RequestWrapperTest.php diff --git a/tests/unit/Core/RestTraitTest.php b/Core/tests/unit/RestTraitTest.php similarity index 100% rename from tests/unit/Core/RestTraitTest.php rename to Core/tests/unit/RestTraitTest.php diff --git a/tests/unit/Core/RetryDeciderTraitTest.php b/Core/tests/unit/RetryDeciderTraitTest.php similarity index 100% rename from tests/unit/Core/RetryDeciderTraitTest.php rename to Core/tests/unit/RetryDeciderTraitTest.php diff --git a/tests/unit/Core/ServiceBuilderTest.php b/Core/tests/unit/ServiceBuilderTest.php similarity index 100% rename from tests/unit/Core/ServiceBuilderTest.php rename to Core/tests/unit/ServiceBuilderTest.php diff --git a/tests/unit/Core/ServicesNotFoundTest.php b/Core/tests/unit/ServicesNotFoundTest.php similarity index 100% rename from tests/unit/Core/ServicesNotFoundTest.php rename to Core/tests/unit/ServicesNotFoundTest.php diff --git a/tests/unit/Core/SysvTraitTest.php b/Core/tests/unit/SysvTraitTest.php similarity index 100% rename from tests/unit/Core/SysvTraitTest.php rename to Core/tests/unit/SysvTraitTest.php diff --git a/tests/unit/Core/TimestampTest.php b/Core/tests/unit/TimestampTest.php similarity index 100% rename from tests/unit/Core/TimestampTest.php rename to Core/tests/unit/TimestampTest.php diff --git a/tests/unit/Core/Upload/MultipartUploaderTest.php b/Core/tests/unit/Upload/MultipartUploaderTest.php similarity index 100% rename from tests/unit/Core/Upload/MultipartUploaderTest.php rename to Core/tests/unit/Upload/MultipartUploaderTest.php diff --git a/tests/unit/Core/Upload/ResumableUploaderTest.php b/Core/tests/unit/Upload/ResumableUploaderTest.php similarity index 100% rename from tests/unit/Core/Upload/ResumableUploaderTest.php rename to Core/tests/unit/Upload/ResumableUploaderTest.php diff --git a/tests/unit/Core/Upload/SignedUrlUploaderTest.php b/Core/tests/unit/Upload/SignedUrlUploaderTest.php similarity index 100% rename from tests/unit/Core/Upload/SignedUrlUploaderTest.php rename to Core/tests/unit/Upload/SignedUrlUploaderTest.php diff --git a/tests/unit/Core/Upload/StreamableUploaderTest.php b/Core/tests/unit/Upload/StreamableUploaderTest.php similarity index 100% rename from tests/unit/Core/Upload/StreamableUploaderTest.php rename to Core/tests/unit/Upload/StreamableUploaderTest.php diff --git a/tests/unit/Core/UriTraitTest.php b/Core/tests/unit/UriTraitTest.php similarity index 100% rename from tests/unit/Core/UriTraitTest.php rename to Core/tests/unit/UriTraitTest.php diff --git a/tests/unit/Core/ValidateTraitTest.php b/Core/tests/unit/ValidateTraitTest.php similarity index 100% rename from tests/unit/Core/ValidateTraitTest.php rename to Core/tests/unit/ValidateTraitTest.php diff --git a/tests/unit/Core/WhitelistTraitTest.php b/Core/tests/unit/WhitelistTraitTest.php similarity index 100% rename from tests/unit/Core/WhitelistTraitTest.php rename to Core/tests/unit/WhitelistTraitTest.php diff --git a/Core/tests/unit/bootstrap.php b/Core/tests/unit/bootstrap.php new file mode 100644 index 000000000000..19d4b20353dd --- /dev/null +++ b/Core/tests/unit/bootstrap.php @@ -0,0 +1,3 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Dataproc/phpunit-system.xml.dist b/Dataproc/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Dataproc/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Dataproc/phpunit.xml.dist b/Dataproc/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Dataproc/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Dataproc/V1/ClusterControllerClient.php b/Dataproc/src/V1/ClusterControllerClient.php similarity index 100% rename from src/Dataproc/V1/ClusterControllerClient.php rename to Dataproc/src/V1/ClusterControllerClient.php diff --git a/src/Dataproc/V1/Gapic/ClusterControllerGapicClient.php b/Dataproc/src/V1/Gapic/ClusterControllerGapicClient.php similarity index 100% rename from src/Dataproc/V1/Gapic/ClusterControllerGapicClient.php rename to Dataproc/src/V1/Gapic/ClusterControllerGapicClient.php diff --git a/src/Dataproc/V1/Gapic/JobControllerGapicClient.php b/Dataproc/src/V1/Gapic/JobControllerGapicClient.php similarity index 100% rename from src/Dataproc/V1/Gapic/JobControllerGapicClient.php rename to Dataproc/src/V1/Gapic/JobControllerGapicClient.php diff --git a/src/Dataproc/V1/JobControllerClient.php b/Dataproc/src/V1/JobControllerClient.php similarity index 100% rename from src/Dataproc/V1/JobControllerClient.php rename to Dataproc/src/V1/JobControllerClient.php diff --git a/src/Dataproc/V1/README.md b/Dataproc/src/V1/README.md similarity index 100% rename from src/Dataproc/V1/README.md rename to Dataproc/src/V1/README.md diff --git a/src/Dataproc/V1/resources/cluster_controller_client_config.json b/Dataproc/src/V1/resources/cluster_controller_client_config.json similarity index 100% rename from src/Dataproc/V1/resources/cluster_controller_client_config.json rename to Dataproc/src/V1/resources/cluster_controller_client_config.json diff --git a/src/Dataproc/V1/resources/cluster_controller_descriptor_config.php b/Dataproc/src/V1/resources/cluster_controller_descriptor_config.php similarity index 100% rename from src/Dataproc/V1/resources/cluster_controller_descriptor_config.php rename to Dataproc/src/V1/resources/cluster_controller_descriptor_config.php diff --git a/src/Dataproc/V1/resources/cluster_controller_rest_client_config.php b/Dataproc/src/V1/resources/cluster_controller_rest_client_config.php similarity index 100% rename from src/Dataproc/V1/resources/cluster_controller_rest_client_config.php rename to Dataproc/src/V1/resources/cluster_controller_rest_client_config.php diff --git a/src/Dataproc/V1/resources/job_controller_client_config.json b/Dataproc/src/V1/resources/job_controller_client_config.json similarity index 100% rename from src/Dataproc/V1/resources/job_controller_client_config.json rename to Dataproc/src/V1/resources/job_controller_client_config.json diff --git a/src/Dataproc/V1/resources/job_controller_descriptor_config.php b/Dataproc/src/V1/resources/job_controller_descriptor_config.php similarity index 100% rename from src/Dataproc/V1/resources/job_controller_descriptor_config.php rename to Dataproc/src/V1/resources/job_controller_descriptor_config.php diff --git a/src/Dataproc/V1/resources/job_controller_rest_client_config.php b/Dataproc/src/V1/resources/job_controller_rest_client_config.php similarity index 100% rename from src/Dataproc/V1/resources/job_controller_rest_client_config.php rename to Dataproc/src/V1/resources/job_controller_rest_client_config.php diff --git a/Dataproc/tests/snippets/bootstrap.php b/Dataproc/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Dataproc/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Dataproc/ClusterControllerClientTest.php b/Dataproc/tests/system/ClusterControllerClientTest.php similarity index 100% rename from tests/system/Dataproc/ClusterControllerClientTest.php rename to Dataproc/tests/system/ClusterControllerClientTest.php diff --git a/Dataproc/tests/system/bootstrap.php b/Dataproc/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Dataproc/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Datastore/phpunit-system.xml.dist b/Datastore/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Datastore/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Datastore/phpunit.xml.dist b/Datastore/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Datastore/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Datastore/Blob.php b/Datastore/src/Blob.php similarity index 100% rename from src/Datastore/Blob.php rename to Datastore/src/Blob.php diff --git a/src/Datastore/Connection/ConnectionInterface.php b/Datastore/src/Connection/ConnectionInterface.php similarity index 100% rename from src/Datastore/Connection/ConnectionInterface.php rename to Datastore/src/Connection/ConnectionInterface.php diff --git a/src/Datastore/Connection/Rest.php b/Datastore/src/Connection/Rest.php similarity index 100% rename from src/Datastore/Connection/Rest.php rename to Datastore/src/Connection/Rest.php diff --git a/src/Datastore/Connection/ServiceDefinition/datastore-v1.json b/Datastore/src/Connection/ServiceDefinition/datastore-v1.json similarity index 100% rename from src/Datastore/Connection/ServiceDefinition/datastore-v1.json rename to Datastore/src/Connection/ServiceDefinition/datastore-v1.json diff --git a/src/Datastore/DatastoreClient.php b/Datastore/src/DatastoreClient.php similarity index 100% rename from src/Datastore/DatastoreClient.php rename to Datastore/src/DatastoreClient.php diff --git a/src/Datastore/DatastoreSessionHandler.php b/Datastore/src/DatastoreSessionHandler.php similarity index 100% rename from src/Datastore/DatastoreSessionHandler.php rename to Datastore/src/DatastoreSessionHandler.php diff --git a/src/Datastore/DatastoreTrait.php b/Datastore/src/DatastoreTrait.php similarity index 100% rename from src/Datastore/DatastoreTrait.php rename to Datastore/src/DatastoreTrait.php diff --git a/src/Datastore/Entity.php b/Datastore/src/Entity.php similarity index 100% rename from src/Datastore/Entity.php rename to Datastore/src/Entity.php diff --git a/src/Datastore/EntityIterator.php b/Datastore/src/EntityIterator.php similarity index 100% rename from src/Datastore/EntityIterator.php rename to Datastore/src/EntityIterator.php diff --git a/src/Datastore/EntityMapper.php b/Datastore/src/EntityMapper.php similarity index 100% rename from src/Datastore/EntityMapper.php rename to Datastore/src/EntityMapper.php diff --git a/src/Datastore/EntityPageIterator.php b/Datastore/src/EntityPageIterator.php similarity index 100% rename from src/Datastore/EntityPageIterator.php rename to Datastore/src/EntityPageIterator.php diff --git a/src/Datastore/GeoPoint.php b/Datastore/src/GeoPoint.php similarity index 100% rename from src/Datastore/GeoPoint.php rename to Datastore/src/GeoPoint.php diff --git a/src/Datastore/Key.php b/Datastore/src/Key.php similarity index 100% rename from src/Datastore/Key.php rename to Datastore/src/Key.php diff --git a/src/Datastore/Operation.php b/Datastore/src/Operation.php similarity index 100% rename from src/Datastore/Operation.php rename to Datastore/src/Operation.php diff --git a/src/Datastore/Query/GqlQuery.php b/Datastore/src/Query/GqlQuery.php similarity index 100% rename from src/Datastore/Query/GqlQuery.php rename to Datastore/src/Query/GqlQuery.php diff --git a/src/Datastore/Query/Query.php b/Datastore/src/Query/Query.php similarity index 100% rename from src/Datastore/Query/Query.php rename to Datastore/src/Query/Query.php diff --git a/src/Datastore/Query/QueryInterface.php b/Datastore/src/Query/QueryInterface.php similarity index 100% rename from src/Datastore/Query/QueryInterface.php rename to Datastore/src/Query/QueryInterface.php diff --git a/src/Datastore/ReadOnlyTransaction.php b/Datastore/src/ReadOnlyTransaction.php similarity index 100% rename from src/Datastore/ReadOnlyTransaction.php rename to Datastore/src/ReadOnlyTransaction.php diff --git a/src/Datastore/Transaction.php b/Datastore/src/Transaction.php similarity index 100% rename from src/Datastore/Transaction.php rename to Datastore/src/Transaction.php diff --git a/src/Datastore/TransactionTrait.php b/Datastore/src/TransactionTrait.php similarity index 100% rename from src/Datastore/TransactionTrait.php rename to Datastore/src/TransactionTrait.php diff --git a/tests/snippets/Datastore/BlobTest.php b/Datastore/tests/snippets/BlobTest.php similarity index 100% rename from tests/snippets/Datastore/BlobTest.php rename to Datastore/tests/snippets/BlobTest.php diff --git a/tests/snippets/Datastore/DatastoreClientTest.php b/Datastore/tests/snippets/DatastoreClientTest.php similarity index 100% rename from tests/snippets/Datastore/DatastoreClientTest.php rename to Datastore/tests/snippets/DatastoreClientTest.php diff --git a/tests/snippets/Datastore/EntityTest.php b/Datastore/tests/snippets/EntityTest.php similarity index 100% rename from tests/snippets/Datastore/EntityTest.php rename to Datastore/tests/snippets/EntityTest.php diff --git a/tests/snippets/Datastore/GeoPointTest.php b/Datastore/tests/snippets/GeoPointTest.php similarity index 100% rename from tests/snippets/Datastore/GeoPointTest.php rename to Datastore/tests/snippets/GeoPointTest.php diff --git a/tests/snippets/Datastore/KeyTest.php b/Datastore/tests/snippets/KeyTest.php similarity index 100% rename from tests/snippets/Datastore/KeyTest.php rename to Datastore/tests/snippets/KeyTest.php diff --git a/tests/snippets/Datastore/Query/GqlQueryTest.php b/Datastore/tests/snippets/Query/GqlQueryTest.php similarity index 100% rename from tests/snippets/Datastore/Query/GqlQueryTest.php rename to Datastore/tests/snippets/Query/GqlQueryTest.php diff --git a/tests/snippets/Datastore/Query/QueryTest.php b/Datastore/tests/snippets/Query/QueryTest.php similarity index 100% rename from tests/snippets/Datastore/Query/QueryTest.php rename to Datastore/tests/snippets/Query/QueryTest.php diff --git a/tests/snippets/Datastore/ReadOnlyTransactionTest.php b/Datastore/tests/snippets/ReadOnlyTransactionTest.php similarity index 100% rename from tests/snippets/Datastore/ReadOnlyTransactionTest.php rename to Datastore/tests/snippets/ReadOnlyTransactionTest.php diff --git a/tests/snippets/Datastore/TransactionTest.php b/Datastore/tests/snippets/TransactionTest.php similarity index 100% rename from tests/snippets/Datastore/TransactionTest.php rename to Datastore/tests/snippets/TransactionTest.php diff --git a/Datastore/tests/snippets/bootstrap.php b/Datastore/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Datastore/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Datastore/AllocateKeyTest.php b/Datastore/tests/system/AllocateKeyTest.php similarity index 100% rename from tests/system/Datastore/AllocateKeyTest.php rename to Datastore/tests/system/AllocateKeyTest.php diff --git a/tests/system/Datastore/DatastoreTestCase.php b/Datastore/tests/system/DatastoreTestCase.php similarity index 100% rename from tests/system/Datastore/DatastoreTestCase.php rename to Datastore/tests/system/DatastoreTestCase.php diff --git a/tests/system/Datastore/RunQueryTest.php b/Datastore/tests/system/RunQueryTest.php similarity index 100% rename from tests/system/Datastore/RunQueryTest.php rename to Datastore/tests/system/RunQueryTest.php diff --git a/tests/system/Datastore/RunTransactionTest.php b/Datastore/tests/system/RunTransactionTest.php similarity index 100% rename from tests/system/Datastore/RunTransactionTest.php rename to Datastore/tests/system/RunTransactionTest.php diff --git a/tests/system/Datastore/SaveAndModifyTest.php b/Datastore/tests/system/SaveAndModifyTest.php similarity index 100% rename from tests/system/Datastore/SaveAndModifyTest.php rename to Datastore/tests/system/SaveAndModifyTest.php diff --git a/Datastore/tests/system/bootstrap.php b/Datastore/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Datastore/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Debugger/phpunit-system.xml.dist b/Debugger/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Debugger/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Debugger/phpunit.xml.dist b/Debugger/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Debugger/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Debugger/Agent.php b/Debugger/src/Agent.php similarity index 100% rename from src/Debugger/Agent.php rename to Debugger/src/Agent.php diff --git a/src/Debugger/AliasContext.php b/Debugger/src/AliasContext.php similarity index 100% rename from src/Debugger/AliasContext.php rename to Debugger/src/AliasContext.php diff --git a/src/Debugger/Breakpoint.php b/Debugger/src/Breakpoint.php similarity index 100% rename from src/Debugger/Breakpoint.php rename to Debugger/src/Breakpoint.php diff --git a/src/Debugger/BreakpointStorage/BreakpointStorageInterface.php b/Debugger/src/BreakpointStorage/BreakpointStorageInterface.php similarity index 100% rename from src/Debugger/BreakpointStorage/BreakpointStorageInterface.php rename to Debugger/src/BreakpointStorage/BreakpointStorageInterface.php diff --git a/src/Debugger/BreakpointStorage/SysvBreakpointStorage.php b/Debugger/src/BreakpointStorage/SysvBreakpointStorage.php similarity index 100% rename from src/Debugger/BreakpointStorage/SysvBreakpointStorage.php rename to Debugger/src/BreakpointStorage/SysvBreakpointStorage.php diff --git a/src/Debugger/CloudRepoSourceContext.php b/Debugger/src/CloudRepoSourceContext.php similarity index 100% rename from src/Debugger/CloudRepoSourceContext.php rename to Debugger/src/CloudRepoSourceContext.php diff --git a/src/Debugger/CloudWorkspaceId.php b/Debugger/src/CloudWorkspaceId.php similarity index 100% rename from src/Debugger/CloudWorkspaceId.php rename to Debugger/src/CloudWorkspaceId.php diff --git a/src/Debugger/CloudWorkspaceSourceContext.php b/Debugger/src/CloudWorkspaceSourceContext.php similarity index 100% rename from src/Debugger/CloudWorkspaceSourceContext.php rename to Debugger/src/CloudWorkspaceSourceContext.php diff --git a/src/Debugger/Connection/ConnectionInterface.php b/Debugger/src/Connection/ConnectionInterface.php similarity index 100% rename from src/Debugger/Connection/ConnectionInterface.php rename to Debugger/src/Connection/ConnectionInterface.php diff --git a/src/Debugger/Connection/Rest.php b/Debugger/src/Connection/Rest.php similarity index 100% rename from src/Debugger/Connection/Rest.php rename to Debugger/src/Connection/Rest.php diff --git a/src/Debugger/Connection/ServiceDefinition/debugger-v2.json b/Debugger/src/Connection/ServiceDefinition/debugger-v2.json similarity index 100% rename from src/Debugger/Connection/ServiceDefinition/debugger-v2.json rename to Debugger/src/Connection/ServiceDefinition/debugger-v2.json diff --git a/src/Debugger/Daemon.php b/Debugger/src/Daemon.php similarity index 100% rename from src/Debugger/Daemon.php rename to Debugger/src/Daemon.php diff --git a/src/Debugger/Debuggee.php b/Debugger/src/Debuggee.php similarity index 100% rename from src/Debugger/Debuggee.php rename to Debugger/src/Debuggee.php diff --git a/src/Debugger/DebuggerClient.php b/Debugger/src/DebuggerClient.php similarity index 100% rename from src/Debugger/DebuggerClient.php rename to Debugger/src/DebuggerClient.php diff --git a/src/Debugger/ExtendedSourceContext.php b/Debugger/src/ExtendedSourceContext.php similarity index 100% rename from src/Debugger/ExtendedSourceContext.php rename to Debugger/src/ExtendedSourceContext.php diff --git a/src/Debugger/FormatMessage.php b/Debugger/src/FormatMessage.php similarity index 100% rename from src/Debugger/FormatMessage.php rename to Debugger/src/FormatMessage.php diff --git a/src/Debugger/GerritSourceContext.php b/Debugger/src/GerritSourceContext.php similarity index 100% rename from src/Debugger/GerritSourceContext.php rename to Debugger/src/GerritSourceContext.php diff --git a/src/Debugger/GitSourceContext.php b/Debugger/src/GitSourceContext.php similarity index 100% rename from src/Debugger/GitSourceContext.php rename to Debugger/src/GitSourceContext.php diff --git a/src/Debugger/MatchingFileIterator.php b/Debugger/src/MatchingFileIterator.php similarity index 100% rename from src/Debugger/MatchingFileIterator.php rename to Debugger/src/MatchingFileIterator.php diff --git a/src/Debugger/ProjectRepoId.php b/Debugger/src/ProjectRepoId.php similarity index 100% rename from src/Debugger/ProjectRepoId.php rename to Debugger/src/ProjectRepoId.php diff --git a/src/Debugger/RepoId.php b/Debugger/src/RepoId.php similarity index 100% rename from src/Debugger/RepoId.php rename to Debugger/src/RepoId.php diff --git a/src/Debugger/SourceContext.php b/Debugger/src/SourceContext.php similarity index 100% rename from src/Debugger/SourceContext.php rename to Debugger/src/SourceContext.php diff --git a/src/Debugger/SourceLocation.php b/Debugger/src/SourceLocation.php similarity index 100% rename from src/Debugger/SourceLocation.php rename to Debugger/src/SourceLocation.php diff --git a/src/Debugger/SourceLocationResolver.php b/Debugger/src/SourceLocationResolver.php similarity index 100% rename from src/Debugger/SourceLocationResolver.php rename to Debugger/src/SourceLocationResolver.php diff --git a/src/Debugger/StackFrame.php b/Debugger/src/StackFrame.php similarity index 100% rename from src/Debugger/StackFrame.php rename to Debugger/src/StackFrame.php diff --git a/src/Debugger/StatusMessage.php b/Debugger/src/StatusMessage.php similarity index 100% rename from src/Debugger/StatusMessage.php rename to Debugger/src/StatusMessage.php diff --git a/src/Debugger/V2/Controller2Client.php b/Debugger/src/V2/Controller2Client.php similarity index 100% rename from src/Debugger/V2/Controller2Client.php rename to Debugger/src/V2/Controller2Client.php diff --git a/src/Debugger/V2/Debugger2Client.php b/Debugger/src/V2/Debugger2Client.php similarity index 100% rename from src/Debugger/V2/Debugger2Client.php rename to Debugger/src/V2/Debugger2Client.php diff --git a/src/Debugger/V2/Gapic/Controller2GapicClient.php b/Debugger/src/V2/Gapic/Controller2GapicClient.php similarity index 100% rename from src/Debugger/V2/Gapic/Controller2GapicClient.php rename to Debugger/src/V2/Gapic/Controller2GapicClient.php diff --git a/src/Debugger/V2/Gapic/Debugger2GapicClient.php b/Debugger/src/V2/Gapic/Debugger2GapicClient.php similarity index 100% rename from src/Debugger/V2/Gapic/Debugger2GapicClient.php rename to Debugger/src/V2/Gapic/Debugger2GapicClient.php diff --git a/src/Debugger/V2/resources/controller2_client_config.json b/Debugger/src/V2/resources/controller2_client_config.json similarity index 100% rename from src/Debugger/V2/resources/controller2_client_config.json rename to Debugger/src/V2/resources/controller2_client_config.json diff --git a/src/Debugger/V2/resources/controller2_descriptor_config.php b/Debugger/src/V2/resources/controller2_descriptor_config.php similarity index 100% rename from src/Debugger/V2/resources/controller2_descriptor_config.php rename to Debugger/src/V2/resources/controller2_descriptor_config.php diff --git a/src/Debugger/V2/resources/controller2_rest_client_config.php b/Debugger/src/V2/resources/controller2_rest_client_config.php similarity index 100% rename from src/Debugger/V2/resources/controller2_rest_client_config.php rename to Debugger/src/V2/resources/controller2_rest_client_config.php diff --git a/src/Debugger/V2/resources/debugger2_client_config.json b/Debugger/src/V2/resources/debugger2_client_config.json similarity index 100% rename from src/Debugger/V2/resources/debugger2_client_config.json rename to Debugger/src/V2/resources/debugger2_client_config.json diff --git a/src/Debugger/V2/resources/debugger2_descriptor_config.php b/Debugger/src/V2/resources/debugger2_descriptor_config.php similarity index 100% rename from src/Debugger/V2/resources/debugger2_descriptor_config.php rename to Debugger/src/V2/resources/debugger2_descriptor_config.php diff --git a/src/Debugger/V2/resources/debugger2_rest_client_config.php b/Debugger/src/V2/resources/debugger2_rest_client_config.php similarity index 100% rename from src/Debugger/V2/resources/debugger2_rest_client_config.php rename to Debugger/src/V2/resources/debugger2_rest_client_config.php diff --git a/src/Debugger/Variable.php b/Debugger/src/Variable.php similarity index 100% rename from src/Debugger/Variable.php rename to Debugger/src/Variable.php diff --git a/src/Debugger/VariableTable.php b/Debugger/src/VariableTable.php similarity index 100% rename from src/Debugger/VariableTable.php rename to Debugger/src/VariableTable.php diff --git a/src/Debugger/bin/google-cloud-debugger b/Debugger/src/bin/google-cloud-debugger similarity index 100% rename from src/Debugger/bin/google-cloud-debugger rename to Debugger/src/bin/google-cloud-debugger diff --git a/tests/snippets/Debugger/AgentTest.php b/Debugger/tests/snippets/AgentTest.php similarity index 100% rename from tests/snippets/Debugger/AgentTest.php rename to Debugger/tests/snippets/AgentTest.php diff --git a/tests/snippets/Debugger/AliasContextTest.php b/Debugger/tests/snippets/AliasContextTest.php similarity index 100% rename from tests/snippets/Debugger/AliasContextTest.php rename to Debugger/tests/snippets/AliasContextTest.php diff --git a/tests/snippets/Debugger/BreakpointTest.php b/Debugger/tests/snippets/BreakpointTest.php similarity index 100% rename from tests/snippets/Debugger/BreakpointTest.php rename to Debugger/tests/snippets/BreakpointTest.php diff --git a/tests/snippets/Debugger/CloudRepoSourceContextTest.php b/Debugger/tests/snippets/CloudRepoSourceContextTest.php similarity index 100% rename from tests/snippets/Debugger/CloudRepoSourceContextTest.php rename to Debugger/tests/snippets/CloudRepoSourceContextTest.php diff --git a/tests/snippets/Debugger/CloudWorkspaceIdTest.php b/Debugger/tests/snippets/CloudWorkspaceIdTest.php similarity index 100% rename from tests/snippets/Debugger/CloudWorkspaceIdTest.php rename to Debugger/tests/snippets/CloudWorkspaceIdTest.php diff --git a/tests/snippets/Debugger/CloudWorkspaceSourceContextTest.php b/Debugger/tests/snippets/CloudWorkspaceSourceContextTest.php similarity index 100% rename from tests/snippets/Debugger/CloudWorkspaceSourceContextTest.php rename to Debugger/tests/snippets/CloudWorkspaceSourceContextTest.php diff --git a/tests/snippets/Debugger/DaemonTest.php b/Debugger/tests/snippets/DaemonTest.php similarity index 100% rename from tests/snippets/Debugger/DaemonTest.php rename to Debugger/tests/snippets/DaemonTest.php diff --git a/tests/snippets/Debugger/DebuggeeTest.php b/Debugger/tests/snippets/DebuggeeTest.php similarity index 100% rename from tests/snippets/Debugger/DebuggeeTest.php rename to Debugger/tests/snippets/DebuggeeTest.php diff --git a/tests/snippets/Debugger/DebuggerClientTest.php b/Debugger/tests/snippets/DebuggerClientTest.php similarity index 100% rename from tests/snippets/Debugger/DebuggerClientTest.php rename to Debugger/tests/snippets/DebuggerClientTest.php diff --git a/tests/snippets/Debugger/ExtendedSourceContextTest.php b/Debugger/tests/snippets/ExtendedSourceContextTest.php similarity index 100% rename from tests/snippets/Debugger/ExtendedSourceContextTest.php rename to Debugger/tests/snippets/ExtendedSourceContextTest.php diff --git a/tests/snippets/Debugger/FormatMessageTest.php b/Debugger/tests/snippets/FormatMessageTest.php similarity index 100% rename from tests/snippets/Debugger/FormatMessageTest.php rename to Debugger/tests/snippets/FormatMessageTest.php diff --git a/tests/snippets/Debugger/GerritSourceContextTest.php b/Debugger/tests/snippets/GerritSourceContextTest.php similarity index 100% rename from tests/snippets/Debugger/GerritSourceContextTest.php rename to Debugger/tests/snippets/GerritSourceContextTest.php diff --git a/tests/snippets/Debugger/GitSourceContextTest.php b/Debugger/tests/snippets/GitSourceContextTest.php similarity index 100% rename from tests/snippets/Debugger/GitSourceContextTest.php rename to Debugger/tests/snippets/GitSourceContextTest.php diff --git a/tests/snippets/Debugger/MatchingFileIteratorTest.php b/Debugger/tests/snippets/MatchingFileIteratorTest.php similarity index 100% rename from tests/snippets/Debugger/MatchingFileIteratorTest.php rename to Debugger/tests/snippets/MatchingFileIteratorTest.php diff --git a/tests/snippets/Debugger/ProjectRepoIdTest.php b/Debugger/tests/snippets/ProjectRepoIdTest.php similarity index 100% rename from tests/snippets/Debugger/ProjectRepoIdTest.php rename to Debugger/tests/snippets/ProjectRepoIdTest.php diff --git a/tests/snippets/Debugger/RepoIdTest.php b/Debugger/tests/snippets/RepoIdTest.php similarity index 100% rename from tests/snippets/Debugger/RepoIdTest.php rename to Debugger/tests/snippets/RepoIdTest.php diff --git a/tests/snippets/Debugger/SourceLocationResolverTest.php b/Debugger/tests/snippets/SourceLocationResolverTest.php similarity index 100% rename from tests/snippets/Debugger/SourceLocationResolverTest.php rename to Debugger/tests/snippets/SourceLocationResolverTest.php diff --git a/tests/snippets/Debugger/SourceLocationTest.php b/Debugger/tests/snippets/SourceLocationTest.php similarity index 100% rename from tests/snippets/Debugger/SourceLocationTest.php rename to Debugger/tests/snippets/SourceLocationTest.php diff --git a/tests/snippets/Debugger/StackFrameTest.php b/Debugger/tests/snippets/StackFrameTest.php similarity index 100% rename from tests/snippets/Debugger/StackFrameTest.php rename to Debugger/tests/snippets/StackFrameTest.php diff --git a/tests/snippets/Debugger/StatusMessageTest.php b/Debugger/tests/snippets/StatusMessageTest.php similarity index 100% rename from tests/snippets/Debugger/StatusMessageTest.php rename to Debugger/tests/snippets/StatusMessageTest.php diff --git a/tests/snippets/Debugger/VariableTableTest.php b/Debugger/tests/snippets/VariableTableTest.php similarity index 100% rename from tests/snippets/Debugger/VariableTableTest.php rename to Debugger/tests/snippets/VariableTableTest.php diff --git a/tests/snippets/Debugger/VariableTest.php b/Debugger/tests/snippets/VariableTest.php similarity index 100% rename from tests/snippets/Debugger/VariableTest.php rename to Debugger/tests/snippets/VariableTest.php diff --git a/Debugger/tests/snippets/bootstrap.php b/Debugger/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Debugger/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Debugger/BasicTest.php b/Debugger/tests/system/BasicTest.php similarity index 100% rename from tests/system/Debugger/BasicTest.php rename to Debugger/tests/system/BasicTest.php diff --git a/tests/system/Debugger/E2ETest.php b/Debugger/tests/system/E2ETest.php similarity index 100% rename from tests/system/Debugger/E2ETest.php rename to Debugger/tests/system/E2ETest.php diff --git a/tests/system/Debugger/app/.gitignore b/Debugger/tests/system/app/.gitignore similarity index 100% rename from tests/system/Debugger/app/.gitignore rename to Debugger/tests/system/app/.gitignore diff --git a/Debugger/tests/system/app/additional-supervisord.conf b/Debugger/tests/system/app/additional-supervisord.conf new file mode 100644 index 000000000000..bd14ca20a634 --- /dev/null +++ b/Debugger/tests/system/app/additional-supervisord.conf @@ -0,0 +1,11 @@ +[program:debugger-daemon] +command = php -d auto_prepend_file='' -d disable_functions='' /app/vendor/bin/google-cloud-debugger /app +stdout_logfile = /dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile = /dev/stderr +stderr_logfile_maxbytes=0 +user = www-data +autostart = true +autorestart = true +priority = 5 +stopwaitsecs = 20 diff --git a/tests/system/Debugger/app/app.yaml b/Debugger/tests/system/app/app.yaml similarity index 100% rename from tests/system/Debugger/app/app.yaml rename to Debugger/tests/system/app/app.yaml diff --git a/tests/system/Debugger/app/web/app.php b/Debugger/tests/system/app/web/app.php similarity index 100% rename from tests/system/Debugger/app/web/app.php rename to Debugger/tests/system/app/web/app.php diff --git a/tests/system/Debugger/app/web/index.php b/Debugger/tests/system/app/web/index.php similarity index 100% rename from tests/system/Debugger/app/web/index.php rename to Debugger/tests/system/app/web/index.php diff --git a/Debugger/tests/system/bootstrap.php b/Debugger/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Debugger/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Dlp/phpunit-system.xml.dist b/Dlp/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Dlp/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Dlp/phpunit.xml.dist b/Dlp/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Dlp/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Dlp/V2beta1/DlpServiceClient.php b/Dlp/src/V2beta1/DlpServiceClient.php similarity index 100% rename from src/Dlp/V2beta1/DlpServiceClient.php rename to Dlp/src/V2beta1/DlpServiceClient.php diff --git a/src/Dlp/V2beta1/Gapic/DlpServiceGapicClient.php b/Dlp/src/V2beta1/Gapic/DlpServiceGapicClient.php similarity index 100% rename from src/Dlp/V2beta1/Gapic/DlpServiceGapicClient.php rename to Dlp/src/V2beta1/Gapic/DlpServiceGapicClient.php diff --git a/src/Dlp/V2beta1/README.md b/Dlp/src/V2beta1/README.md similarity index 100% rename from src/Dlp/V2beta1/README.md rename to Dlp/src/V2beta1/README.md diff --git a/src/Dlp/V2beta1/resources/dlp_service_client_config.json b/Dlp/src/V2beta1/resources/dlp_service_client_config.json similarity index 100% rename from src/Dlp/V2beta1/resources/dlp_service_client_config.json rename to Dlp/src/V2beta1/resources/dlp_service_client_config.json diff --git a/src/Dlp/V2beta1/resources/dlp_service_descriptor_config.php b/Dlp/src/V2beta1/resources/dlp_service_descriptor_config.php similarity index 100% rename from src/Dlp/V2beta1/resources/dlp_service_descriptor_config.php rename to Dlp/src/V2beta1/resources/dlp_service_descriptor_config.php diff --git a/src/Dlp/V2beta1/resources/dlp_service_rest_client_config.php b/Dlp/src/V2beta1/resources/dlp_service_rest_client_config.php similarity index 100% rename from src/Dlp/V2beta1/resources/dlp_service_rest_client_config.php rename to Dlp/src/V2beta1/resources/dlp_service_rest_client_config.php diff --git a/Dlp/tests/snippets/bootstrap.php b/Dlp/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Dlp/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/Dlp/tests/system/bootstrap.php b/Dlp/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Dlp/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/ErrorReporting/phpunit-system.xml.dist b/ErrorReporting/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/ErrorReporting/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/ErrorReporting/phpunit.xml.dist b/ErrorReporting/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/ErrorReporting/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/ErrorReporting/Bootstrap.php b/ErrorReporting/src/Bootstrap.php similarity index 100% rename from src/ErrorReporting/Bootstrap.php rename to ErrorReporting/src/Bootstrap.php diff --git a/src/ErrorReporting/V1beta1/ErrorGroupServiceClient.php b/ErrorReporting/src/V1beta1/ErrorGroupServiceClient.php similarity index 100% rename from src/ErrorReporting/V1beta1/ErrorGroupServiceClient.php rename to ErrorReporting/src/V1beta1/ErrorGroupServiceClient.php diff --git a/src/ErrorReporting/V1beta1/ErrorStatsServiceClient.php b/ErrorReporting/src/V1beta1/ErrorStatsServiceClient.php similarity index 100% rename from src/ErrorReporting/V1beta1/ErrorStatsServiceClient.php rename to ErrorReporting/src/V1beta1/ErrorStatsServiceClient.php diff --git a/src/ErrorReporting/V1beta1/Gapic/ErrorGroupServiceGapicClient.php b/ErrorReporting/src/V1beta1/Gapic/ErrorGroupServiceGapicClient.php similarity index 100% rename from src/ErrorReporting/V1beta1/Gapic/ErrorGroupServiceGapicClient.php rename to ErrorReporting/src/V1beta1/Gapic/ErrorGroupServiceGapicClient.php diff --git a/src/ErrorReporting/V1beta1/Gapic/ErrorStatsServiceGapicClient.php b/ErrorReporting/src/V1beta1/Gapic/ErrorStatsServiceGapicClient.php similarity index 100% rename from src/ErrorReporting/V1beta1/Gapic/ErrorStatsServiceGapicClient.php rename to ErrorReporting/src/V1beta1/Gapic/ErrorStatsServiceGapicClient.php diff --git a/src/ErrorReporting/V1beta1/Gapic/ReportErrorsServiceGapicClient.php b/ErrorReporting/src/V1beta1/Gapic/ReportErrorsServiceGapicClient.php similarity index 100% rename from src/ErrorReporting/V1beta1/Gapic/ReportErrorsServiceGapicClient.php rename to ErrorReporting/src/V1beta1/Gapic/ReportErrorsServiceGapicClient.php diff --git a/src/ErrorReporting/V1beta1/README.md b/ErrorReporting/src/V1beta1/README.md similarity index 100% rename from src/ErrorReporting/V1beta1/README.md rename to ErrorReporting/src/V1beta1/README.md diff --git a/src/ErrorReporting/V1beta1/ReportErrorsServiceClient.php b/ErrorReporting/src/V1beta1/ReportErrorsServiceClient.php similarity index 100% rename from src/ErrorReporting/V1beta1/ReportErrorsServiceClient.php rename to ErrorReporting/src/V1beta1/ReportErrorsServiceClient.php diff --git a/src/ErrorReporting/V1beta1/resources/error_group_service_client_config.json b/ErrorReporting/src/V1beta1/resources/error_group_service_client_config.json similarity index 100% rename from src/ErrorReporting/V1beta1/resources/error_group_service_client_config.json rename to ErrorReporting/src/V1beta1/resources/error_group_service_client_config.json diff --git a/src/ErrorReporting/V1beta1/resources/error_group_service_descriptor_config.php b/ErrorReporting/src/V1beta1/resources/error_group_service_descriptor_config.php similarity index 100% rename from src/ErrorReporting/V1beta1/resources/error_group_service_descriptor_config.php rename to ErrorReporting/src/V1beta1/resources/error_group_service_descriptor_config.php diff --git a/src/ErrorReporting/V1beta1/resources/error_group_service_rest_client_config.php b/ErrorReporting/src/V1beta1/resources/error_group_service_rest_client_config.php similarity index 100% rename from src/ErrorReporting/V1beta1/resources/error_group_service_rest_client_config.php rename to ErrorReporting/src/V1beta1/resources/error_group_service_rest_client_config.php diff --git a/src/ErrorReporting/V1beta1/resources/error_stats_service_client_config.json b/ErrorReporting/src/V1beta1/resources/error_stats_service_client_config.json similarity index 100% rename from src/ErrorReporting/V1beta1/resources/error_stats_service_client_config.json rename to ErrorReporting/src/V1beta1/resources/error_stats_service_client_config.json diff --git a/src/ErrorReporting/V1beta1/resources/error_stats_service_descriptor_config.php b/ErrorReporting/src/V1beta1/resources/error_stats_service_descriptor_config.php similarity index 100% rename from src/ErrorReporting/V1beta1/resources/error_stats_service_descriptor_config.php rename to ErrorReporting/src/V1beta1/resources/error_stats_service_descriptor_config.php diff --git a/src/ErrorReporting/V1beta1/resources/error_stats_service_rest_client_config.php b/ErrorReporting/src/V1beta1/resources/error_stats_service_rest_client_config.php similarity index 100% rename from src/ErrorReporting/V1beta1/resources/error_stats_service_rest_client_config.php rename to ErrorReporting/src/V1beta1/resources/error_stats_service_rest_client_config.php diff --git a/src/ErrorReporting/V1beta1/resources/report_errors_service_client_config.json b/ErrorReporting/src/V1beta1/resources/report_errors_service_client_config.json similarity index 100% rename from src/ErrorReporting/V1beta1/resources/report_errors_service_client_config.json rename to ErrorReporting/src/V1beta1/resources/report_errors_service_client_config.json diff --git a/src/ErrorReporting/V1beta1/resources/report_errors_service_descriptor_config.php b/ErrorReporting/src/V1beta1/resources/report_errors_service_descriptor_config.php similarity index 100% rename from src/ErrorReporting/V1beta1/resources/report_errors_service_descriptor_config.php rename to ErrorReporting/src/V1beta1/resources/report_errors_service_descriptor_config.php diff --git a/src/ErrorReporting/V1beta1/resources/report_errors_service_rest_client_config.php b/ErrorReporting/src/V1beta1/resources/report_errors_service_rest_client_config.php similarity index 100% rename from src/ErrorReporting/V1beta1/resources/report_errors_service_rest_client_config.php rename to ErrorReporting/src/V1beta1/resources/report_errors_service_rest_client_config.php diff --git a/src/ErrorReporting/prepend.php b/ErrorReporting/src/prepend.php similarity index 100% rename from src/ErrorReporting/prepend.php rename to ErrorReporting/src/prepend.php diff --git a/ErrorReporting/tests/snippets/bootstrap.php b/ErrorReporting/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/ErrorReporting/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/ErrorReporting/tests/system/bootstrap.php b/ErrorReporting/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/ErrorReporting/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Firestore/phpunit-system.xml.dist b/Firestore/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Firestore/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Firestore/phpunit.xml.dist b/Firestore/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Firestore/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Firestore/CollectionReference.php b/Firestore/src/CollectionReference.php similarity index 100% rename from src/Firestore/CollectionReference.php rename to Firestore/src/CollectionReference.php diff --git a/src/Firestore/Connection/ConnectionInterface.php b/Firestore/src/Connection/ConnectionInterface.php similarity index 100% rename from src/Firestore/Connection/ConnectionInterface.php rename to Firestore/src/Connection/ConnectionInterface.php diff --git a/src/Firestore/Connection/Grpc.php b/Firestore/src/Connection/Grpc.php similarity index 100% rename from src/Firestore/Connection/Grpc.php rename to Firestore/src/Connection/Grpc.php diff --git a/src/Firestore/DocumentReference.php b/Firestore/src/DocumentReference.php similarity index 100% rename from src/Firestore/DocumentReference.php rename to Firestore/src/DocumentReference.php diff --git a/src/Firestore/DocumentSnapshot.php b/Firestore/src/DocumentSnapshot.php similarity index 100% rename from src/Firestore/DocumentSnapshot.php rename to Firestore/src/DocumentSnapshot.php diff --git a/src/Firestore/FieldPath.php b/Firestore/src/FieldPath.php similarity index 100% rename from src/Firestore/FieldPath.php rename to Firestore/src/FieldPath.php diff --git a/src/Firestore/FieldValue.php b/Firestore/src/FieldValue.php similarity index 100% rename from src/Firestore/FieldValue.php rename to Firestore/src/FieldValue.php diff --git a/src/Firestore/FirestoreClient.php b/Firestore/src/FirestoreClient.php similarity index 100% rename from src/Firestore/FirestoreClient.php rename to Firestore/src/FirestoreClient.php diff --git a/src/Firestore/PathTrait.php b/Firestore/src/PathTrait.php similarity index 100% rename from src/Firestore/PathTrait.php rename to Firestore/src/PathTrait.php diff --git a/src/Firestore/Query.php b/Firestore/src/Query.php similarity index 100% rename from src/Firestore/Query.php rename to Firestore/src/Query.php diff --git a/src/Firestore/QuerySnapshot.php b/Firestore/src/QuerySnapshot.php similarity index 100% rename from src/Firestore/QuerySnapshot.php rename to Firestore/src/QuerySnapshot.php diff --git a/src/Firestore/SnapshotTrait.php b/Firestore/src/SnapshotTrait.php similarity index 100% rename from src/Firestore/SnapshotTrait.php rename to Firestore/src/SnapshotTrait.php diff --git a/src/Firestore/Transaction.php b/Firestore/src/Transaction.php similarity index 100% rename from src/Firestore/Transaction.php rename to Firestore/src/Transaction.php diff --git a/src/Firestore/V1beta1/FirestoreClient.php b/Firestore/src/V1beta1/FirestoreClient.php similarity index 100% rename from src/Firestore/V1beta1/FirestoreClient.php rename to Firestore/src/V1beta1/FirestoreClient.php diff --git a/src/Firestore/V1beta1/Gapic/FirestoreGapicClient.php b/Firestore/src/V1beta1/Gapic/FirestoreGapicClient.php similarity index 100% rename from src/Firestore/V1beta1/Gapic/FirestoreGapicClient.php rename to Firestore/src/V1beta1/Gapic/FirestoreGapicClient.php diff --git a/src/Firestore/V1beta1/README.md b/Firestore/src/V1beta1/README.md similarity index 100% rename from src/Firestore/V1beta1/README.md rename to Firestore/src/V1beta1/README.md diff --git a/src/Firestore/V1beta1/resources/firestore_client_config.json b/Firestore/src/V1beta1/resources/firestore_client_config.json similarity index 100% rename from src/Firestore/V1beta1/resources/firestore_client_config.json rename to Firestore/src/V1beta1/resources/firestore_client_config.json diff --git a/src/Firestore/V1beta1/resources/firestore_descriptor_config.php b/Firestore/src/V1beta1/resources/firestore_descriptor_config.php similarity index 100% rename from src/Firestore/V1beta1/resources/firestore_descriptor_config.php rename to Firestore/src/V1beta1/resources/firestore_descriptor_config.php diff --git a/src/Firestore/V1beta1/resources/firestore_rest_client_config.php b/Firestore/src/V1beta1/resources/firestore_rest_client_config.php similarity index 100% rename from src/Firestore/V1beta1/resources/firestore_rest_client_config.php rename to Firestore/src/V1beta1/resources/firestore_rest_client_config.php diff --git a/src/Firestore/ValueMapper.php b/Firestore/src/ValueMapper.php similarity index 100% rename from src/Firestore/ValueMapper.php rename to Firestore/src/ValueMapper.php diff --git a/src/Firestore/WriteBatch.php b/Firestore/src/WriteBatch.php similarity index 100% rename from src/Firestore/WriteBatch.php rename to Firestore/src/WriteBatch.php diff --git a/tests/snippets/Firestore/CollectionReferenceTest.php b/Firestore/tests/snippets/CollectionReferenceTest.php similarity index 100% rename from tests/snippets/Firestore/CollectionReferenceTest.php rename to Firestore/tests/snippets/CollectionReferenceTest.php diff --git a/tests/snippets/Firestore/DocumentReferenceTest.php b/Firestore/tests/snippets/DocumentReferenceTest.php similarity index 100% rename from tests/snippets/Firestore/DocumentReferenceTest.php rename to Firestore/tests/snippets/DocumentReferenceTest.php diff --git a/tests/snippets/Firestore/DocumentSnapshotTest.php b/Firestore/tests/snippets/DocumentSnapshotTest.php similarity index 100% rename from tests/snippets/Firestore/DocumentSnapshotTest.php rename to Firestore/tests/snippets/DocumentSnapshotTest.php diff --git a/tests/snippets/Firestore/FieldPathTest.php b/Firestore/tests/snippets/FieldPathTest.php similarity index 100% rename from tests/snippets/Firestore/FieldPathTest.php rename to Firestore/tests/snippets/FieldPathTest.php diff --git a/tests/snippets/Firestore/FieldValueTest.php b/Firestore/tests/snippets/FieldValueTest.php similarity index 100% rename from tests/snippets/Firestore/FieldValueTest.php rename to Firestore/tests/snippets/FieldValueTest.php diff --git a/tests/snippets/Firestore/FirestoreClientTest.php b/Firestore/tests/snippets/FirestoreClientTest.php similarity index 100% rename from tests/snippets/Firestore/FirestoreClientTest.php rename to Firestore/tests/snippets/FirestoreClientTest.php diff --git a/tests/snippets/Firestore/QuerySnapshotTest.php b/Firestore/tests/snippets/QuerySnapshotTest.php similarity index 100% rename from tests/snippets/Firestore/QuerySnapshotTest.php rename to Firestore/tests/snippets/QuerySnapshotTest.php diff --git a/tests/snippets/Firestore/QueryTest.php b/Firestore/tests/snippets/QueryTest.php similarity index 100% rename from tests/snippets/Firestore/QueryTest.php rename to Firestore/tests/snippets/QueryTest.php diff --git a/tests/snippets/Firestore/TransactionTest.php b/Firestore/tests/snippets/TransactionTest.php similarity index 100% rename from tests/snippets/Firestore/TransactionTest.php rename to Firestore/tests/snippets/TransactionTest.php diff --git a/tests/snippets/Firestore/WriteBatchTest.php b/Firestore/tests/snippets/WriteBatchTest.php similarity index 100% rename from tests/snippets/Firestore/WriteBatchTest.php rename to Firestore/tests/snippets/WriteBatchTest.php diff --git a/Firestore/tests/snippets/bootstrap.php b/Firestore/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Firestore/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Firestore/DocumentAndCollectionTest.php b/Firestore/tests/system/DocumentAndCollectionTest.php similarity index 100% rename from tests/system/Firestore/DocumentAndCollectionTest.php rename to Firestore/tests/system/DocumentAndCollectionTest.php diff --git a/tests/system/Firestore/FirestoreTestCase.php b/Firestore/tests/system/FirestoreTestCase.php similarity index 100% rename from tests/system/Firestore/FirestoreTestCase.php rename to Firestore/tests/system/FirestoreTestCase.php diff --git a/tests/system/Firestore/QueryTest.php b/Firestore/tests/system/QueryTest.php similarity index 100% rename from tests/system/Firestore/QueryTest.php rename to Firestore/tests/system/QueryTest.php diff --git a/tests/system/Firestore/TransactionTest.php b/Firestore/tests/system/TransactionTest.php similarity index 100% rename from tests/system/Firestore/TransactionTest.php rename to Firestore/tests/system/TransactionTest.php diff --git a/tests/system/Firestore/ValueMapperTest.php b/Firestore/tests/system/ValueMapperTest.php similarity index 100% rename from tests/system/Firestore/ValueMapperTest.php rename to Firestore/tests/system/ValueMapperTest.php diff --git a/Firestore/tests/system/bootstrap.php b/Firestore/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Firestore/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Language/phpunit-system.xml.dist b/Language/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Language/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Language/phpunit.xml.dist b/Language/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Language/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Language/Annotation.php b/Language/src/Annotation.php similarity index 100% rename from src/Language/Annotation.php rename to Language/src/Annotation.php diff --git a/src/Language/Connection/ConnectionInterface.php b/Language/src/Connection/ConnectionInterface.php similarity index 100% rename from src/Language/Connection/ConnectionInterface.php rename to Language/src/Connection/ConnectionInterface.php diff --git a/src/Language/Connection/Rest.php b/Language/src/Connection/Rest.php similarity index 100% rename from src/Language/Connection/Rest.php rename to Language/src/Connection/Rest.php diff --git a/src/Language/Connection/ServiceDefinition/language-v1.json b/Language/src/Connection/ServiceDefinition/language-v1.json similarity index 100% rename from src/Language/Connection/ServiceDefinition/language-v1.json rename to Language/src/Connection/ServiceDefinition/language-v1.json diff --git a/src/Language/LanguageClient.php b/Language/src/LanguageClient.php similarity index 100% rename from src/Language/LanguageClient.php rename to Language/src/LanguageClient.php diff --git a/src/Language/V1beta2/Gapic/LanguageServiceGapicClient.php b/Language/src/V1beta2/Gapic/LanguageServiceGapicClient.php similarity index 100% rename from src/Language/V1beta2/Gapic/LanguageServiceGapicClient.php rename to Language/src/V1beta2/Gapic/LanguageServiceGapicClient.php diff --git a/src/Language/V1beta2/LanguageServiceClient.php b/Language/src/V1beta2/LanguageServiceClient.php similarity index 100% rename from src/Language/V1beta2/LanguageServiceClient.php rename to Language/src/V1beta2/LanguageServiceClient.php diff --git a/src/Language/V1beta2/README.md b/Language/src/V1beta2/README.md similarity index 100% rename from src/Language/V1beta2/README.md rename to Language/src/V1beta2/README.md diff --git a/src/Language/V1beta2/resources/language_service_client_config.json b/Language/src/V1beta2/resources/language_service_client_config.json similarity index 100% rename from src/Language/V1beta2/resources/language_service_client_config.json rename to Language/src/V1beta2/resources/language_service_client_config.json diff --git a/src/Language/V1beta2/resources/language_service_descriptor_config.php b/Language/src/V1beta2/resources/language_service_descriptor_config.php similarity index 100% rename from src/Language/V1beta2/resources/language_service_descriptor_config.php rename to Language/src/V1beta2/resources/language_service_descriptor_config.php diff --git a/src/Language/V1beta2/resources/language_service_rest_client_config.php b/Language/src/V1beta2/resources/language_service_rest_client_config.php similarity index 100% rename from src/Language/V1beta2/resources/language_service_rest_client_config.php rename to Language/src/V1beta2/resources/language_service_rest_client_config.php diff --git a/tests/snippets/Language/AnnotationTest.php b/Language/tests/snippets/AnnotationTest.php similarity index 100% rename from tests/snippets/Language/AnnotationTest.php rename to Language/tests/snippets/AnnotationTest.php diff --git a/tests/snippets/Language/LanguageClientTest.php b/Language/tests/snippets/LanguageClientTest.php similarity index 100% rename from tests/snippets/Language/LanguageClientTest.php rename to Language/tests/snippets/LanguageClientTest.php diff --git a/Language/tests/snippets/bootstrap.php b/Language/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Language/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Language/AnalyzeTest.php b/Language/tests/system/AnalyzeTest.php similarity index 100% rename from tests/system/Language/AnalyzeTest.php rename to Language/tests/system/AnalyzeTest.php diff --git a/tests/system/Language/LanguageTestCase.php b/Language/tests/system/LanguageTestCase.php similarity index 100% rename from tests/system/Language/LanguageTestCase.php rename to Language/tests/system/LanguageTestCase.php diff --git a/Language/tests/system/bootstrap.php b/Language/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Language/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Logging/phpunit-system.xml.dist b/Logging/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Logging/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Logging/phpunit.xml.dist b/Logging/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Logging/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Logging/Connection/ConnectionInterface.php b/Logging/src/Connection/ConnectionInterface.php similarity index 100% rename from src/Logging/Connection/ConnectionInterface.php rename to Logging/src/Connection/ConnectionInterface.php diff --git a/src/Logging/Connection/Grpc.php b/Logging/src/Connection/Grpc.php similarity index 100% rename from src/Logging/Connection/Grpc.php rename to Logging/src/Connection/Grpc.php diff --git a/src/Logging/Connection/Rest.php b/Logging/src/Connection/Rest.php similarity index 100% rename from src/Logging/Connection/Rest.php rename to Logging/src/Connection/Rest.php diff --git a/src/Logging/Connection/ServiceDefinition/logging-v2.json b/Logging/src/Connection/ServiceDefinition/logging-v2.json similarity index 100% rename from src/Logging/Connection/ServiceDefinition/logging-v2.json rename to Logging/src/Connection/ServiceDefinition/logging-v2.json diff --git a/src/Logging/Entry.php b/Logging/src/Entry.php similarity index 100% rename from src/Logging/Entry.php rename to Logging/src/Entry.php diff --git a/src/Logging/Logger.php b/Logging/src/Logger.php similarity index 100% rename from src/Logging/Logger.php rename to Logging/src/Logger.php diff --git a/src/Logging/LoggingClient.php b/Logging/src/LoggingClient.php similarity index 100% rename from src/Logging/LoggingClient.php rename to Logging/src/LoggingClient.php diff --git a/src/Logging/Metric.php b/Logging/src/Metric.php similarity index 100% rename from src/Logging/Metric.php rename to Logging/src/Metric.php diff --git a/src/Logging/PsrLogger.php b/Logging/src/PsrLogger.php similarity index 100% rename from src/Logging/PsrLogger.php rename to Logging/src/PsrLogger.php diff --git a/src/Logging/Sink.php b/Logging/src/Sink.php similarity index 100% rename from src/Logging/Sink.php rename to Logging/src/Sink.php diff --git a/src/Logging/V2/ConfigServiceV2Client.php b/Logging/src/V2/ConfigServiceV2Client.php similarity index 100% rename from src/Logging/V2/ConfigServiceV2Client.php rename to Logging/src/V2/ConfigServiceV2Client.php diff --git a/src/Logging/V2/Gapic/ConfigServiceV2GapicClient.php b/Logging/src/V2/Gapic/ConfigServiceV2GapicClient.php similarity index 100% rename from src/Logging/V2/Gapic/ConfigServiceV2GapicClient.php rename to Logging/src/V2/Gapic/ConfigServiceV2GapicClient.php diff --git a/src/Logging/V2/Gapic/LoggingServiceV2GapicClient.php b/Logging/src/V2/Gapic/LoggingServiceV2GapicClient.php similarity index 100% rename from src/Logging/V2/Gapic/LoggingServiceV2GapicClient.php rename to Logging/src/V2/Gapic/LoggingServiceV2GapicClient.php diff --git a/src/Logging/V2/Gapic/MetricsServiceV2GapicClient.php b/Logging/src/V2/Gapic/MetricsServiceV2GapicClient.php similarity index 100% rename from src/Logging/V2/Gapic/MetricsServiceV2GapicClient.php rename to Logging/src/V2/Gapic/MetricsServiceV2GapicClient.php diff --git a/src/Logging/V2/LoggingServiceV2Client.php b/Logging/src/V2/LoggingServiceV2Client.php similarity index 100% rename from src/Logging/V2/LoggingServiceV2Client.php rename to Logging/src/V2/LoggingServiceV2Client.php diff --git a/src/Logging/V2/MetricsServiceV2Client.php b/Logging/src/V2/MetricsServiceV2Client.php similarity index 100% rename from src/Logging/V2/MetricsServiceV2Client.php rename to Logging/src/V2/MetricsServiceV2Client.php diff --git a/src/Logging/V2/README.md b/Logging/src/V2/README.md similarity index 100% rename from src/Logging/V2/README.md rename to Logging/src/V2/README.md diff --git a/src/Logging/V2/resources/config_service_v2_client_config.json b/Logging/src/V2/resources/config_service_v2_client_config.json similarity index 100% rename from src/Logging/V2/resources/config_service_v2_client_config.json rename to Logging/src/V2/resources/config_service_v2_client_config.json diff --git a/src/Logging/V2/resources/config_service_v2_descriptor_config.php b/Logging/src/V2/resources/config_service_v2_descriptor_config.php similarity index 100% rename from src/Logging/V2/resources/config_service_v2_descriptor_config.php rename to Logging/src/V2/resources/config_service_v2_descriptor_config.php diff --git a/src/Logging/V2/resources/config_service_v2_rest_client_config.php b/Logging/src/V2/resources/config_service_v2_rest_client_config.php similarity index 100% rename from src/Logging/V2/resources/config_service_v2_rest_client_config.php rename to Logging/src/V2/resources/config_service_v2_rest_client_config.php diff --git a/src/Logging/V2/resources/logging_service_v2_client_config.json b/Logging/src/V2/resources/logging_service_v2_client_config.json similarity index 100% rename from src/Logging/V2/resources/logging_service_v2_client_config.json rename to Logging/src/V2/resources/logging_service_v2_client_config.json diff --git a/src/Logging/V2/resources/logging_service_v2_descriptor_config.php b/Logging/src/V2/resources/logging_service_v2_descriptor_config.php similarity index 100% rename from src/Logging/V2/resources/logging_service_v2_descriptor_config.php rename to Logging/src/V2/resources/logging_service_v2_descriptor_config.php diff --git a/src/Logging/V2/resources/logging_service_v2_rest_client_config.php b/Logging/src/V2/resources/logging_service_v2_rest_client_config.php similarity index 100% rename from src/Logging/V2/resources/logging_service_v2_rest_client_config.php rename to Logging/src/V2/resources/logging_service_v2_rest_client_config.php diff --git a/src/Logging/V2/resources/metrics_service_v2_client_config.json b/Logging/src/V2/resources/metrics_service_v2_client_config.json similarity index 100% rename from src/Logging/V2/resources/metrics_service_v2_client_config.json rename to Logging/src/V2/resources/metrics_service_v2_client_config.json diff --git a/src/Logging/V2/resources/metrics_service_v2_descriptor_config.php b/Logging/src/V2/resources/metrics_service_v2_descriptor_config.php similarity index 100% rename from src/Logging/V2/resources/metrics_service_v2_descriptor_config.php rename to Logging/src/V2/resources/metrics_service_v2_descriptor_config.php diff --git a/src/Logging/V2/resources/metrics_service_v2_rest_client_config.php b/Logging/src/V2/resources/metrics_service_v2_rest_client_config.php similarity index 100% rename from src/Logging/V2/resources/metrics_service_v2_rest_client_config.php rename to Logging/src/V2/resources/metrics_service_v2_rest_client_config.php diff --git a/tests/snippets/Logging/EntryTest.php b/Logging/tests/snippets/EntryTest.php similarity index 100% rename from tests/snippets/Logging/EntryTest.php rename to Logging/tests/snippets/EntryTest.php diff --git a/tests/snippets/Logging/LoggerTest.php b/Logging/tests/snippets/LoggerTest.php similarity index 100% rename from tests/snippets/Logging/LoggerTest.php rename to Logging/tests/snippets/LoggerTest.php diff --git a/tests/snippets/Logging/LoggingClientTest.php b/Logging/tests/snippets/LoggingClientTest.php similarity index 100% rename from tests/snippets/Logging/LoggingClientTest.php rename to Logging/tests/snippets/LoggingClientTest.php diff --git a/tests/snippets/Logging/MetricTest.php b/Logging/tests/snippets/MetricTest.php similarity index 100% rename from tests/snippets/Logging/MetricTest.php rename to Logging/tests/snippets/MetricTest.php diff --git a/tests/snippets/Logging/PsrLoggerTest.php b/Logging/tests/snippets/PsrLoggerTest.php similarity index 100% rename from tests/snippets/Logging/PsrLoggerTest.php rename to Logging/tests/snippets/PsrLoggerTest.php diff --git a/tests/snippets/Logging/SinkTest.php b/Logging/tests/snippets/SinkTest.php similarity index 100% rename from tests/snippets/Logging/SinkTest.php rename to Logging/tests/snippets/SinkTest.php diff --git a/Logging/tests/snippets/bootstrap.php b/Logging/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Logging/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Logging/LoggingTestCase.php b/Logging/tests/system/LoggingTestCase.php similarity index 100% rename from tests/system/Logging/LoggingTestCase.php rename to Logging/tests/system/LoggingTestCase.php diff --git a/tests/system/Logging/ManageMetricsTest.php b/Logging/tests/system/ManageMetricsTest.php similarity index 100% rename from tests/system/Logging/ManageMetricsTest.php rename to Logging/tests/system/ManageMetricsTest.php diff --git a/tests/system/Logging/ManageSinksTest.php b/Logging/tests/system/ManageSinksTest.php similarity index 100% rename from tests/system/Logging/ManageSinksTest.php rename to Logging/tests/system/ManageSinksTest.php diff --git a/tests/system/Logging/WriteAndListEntryTest.php b/Logging/tests/system/WriteAndListEntryTest.php similarity index 100% rename from tests/system/Logging/WriteAndListEntryTest.php rename to Logging/tests/system/WriteAndListEntryTest.php diff --git a/Logging/tests/system/bootstrap.php b/Logging/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Logging/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Monitoring/phpunit-system.xml.dist b/Monitoring/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Monitoring/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Monitoring/phpunit.xml.dist b/Monitoring/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Monitoring/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Monitoring/V3/Gapic/GroupServiceGapicClient.php b/Monitoring/src/V3/Gapic/GroupServiceGapicClient.php similarity index 100% rename from src/Monitoring/V3/Gapic/GroupServiceGapicClient.php rename to Monitoring/src/V3/Gapic/GroupServiceGapicClient.php diff --git a/src/Monitoring/V3/Gapic/MetricServiceGapicClient.php b/Monitoring/src/V3/Gapic/MetricServiceGapicClient.php similarity index 100% rename from src/Monitoring/V3/Gapic/MetricServiceGapicClient.php rename to Monitoring/src/V3/Gapic/MetricServiceGapicClient.php diff --git a/src/Monitoring/V3/Gapic/UptimeCheckServiceGapicClient.php b/Monitoring/src/V3/Gapic/UptimeCheckServiceGapicClient.php similarity index 100% rename from src/Monitoring/V3/Gapic/UptimeCheckServiceGapicClient.php rename to Monitoring/src/V3/Gapic/UptimeCheckServiceGapicClient.php diff --git a/src/Monitoring/V3/GroupServiceClient.php b/Monitoring/src/V3/GroupServiceClient.php similarity index 100% rename from src/Monitoring/V3/GroupServiceClient.php rename to Monitoring/src/V3/GroupServiceClient.php diff --git a/src/Monitoring/V3/MetricServiceClient.php b/Monitoring/src/V3/MetricServiceClient.php similarity index 100% rename from src/Monitoring/V3/MetricServiceClient.php rename to Monitoring/src/V3/MetricServiceClient.php diff --git a/src/Monitoring/V3/README.md b/Monitoring/src/V3/README.md similarity index 100% rename from src/Monitoring/V3/README.md rename to Monitoring/src/V3/README.md diff --git a/src/Monitoring/V3/UptimeCheckServiceClient.php b/Monitoring/src/V3/UptimeCheckServiceClient.php similarity index 100% rename from src/Monitoring/V3/UptimeCheckServiceClient.php rename to Monitoring/src/V3/UptimeCheckServiceClient.php diff --git a/src/Monitoring/V3/resources/group_service_client_config.json b/Monitoring/src/V3/resources/group_service_client_config.json similarity index 100% rename from src/Monitoring/V3/resources/group_service_client_config.json rename to Monitoring/src/V3/resources/group_service_client_config.json diff --git a/src/Monitoring/V3/resources/group_service_descriptor_config.php b/Monitoring/src/V3/resources/group_service_descriptor_config.php similarity index 100% rename from src/Monitoring/V3/resources/group_service_descriptor_config.php rename to Monitoring/src/V3/resources/group_service_descriptor_config.php diff --git a/src/Monitoring/V3/resources/group_service_rest_client_config.php b/Monitoring/src/V3/resources/group_service_rest_client_config.php similarity index 100% rename from src/Monitoring/V3/resources/group_service_rest_client_config.php rename to Monitoring/src/V3/resources/group_service_rest_client_config.php diff --git a/src/Monitoring/V3/resources/metric_service_client_config.json b/Monitoring/src/V3/resources/metric_service_client_config.json similarity index 100% rename from src/Monitoring/V3/resources/metric_service_client_config.json rename to Monitoring/src/V3/resources/metric_service_client_config.json diff --git a/src/Monitoring/V3/resources/metric_service_descriptor_config.php b/Monitoring/src/V3/resources/metric_service_descriptor_config.php similarity index 100% rename from src/Monitoring/V3/resources/metric_service_descriptor_config.php rename to Monitoring/src/V3/resources/metric_service_descriptor_config.php diff --git a/src/Monitoring/V3/resources/metric_service_rest_client_config.php b/Monitoring/src/V3/resources/metric_service_rest_client_config.php similarity index 100% rename from src/Monitoring/V3/resources/metric_service_rest_client_config.php rename to Monitoring/src/V3/resources/metric_service_rest_client_config.php diff --git a/src/Monitoring/V3/resources/uptime_check_service_client_config.json b/Monitoring/src/V3/resources/uptime_check_service_client_config.json similarity index 100% rename from src/Monitoring/V3/resources/uptime_check_service_client_config.json rename to Monitoring/src/V3/resources/uptime_check_service_client_config.json diff --git a/src/Monitoring/V3/resources/uptime_check_service_descriptor_config.php b/Monitoring/src/V3/resources/uptime_check_service_descriptor_config.php similarity index 100% rename from src/Monitoring/V3/resources/uptime_check_service_descriptor_config.php rename to Monitoring/src/V3/resources/uptime_check_service_descriptor_config.php diff --git a/src/Monitoring/V3/resources/uptime_check_service_rest_client_config.php b/Monitoring/src/V3/resources/uptime_check_service_rest_client_config.php similarity index 100% rename from src/Monitoring/V3/resources/uptime_check_service_rest_client_config.php rename to Monitoring/src/V3/resources/uptime_check_service_rest_client_config.php diff --git a/Monitoring/tests/snippets/bootstrap.php b/Monitoring/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Monitoring/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/Monitoring/tests/system/bootstrap.php b/Monitoring/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Monitoring/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/OsLogin/phpunit-system.xml.dist b/OsLogin/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/OsLogin/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/OsLogin/phpunit.xml.dist b/OsLogin/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/OsLogin/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/OsLogin/V1beta/Gapic/OsLoginServiceGapicClient.php b/OsLogin/src/V1beta/Gapic/OsLoginServiceGapicClient.php similarity index 100% rename from src/OsLogin/V1beta/Gapic/OsLoginServiceGapicClient.php rename to OsLogin/src/V1beta/Gapic/OsLoginServiceGapicClient.php diff --git a/src/OsLogin/V1beta/OsLoginServiceClient.php b/OsLogin/src/V1beta/OsLoginServiceClient.php similarity index 100% rename from src/OsLogin/V1beta/OsLoginServiceClient.php rename to OsLogin/src/V1beta/OsLoginServiceClient.php diff --git a/src/OsLogin/V1beta/README.md b/OsLogin/src/V1beta/README.md similarity index 100% rename from src/OsLogin/V1beta/README.md rename to OsLogin/src/V1beta/README.md diff --git a/src/OsLogin/V1beta/resources/os_login_service_client_config.json b/OsLogin/src/V1beta/resources/os_login_service_client_config.json similarity index 100% rename from src/OsLogin/V1beta/resources/os_login_service_client_config.json rename to OsLogin/src/V1beta/resources/os_login_service_client_config.json diff --git a/src/OsLogin/V1beta/resources/os_login_service_descriptor_config.php b/OsLogin/src/V1beta/resources/os_login_service_descriptor_config.php similarity index 100% rename from src/OsLogin/V1beta/resources/os_login_service_descriptor_config.php rename to OsLogin/src/V1beta/resources/os_login_service_descriptor_config.php diff --git a/src/OsLogin/V1beta/resources/os_login_service_rest_client_config.php b/OsLogin/src/V1beta/resources/os_login_service_rest_client_config.php similarity index 100% rename from src/OsLogin/V1beta/resources/os_login_service_rest_client_config.php rename to OsLogin/src/V1beta/resources/os_login_service_rest_client_config.php diff --git a/OsLogin/tests/snippets/bootstrap.php b/OsLogin/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/OsLogin/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/OsLogin/OsLoginServiceClientTest.php b/OsLogin/tests/system/OsLoginServiceClientTest.php similarity index 100% rename from tests/system/OsLogin/OsLoginServiceClientTest.php rename to OsLogin/tests/system/OsLoginServiceClientTest.php diff --git a/OsLogin/tests/system/bootstrap.php b/OsLogin/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/OsLogin/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/PubSub/phpunit-system.xml.dist b/PubSub/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/PubSub/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/PubSub/phpunit.xml.dist b/PubSub/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/PubSub/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/PubSub/BatchPublisher.php b/PubSub/src/BatchPublisher.php similarity index 100% rename from src/PubSub/BatchPublisher.php rename to PubSub/src/BatchPublisher.php diff --git a/src/PubSub/Connection/ConnectionInterface.php b/PubSub/src/Connection/ConnectionInterface.php similarity index 100% rename from src/PubSub/Connection/ConnectionInterface.php rename to PubSub/src/Connection/ConnectionInterface.php diff --git a/src/PubSub/Connection/Grpc.php b/PubSub/src/Connection/Grpc.php similarity index 100% rename from src/PubSub/Connection/Grpc.php rename to PubSub/src/Connection/Grpc.php diff --git a/src/PubSub/Connection/IamSubscription.php b/PubSub/src/Connection/IamSubscription.php similarity index 100% rename from src/PubSub/Connection/IamSubscription.php rename to PubSub/src/Connection/IamSubscription.php diff --git a/src/PubSub/Connection/IamTopic.php b/PubSub/src/Connection/IamTopic.php similarity index 100% rename from src/PubSub/Connection/IamTopic.php rename to PubSub/src/Connection/IamTopic.php diff --git a/src/PubSub/Connection/Rest.php b/PubSub/src/Connection/Rest.php similarity index 100% rename from src/PubSub/Connection/Rest.php rename to PubSub/src/Connection/Rest.php diff --git a/src/PubSub/Connection/ServiceDefinition/pubsub-v1.json b/PubSub/src/Connection/ServiceDefinition/pubsub-v1.json similarity index 100% rename from src/PubSub/Connection/ServiceDefinition/pubsub-v1.json rename to PubSub/src/Connection/ServiceDefinition/pubsub-v1.json diff --git a/src/PubSub/IncomingMessageTrait.php b/PubSub/src/IncomingMessageTrait.php similarity index 100% rename from src/PubSub/IncomingMessageTrait.php rename to PubSub/src/IncomingMessageTrait.php diff --git a/src/PubSub/Message.php b/PubSub/src/Message.php similarity index 100% rename from src/PubSub/Message.php rename to PubSub/src/Message.php diff --git a/src/PubSub/PubSubClient.php b/PubSub/src/PubSubClient.php similarity index 100% rename from src/PubSub/PubSubClient.php rename to PubSub/src/PubSubClient.php diff --git a/src/PubSub/ResourceNameTrait.php b/PubSub/src/ResourceNameTrait.php similarity index 100% rename from src/PubSub/ResourceNameTrait.php rename to PubSub/src/ResourceNameTrait.php diff --git a/src/PubSub/Snapshot.php b/PubSub/src/Snapshot.php similarity index 100% rename from src/PubSub/Snapshot.php rename to PubSub/src/Snapshot.php diff --git a/src/PubSub/Subscription.php b/PubSub/src/Subscription.php similarity index 100% rename from src/PubSub/Subscription.php rename to PubSub/src/Subscription.php diff --git a/src/PubSub/Topic.php b/PubSub/src/Topic.php similarity index 100% rename from src/PubSub/Topic.php rename to PubSub/src/Topic.php diff --git a/src/PubSub/V1/Gapic/PublisherGapicClient.php b/PubSub/src/V1/Gapic/PublisherGapicClient.php similarity index 100% rename from src/PubSub/V1/Gapic/PublisherGapicClient.php rename to PubSub/src/V1/Gapic/PublisherGapicClient.php diff --git a/src/PubSub/V1/Gapic/SubscriberGapicClient.php b/PubSub/src/V1/Gapic/SubscriberGapicClient.php similarity index 100% rename from src/PubSub/V1/Gapic/SubscriberGapicClient.php rename to PubSub/src/V1/Gapic/SubscriberGapicClient.php diff --git a/src/PubSub/V1/PublisherClient.php b/PubSub/src/V1/PublisherClient.php similarity index 100% rename from src/PubSub/V1/PublisherClient.php rename to PubSub/src/V1/PublisherClient.php diff --git a/src/PubSub/V1/README.md b/PubSub/src/V1/README.md similarity index 100% rename from src/PubSub/V1/README.md rename to PubSub/src/V1/README.md diff --git a/src/PubSub/V1/SubscriberClient.php b/PubSub/src/V1/SubscriberClient.php similarity index 100% rename from src/PubSub/V1/SubscriberClient.php rename to PubSub/src/V1/SubscriberClient.php diff --git a/src/PubSub/V1/resources/publisher_client_config.json b/PubSub/src/V1/resources/publisher_client_config.json similarity index 100% rename from src/PubSub/V1/resources/publisher_client_config.json rename to PubSub/src/V1/resources/publisher_client_config.json diff --git a/src/PubSub/V1/resources/publisher_descriptor_config.php b/PubSub/src/V1/resources/publisher_descriptor_config.php similarity index 100% rename from src/PubSub/V1/resources/publisher_descriptor_config.php rename to PubSub/src/V1/resources/publisher_descriptor_config.php diff --git a/src/PubSub/V1/resources/publisher_rest_client_config.php b/PubSub/src/V1/resources/publisher_rest_client_config.php similarity index 100% rename from src/PubSub/V1/resources/publisher_rest_client_config.php rename to PubSub/src/V1/resources/publisher_rest_client_config.php diff --git a/src/PubSub/V1/resources/subscriber_client_config.json b/PubSub/src/V1/resources/subscriber_client_config.json similarity index 100% rename from src/PubSub/V1/resources/subscriber_client_config.json rename to PubSub/src/V1/resources/subscriber_client_config.json diff --git a/src/PubSub/V1/resources/subscriber_descriptor_config.php b/PubSub/src/V1/resources/subscriber_descriptor_config.php similarity index 100% rename from src/PubSub/V1/resources/subscriber_descriptor_config.php rename to PubSub/src/V1/resources/subscriber_descriptor_config.php diff --git a/src/PubSub/V1/resources/subscriber_rest_client_config.php b/PubSub/src/V1/resources/subscriber_rest_client_config.php similarity index 100% rename from src/PubSub/V1/resources/subscriber_rest_client_config.php rename to PubSub/src/V1/resources/subscriber_rest_client_config.php diff --git a/tests/snippets/PubSub/BatchPublisherTest.php b/PubSub/tests/snippets/BatchPublisherTest.php similarity index 100% rename from tests/snippets/PubSub/BatchPublisherTest.php rename to PubSub/tests/snippets/BatchPublisherTest.php diff --git a/tests/snippets/PubSub/MessageTest.php b/PubSub/tests/snippets/MessageTest.php similarity index 100% rename from tests/snippets/PubSub/MessageTest.php rename to PubSub/tests/snippets/MessageTest.php diff --git a/tests/snippets/PubSub/PubSubClientTest.php b/PubSub/tests/snippets/PubSubClientTest.php similarity index 100% rename from tests/snippets/PubSub/PubSubClientTest.php rename to PubSub/tests/snippets/PubSubClientTest.php diff --git a/tests/snippets/PubSub/SnapshotTest.php b/PubSub/tests/snippets/SnapshotTest.php similarity index 100% rename from tests/snippets/PubSub/SnapshotTest.php rename to PubSub/tests/snippets/SnapshotTest.php diff --git a/tests/snippets/PubSub/SubscriptionTest.php b/PubSub/tests/snippets/SubscriptionTest.php similarity index 100% rename from tests/snippets/PubSub/SubscriptionTest.php rename to PubSub/tests/snippets/SubscriptionTest.php diff --git a/tests/snippets/PubSub/TopicTest.php b/PubSub/tests/snippets/TopicTest.php similarity index 100% rename from tests/snippets/PubSub/TopicTest.php rename to PubSub/tests/snippets/TopicTest.php diff --git a/PubSub/tests/snippets/bootstrap.php b/PubSub/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/PubSub/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/PubSub/ManageIAMPoliciesTest.php b/PubSub/tests/system/ManageIAMPoliciesTest.php similarity index 100% rename from tests/system/PubSub/ManageIAMPoliciesTest.php rename to PubSub/tests/system/ManageIAMPoliciesTest.php diff --git a/tests/system/PubSub/ManageSubscriptionsTest.php b/PubSub/tests/system/ManageSubscriptionsTest.php similarity index 100% rename from tests/system/PubSub/ManageSubscriptionsTest.php rename to PubSub/tests/system/ManageSubscriptionsTest.php diff --git a/tests/system/PubSub/ManageTopicsTest.php b/PubSub/tests/system/ManageTopicsTest.php similarity index 100% rename from tests/system/PubSub/ManageTopicsTest.php rename to PubSub/tests/system/ManageTopicsTest.php diff --git a/tests/system/PubSub/PubSubTestCase.php b/PubSub/tests/system/PubSubTestCase.php similarity index 100% rename from tests/system/PubSub/PubSubTestCase.php rename to PubSub/tests/system/PubSubTestCase.php diff --git a/tests/system/PubSub/PublishAndPullTest.php b/PubSub/tests/system/PublishAndPullTest.php similarity index 100% rename from tests/system/PubSub/PublishAndPullTest.php rename to PubSub/tests/system/PublishAndPullTest.php diff --git a/PubSub/tests/system/bootstrap.php b/PubSub/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/PubSub/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Spanner/phpunit-system.xml.dist b/Spanner/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Spanner/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Spanner/phpunit.xml.dist b/Spanner/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Spanner/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Spanner/Admin/Database/V1/DatabaseAdminClient.php b/Spanner/src/Admin/Database/V1/DatabaseAdminClient.php similarity index 100% rename from src/Spanner/Admin/Database/V1/DatabaseAdminClient.php rename to Spanner/src/Admin/Database/V1/DatabaseAdminClient.php diff --git a/src/Spanner/Admin/Database/V1/Gapic/DatabaseAdminGapicClient.php b/Spanner/src/Admin/Database/V1/Gapic/DatabaseAdminGapicClient.php similarity index 100% rename from src/Spanner/Admin/Database/V1/Gapic/DatabaseAdminGapicClient.php rename to Spanner/src/Admin/Database/V1/Gapic/DatabaseAdminGapicClient.php diff --git a/src/Spanner/Admin/Database/V1/resources/database_admin_client_config.json b/Spanner/src/Admin/Database/V1/resources/database_admin_client_config.json similarity index 100% rename from src/Spanner/Admin/Database/V1/resources/database_admin_client_config.json rename to Spanner/src/Admin/Database/V1/resources/database_admin_client_config.json diff --git a/src/Spanner/Admin/Database/V1/resources/database_admin_descriptor_config.php b/Spanner/src/Admin/Database/V1/resources/database_admin_descriptor_config.php similarity index 100% rename from src/Spanner/Admin/Database/V1/resources/database_admin_descriptor_config.php rename to Spanner/src/Admin/Database/V1/resources/database_admin_descriptor_config.php diff --git a/src/Spanner/Admin/Database/V1/resources/database_admin_rest_client_config.php b/Spanner/src/Admin/Database/V1/resources/database_admin_rest_client_config.php similarity index 100% rename from src/Spanner/Admin/Database/V1/resources/database_admin_rest_client_config.php rename to Spanner/src/Admin/Database/V1/resources/database_admin_rest_client_config.php diff --git a/src/Spanner/Admin/Instance/V1/Gapic/InstanceAdminGapicClient.php b/Spanner/src/Admin/Instance/V1/Gapic/InstanceAdminGapicClient.php similarity index 100% rename from src/Spanner/Admin/Instance/V1/Gapic/InstanceAdminGapicClient.php rename to Spanner/src/Admin/Instance/V1/Gapic/InstanceAdminGapicClient.php diff --git a/src/Spanner/Admin/Instance/V1/InstanceAdminClient.php b/Spanner/src/Admin/Instance/V1/InstanceAdminClient.php similarity index 100% rename from src/Spanner/Admin/Instance/V1/InstanceAdminClient.php rename to Spanner/src/Admin/Instance/V1/InstanceAdminClient.php diff --git a/src/Spanner/Admin/Instance/V1/resources/instance_admin_client_config.json b/Spanner/src/Admin/Instance/V1/resources/instance_admin_client_config.json similarity index 100% rename from src/Spanner/Admin/Instance/V1/resources/instance_admin_client_config.json rename to Spanner/src/Admin/Instance/V1/resources/instance_admin_client_config.json diff --git a/src/Spanner/Admin/Instance/V1/resources/instance_admin_descriptor_config.php b/Spanner/src/Admin/Instance/V1/resources/instance_admin_descriptor_config.php similarity index 100% rename from src/Spanner/Admin/Instance/V1/resources/instance_admin_descriptor_config.php rename to Spanner/src/Admin/Instance/V1/resources/instance_admin_descriptor_config.php diff --git a/src/Spanner/Admin/Instance/V1/resources/instance_admin_rest_client_config.php b/Spanner/src/Admin/Instance/V1/resources/instance_admin_rest_client_config.php similarity index 100% rename from src/Spanner/Admin/Instance/V1/resources/instance_admin_rest_client_config.php rename to Spanner/src/Admin/Instance/V1/resources/instance_admin_rest_client_config.php diff --git a/src/Spanner/Bytes.php b/Spanner/src/Bytes.php similarity index 100% rename from src/Spanner/Bytes.php rename to Spanner/src/Bytes.php diff --git a/src/Spanner/Connection/ConnectionInterface.php b/Spanner/src/Connection/ConnectionInterface.php similarity index 100% rename from src/Spanner/Connection/ConnectionInterface.php rename to Spanner/src/Connection/ConnectionInterface.php diff --git a/src/Spanner/Connection/Grpc.php b/Spanner/src/Connection/Grpc.php similarity index 100% rename from src/Spanner/Connection/Grpc.php rename to Spanner/src/Connection/Grpc.php diff --git a/src/Spanner/Connection/IamDatabase.php b/Spanner/src/Connection/IamDatabase.php similarity index 100% rename from src/Spanner/Connection/IamDatabase.php rename to Spanner/src/Connection/IamDatabase.php diff --git a/src/Spanner/Connection/IamInstance.php b/Spanner/src/Connection/IamInstance.php similarity index 100% rename from src/Spanner/Connection/IamInstance.php rename to Spanner/src/Connection/IamInstance.php diff --git a/src/Spanner/Connection/LongRunningConnection.php b/Spanner/src/Connection/LongRunningConnection.php similarity index 100% rename from src/Spanner/Connection/LongRunningConnection.php rename to Spanner/src/Connection/LongRunningConnection.php diff --git a/src/Spanner/Database.php b/Spanner/src/Database.php similarity index 100% rename from src/Spanner/Database.php rename to Spanner/src/Database.php diff --git a/src/Spanner/Date.php b/Spanner/src/Date.php similarity index 100% rename from src/Spanner/Date.php rename to Spanner/src/Date.php diff --git a/src/Spanner/Duration.php b/Spanner/src/Duration.php similarity index 100% rename from src/Spanner/Duration.php rename to Spanner/src/Duration.php diff --git a/src/Spanner/Instance.php b/Spanner/src/Instance.php similarity index 100% rename from src/Spanner/Instance.php rename to Spanner/src/Instance.php diff --git a/src/Spanner/InstanceConfiguration.php b/Spanner/src/InstanceConfiguration.php similarity index 100% rename from src/Spanner/InstanceConfiguration.php rename to Spanner/src/InstanceConfiguration.php diff --git a/src/Spanner/KeyRange.php b/Spanner/src/KeyRange.php similarity index 100% rename from src/Spanner/KeyRange.php rename to Spanner/src/KeyRange.php diff --git a/src/Spanner/KeySet.php b/Spanner/src/KeySet.php similarity index 100% rename from src/Spanner/KeySet.php rename to Spanner/src/KeySet.php diff --git a/src/Spanner/Operation.php b/Spanner/src/Operation.php similarity index 100% rename from src/Spanner/Operation.php rename to Spanner/src/Operation.php diff --git a/src/Spanner/Result.php b/Spanner/src/Result.php similarity index 100% rename from src/Spanner/Result.php rename to Spanner/src/Result.php diff --git a/src/Spanner/Session/CacheSessionPool.php b/Spanner/src/Session/CacheSessionPool.php similarity index 100% rename from src/Spanner/Session/CacheSessionPool.php rename to Spanner/src/Session/CacheSessionPool.php diff --git a/src/Spanner/Session/Session.php b/Spanner/src/Session/Session.php similarity index 100% rename from src/Spanner/Session/Session.php rename to Spanner/src/Session/Session.php diff --git a/src/Spanner/Session/SessionPoolInterface.php b/Spanner/src/Session/SessionPoolInterface.php similarity index 100% rename from src/Spanner/Session/SessionPoolInterface.php rename to Spanner/src/Session/SessionPoolInterface.php diff --git a/src/Spanner/Snapshot.php b/Spanner/src/Snapshot.php similarity index 100% rename from src/Spanner/Snapshot.php rename to Spanner/src/Snapshot.php diff --git a/src/Spanner/SpannerClient.php b/Spanner/src/SpannerClient.php similarity index 100% rename from src/Spanner/SpannerClient.php rename to Spanner/src/SpannerClient.php diff --git a/src/Spanner/Timestamp.php b/Spanner/src/Timestamp.php similarity index 100% rename from src/Spanner/Timestamp.php rename to Spanner/src/Timestamp.php diff --git a/src/Spanner/Transaction.php b/Spanner/src/Transaction.php similarity index 100% rename from src/Spanner/Transaction.php rename to Spanner/src/Transaction.php diff --git a/src/Spanner/TransactionConfigurationTrait.php b/Spanner/src/TransactionConfigurationTrait.php similarity index 100% rename from src/Spanner/TransactionConfigurationTrait.php rename to Spanner/src/TransactionConfigurationTrait.php diff --git a/src/Spanner/TransactionalReadInterface.php b/Spanner/src/TransactionalReadInterface.php similarity index 100% rename from src/Spanner/TransactionalReadInterface.php rename to Spanner/src/TransactionalReadInterface.php diff --git a/src/Spanner/TransactionalReadTrait.php b/Spanner/src/TransactionalReadTrait.php similarity index 100% rename from src/Spanner/TransactionalReadTrait.php rename to Spanner/src/TransactionalReadTrait.php diff --git a/src/Spanner/V1/Gapic/SpannerGapicClient.php b/Spanner/src/V1/Gapic/SpannerGapicClient.php similarity index 100% rename from src/Spanner/V1/Gapic/SpannerGapicClient.php rename to Spanner/src/V1/Gapic/SpannerGapicClient.php diff --git a/src/Spanner/V1/README.md b/Spanner/src/V1/README.md similarity index 100% rename from src/Spanner/V1/README.md rename to Spanner/src/V1/README.md diff --git a/src/Spanner/V1/SpannerClient.php b/Spanner/src/V1/SpannerClient.php similarity index 100% rename from src/Spanner/V1/SpannerClient.php rename to Spanner/src/V1/SpannerClient.php diff --git a/src/Spanner/V1/resources/spanner_client_config.json b/Spanner/src/V1/resources/spanner_client_config.json similarity index 100% rename from src/Spanner/V1/resources/spanner_client_config.json rename to Spanner/src/V1/resources/spanner_client_config.json diff --git a/src/Spanner/V1/resources/spanner_descriptor_config.php b/Spanner/src/V1/resources/spanner_descriptor_config.php similarity index 100% rename from src/Spanner/V1/resources/spanner_descriptor_config.php rename to Spanner/src/V1/resources/spanner_descriptor_config.php diff --git a/src/Spanner/V1/resources/spanner_rest_client_config.php b/Spanner/src/V1/resources/spanner_rest_client_config.php similarity index 100% rename from src/Spanner/V1/resources/spanner_rest_client_config.php rename to Spanner/src/V1/resources/spanner_rest_client_config.php diff --git a/src/Spanner/ValueInterface.php b/Spanner/src/ValueInterface.php similarity index 100% rename from src/Spanner/ValueInterface.php rename to Spanner/src/ValueInterface.php diff --git a/src/Spanner/ValueMapper.php b/Spanner/src/ValueMapper.php similarity index 100% rename from src/Spanner/ValueMapper.php rename to Spanner/src/ValueMapper.php diff --git a/tests/snippets/Spanner/BytesTest.php b/Spanner/tests/snippets/BytesTest.php similarity index 100% rename from tests/snippets/Spanner/BytesTest.php rename to Spanner/tests/snippets/BytesTest.php diff --git a/tests/snippets/Spanner/DatabaseTest.php b/Spanner/tests/snippets/DatabaseTest.php similarity index 100% rename from tests/snippets/Spanner/DatabaseTest.php rename to Spanner/tests/snippets/DatabaseTest.php diff --git a/tests/snippets/Spanner/DateTest.php b/Spanner/tests/snippets/DateTest.php similarity index 100% rename from tests/snippets/Spanner/DateTest.php rename to Spanner/tests/snippets/DateTest.php diff --git a/tests/snippets/Spanner/DurationTest.php b/Spanner/tests/snippets/DurationTest.php similarity index 100% rename from tests/snippets/Spanner/DurationTest.php rename to Spanner/tests/snippets/DurationTest.php diff --git a/tests/snippets/Spanner/InstanceConfigurationTest.php b/Spanner/tests/snippets/InstanceConfigurationTest.php similarity index 100% rename from tests/snippets/Spanner/InstanceConfigurationTest.php rename to Spanner/tests/snippets/InstanceConfigurationTest.php diff --git a/tests/snippets/Spanner/InstanceTest.php b/Spanner/tests/snippets/InstanceTest.php similarity index 100% rename from tests/snippets/Spanner/InstanceTest.php rename to Spanner/tests/snippets/InstanceTest.php diff --git a/tests/snippets/Spanner/KeyRangeTest.php b/Spanner/tests/snippets/KeyRangeTest.php similarity index 100% rename from tests/snippets/Spanner/KeyRangeTest.php rename to Spanner/tests/snippets/KeyRangeTest.php diff --git a/tests/snippets/Spanner/KeySetTest.php b/Spanner/tests/snippets/KeySetTest.php similarity index 100% rename from tests/snippets/Spanner/KeySetTest.php rename to Spanner/tests/snippets/KeySetTest.php diff --git a/tests/snippets/Spanner/ResultTest.php b/Spanner/tests/snippets/ResultTest.php similarity index 100% rename from tests/snippets/Spanner/ResultTest.php rename to Spanner/tests/snippets/ResultTest.php diff --git a/tests/snippets/Spanner/Session/CacheSessionPoolTest.php b/Spanner/tests/snippets/Session/CacheSessionPoolTest.php similarity index 100% rename from tests/snippets/Spanner/Session/CacheSessionPoolTest.php rename to Spanner/tests/snippets/Session/CacheSessionPoolTest.php diff --git a/tests/snippets/Spanner/SnapshotTest.php b/Spanner/tests/snippets/SnapshotTest.php similarity index 100% rename from tests/snippets/Spanner/SnapshotTest.php rename to Spanner/tests/snippets/SnapshotTest.php diff --git a/tests/snippets/Spanner/SpannerClientTest.php b/Spanner/tests/snippets/SpannerClientTest.php similarity index 100% rename from tests/snippets/Spanner/SpannerClientTest.php rename to Spanner/tests/snippets/SpannerClientTest.php diff --git a/tests/snippets/Spanner/TimestampTest.php b/Spanner/tests/snippets/TimestampTest.php similarity index 100% rename from tests/snippets/Spanner/TimestampTest.php rename to Spanner/tests/snippets/TimestampTest.php diff --git a/tests/snippets/Spanner/TransactionTest.php b/Spanner/tests/snippets/TransactionTest.php similarity index 100% rename from tests/snippets/Spanner/TransactionTest.php rename to Spanner/tests/snippets/TransactionTest.php diff --git a/Spanner/tests/snippets/bootstrap.php b/Spanner/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Spanner/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Spanner/AdminTest.php b/Spanner/tests/system/AdminTest.php similarity index 100% rename from tests/system/Spanner/AdminTest.php rename to Spanner/tests/system/AdminTest.php diff --git a/tests/system/Spanner/LargeReadTest.php b/Spanner/tests/system/LargeReadTest.php similarity index 100% rename from tests/system/Spanner/LargeReadTest.php rename to Spanner/tests/system/LargeReadTest.php diff --git a/tests/system/Spanner/OperationsTest.php b/Spanner/tests/system/OperationsTest.php similarity index 100% rename from tests/system/Spanner/OperationsTest.php rename to Spanner/tests/system/OperationsTest.php diff --git a/tests/system/Spanner/QueryTest.php b/Spanner/tests/system/QueryTest.php similarity index 100% rename from tests/system/Spanner/QueryTest.php rename to Spanner/tests/system/QueryTest.php diff --git a/tests/system/Spanner/ReadTest.php b/Spanner/tests/system/ReadTest.php similarity index 100% rename from tests/system/Spanner/ReadTest.php rename to Spanner/tests/system/ReadTest.php diff --git a/tests/system/Spanner/SnapshotTest.php b/Spanner/tests/system/SnapshotTest.php similarity index 100% rename from tests/system/Spanner/SnapshotTest.php rename to Spanner/tests/system/SnapshotTest.php diff --git a/tests/system/Spanner/SpannerTestCase.php b/Spanner/tests/system/SpannerTestCase.php similarity index 100% rename from tests/system/Spanner/SpannerTestCase.php rename to Spanner/tests/system/SpannerTestCase.php diff --git a/tests/system/Spanner/TransactionTest.php b/Spanner/tests/system/TransactionTest.php similarity index 100% rename from tests/system/Spanner/TransactionTest.php rename to Spanner/tests/system/TransactionTest.php diff --git a/tests/system/Spanner/WriteTest.php b/Spanner/tests/system/WriteTest.php similarity index 100% rename from tests/system/Spanner/WriteTest.php rename to Spanner/tests/system/WriteTest.php diff --git a/Spanner/tests/system/bootstrap.php b/Spanner/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Spanner/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Speech/phpunit-system.xml.dist b/Speech/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Speech/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Speech/phpunit.xml.dist b/Speech/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Speech/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Speech/Connection/ConnectionInterface.php b/Speech/src/Connection/ConnectionInterface.php similarity index 100% rename from src/Speech/Connection/ConnectionInterface.php rename to Speech/src/Connection/ConnectionInterface.php diff --git a/src/Speech/Connection/Rest.php b/Speech/src/Connection/Rest.php similarity index 100% rename from src/Speech/Connection/Rest.php rename to Speech/src/Connection/Rest.php diff --git a/src/Speech/Connection/ServiceDefinition/speech-v1.json b/Speech/src/Connection/ServiceDefinition/speech-v1.json similarity index 100% rename from src/Speech/Connection/ServiceDefinition/speech-v1.json rename to Speech/src/Connection/ServiceDefinition/speech-v1.json diff --git a/src/Speech/Operation.php b/Speech/src/Operation.php similarity index 100% rename from src/Speech/Operation.php rename to Speech/src/Operation.php diff --git a/src/Speech/Result.php b/Speech/src/Result.php similarity index 100% rename from src/Speech/Result.php rename to Speech/src/Result.php diff --git a/src/Speech/SpeechClient.php b/Speech/src/SpeechClient.php similarity index 100% rename from src/Speech/SpeechClient.php rename to Speech/src/SpeechClient.php diff --git a/src/Speech/V1/Gapic/SpeechGapicClient.php b/Speech/src/V1/Gapic/SpeechGapicClient.php similarity index 100% rename from src/Speech/V1/Gapic/SpeechGapicClient.php rename to Speech/src/V1/Gapic/SpeechGapicClient.php diff --git a/src/Speech/V1/README.md b/Speech/src/V1/README.md similarity index 100% rename from src/Speech/V1/README.md rename to Speech/src/V1/README.md diff --git a/src/Speech/V1/SpeechClient.php b/Speech/src/V1/SpeechClient.php similarity index 100% rename from src/Speech/V1/SpeechClient.php rename to Speech/src/V1/SpeechClient.php diff --git a/src/Speech/V1/resources/speech_client_config.json b/Speech/src/V1/resources/speech_client_config.json similarity index 100% rename from src/Speech/V1/resources/speech_client_config.json rename to Speech/src/V1/resources/speech_client_config.json diff --git a/src/Speech/V1/resources/speech_descriptor_config.php b/Speech/src/V1/resources/speech_descriptor_config.php similarity index 100% rename from src/Speech/V1/resources/speech_descriptor_config.php rename to Speech/src/V1/resources/speech_descriptor_config.php diff --git a/src/Speech/V1/resources/speech_rest_client_config.php b/Speech/src/V1/resources/speech_rest_client_config.php similarity index 100% rename from src/Speech/V1/resources/speech_rest_client_config.php rename to Speech/src/V1/resources/speech_rest_client_config.php diff --git a/src/Speech/V1beta1/Gapic/SpeechGapicClient.php b/Speech/src/V1beta1/Gapic/SpeechGapicClient.php similarity index 100% rename from src/Speech/V1beta1/Gapic/SpeechGapicClient.php rename to Speech/src/V1beta1/Gapic/SpeechGapicClient.php diff --git a/src/Speech/V1beta1/README.md b/Speech/src/V1beta1/README.md similarity index 100% rename from src/Speech/V1beta1/README.md rename to Speech/src/V1beta1/README.md diff --git a/src/Speech/V1beta1/SpeechClient.php b/Speech/src/V1beta1/SpeechClient.php similarity index 100% rename from src/Speech/V1beta1/SpeechClient.php rename to Speech/src/V1beta1/SpeechClient.php diff --git a/src/Speech/V1beta1/resources/speech_client_config.json b/Speech/src/V1beta1/resources/speech_client_config.json similarity index 100% rename from src/Speech/V1beta1/resources/speech_client_config.json rename to Speech/src/V1beta1/resources/speech_client_config.json diff --git a/src/Speech/V1beta1/resources/speech_descriptor_config.php b/Speech/src/V1beta1/resources/speech_descriptor_config.php similarity index 100% rename from src/Speech/V1beta1/resources/speech_descriptor_config.php rename to Speech/src/V1beta1/resources/speech_descriptor_config.php diff --git a/src/Speech/V1beta1/resources/speech_rest_client_config.php b/Speech/src/V1beta1/resources/speech_rest_client_config.php similarity index 100% rename from src/Speech/V1beta1/resources/speech_rest_client_config.php rename to Speech/src/V1beta1/resources/speech_rest_client_config.php diff --git a/tests/snippets/Speech/OperationTest.php b/Speech/tests/snippets/OperationTest.php similarity index 100% rename from tests/snippets/Speech/OperationTest.php rename to Speech/tests/snippets/OperationTest.php diff --git a/tests/snippets/Speech/ResultTest.php b/Speech/tests/snippets/ResultTest.php similarity index 100% rename from tests/snippets/Speech/ResultTest.php rename to Speech/tests/snippets/ResultTest.php diff --git a/tests/snippets/Speech/SpeechClientTest.php b/Speech/tests/snippets/SpeechClientTest.php similarity index 100% rename from tests/snippets/Speech/SpeechClientTest.php rename to Speech/tests/snippets/SpeechClientTest.php diff --git a/Speech/tests/snippets/bootstrap.php b/Speech/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Speech/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/snippets/fixtures/Speech/demo.flac b/Speech/tests/snippets/fixtures/demo.flac similarity index 100% rename from tests/snippets/fixtures/Speech/demo.flac rename to Speech/tests/snippets/fixtures/demo.flac diff --git a/Speech/tests/system/bootstrap.php b/Speech/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Speech/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Storage/phpunit-system.xml.dist b/Storage/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Storage/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Storage/phpunit.xml.dist b/Storage/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Storage/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Storage/Acl.php b/Storage/src/Acl.php similarity index 100% rename from src/Storage/Acl.php rename to Storage/src/Acl.php diff --git a/src/Storage/Bucket.php b/Storage/src/Bucket.php similarity index 100% rename from src/Storage/Bucket.php rename to Storage/src/Bucket.php diff --git a/src/Storage/Connection/ConnectionInterface.php b/Storage/src/Connection/ConnectionInterface.php similarity index 100% rename from src/Storage/Connection/ConnectionInterface.php rename to Storage/src/Connection/ConnectionInterface.php diff --git a/src/Storage/Connection/IamBucket.php b/Storage/src/Connection/IamBucket.php similarity index 100% rename from src/Storage/Connection/IamBucket.php rename to Storage/src/Connection/IamBucket.php diff --git a/src/Storage/Connection/Rest.php b/Storage/src/Connection/Rest.php similarity index 100% rename from src/Storage/Connection/Rest.php rename to Storage/src/Connection/Rest.php diff --git a/src/Storage/Connection/ServiceDefinition/storage-v1.json b/Storage/src/Connection/ServiceDefinition/storage-v1.json similarity index 100% rename from src/Storage/Connection/ServiceDefinition/storage-v1.json rename to Storage/src/Connection/ServiceDefinition/storage-v1.json diff --git a/src/Storage/EncryptionTrait.php b/Storage/src/EncryptionTrait.php similarity index 100% rename from src/Storage/EncryptionTrait.php rename to Storage/src/EncryptionTrait.php diff --git a/src/Storage/Notification.php b/Storage/src/Notification.php similarity index 100% rename from src/Storage/Notification.php rename to Storage/src/Notification.php diff --git a/src/Storage/ObjectIterator.php b/Storage/src/ObjectIterator.php similarity index 100% rename from src/Storage/ObjectIterator.php rename to Storage/src/ObjectIterator.php diff --git a/src/Storage/ObjectPageIterator.php b/Storage/src/ObjectPageIterator.php similarity index 100% rename from src/Storage/ObjectPageIterator.php rename to Storage/src/ObjectPageIterator.php diff --git a/src/Storage/ReadStream.php b/Storage/src/ReadStream.php similarity index 100% rename from src/Storage/ReadStream.php rename to Storage/src/ReadStream.php diff --git a/src/Storage/StorageClient.php b/Storage/src/StorageClient.php similarity index 100% rename from src/Storage/StorageClient.php rename to Storage/src/StorageClient.php diff --git a/src/Storage/StorageObject.php b/Storage/src/StorageObject.php similarity index 100% rename from src/Storage/StorageObject.php rename to Storage/src/StorageObject.php diff --git a/src/Storage/StreamWrapper.php b/Storage/src/StreamWrapper.php similarity index 100% rename from src/Storage/StreamWrapper.php rename to Storage/src/StreamWrapper.php diff --git a/src/Storage/WriteStream.php b/Storage/src/WriteStream.php similarity index 100% rename from src/Storage/WriteStream.php rename to Storage/src/WriteStream.php diff --git a/tests/snippets/Storage/AclTest.php b/Storage/tests/snippets/AclTest.php similarity index 100% rename from tests/snippets/Storage/AclTest.php rename to Storage/tests/snippets/AclTest.php diff --git a/tests/snippets/Storage/BucketTest.php b/Storage/tests/snippets/BucketTest.php similarity index 100% rename from tests/snippets/Storage/BucketTest.php rename to Storage/tests/snippets/BucketTest.php diff --git a/tests/snippets/Storage/NotificationTest.php b/Storage/tests/snippets/NotificationTest.php similarity index 100% rename from tests/snippets/Storage/NotificationTest.php rename to Storage/tests/snippets/NotificationTest.php diff --git a/tests/snippets/Storage/StorageClientTest.php b/Storage/tests/snippets/StorageClientTest.php similarity index 100% rename from tests/snippets/Storage/StorageClientTest.php rename to Storage/tests/snippets/StorageClientTest.php diff --git a/tests/snippets/Storage/StorageObjectTest.php b/Storage/tests/snippets/StorageObjectTest.php similarity index 100% rename from tests/snippets/Storage/StorageObjectTest.php rename to Storage/tests/snippets/StorageObjectTest.php diff --git a/Storage/tests/snippets/bootstrap.php b/Storage/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Storage/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Storage/ManageAclTest.php b/Storage/tests/system/ManageAclTest.php similarity index 100% rename from tests/system/Storage/ManageAclTest.php rename to Storage/tests/system/ManageAclTest.php diff --git a/tests/system/Storage/ManageBucketsTest.php b/Storage/tests/system/ManageBucketsTest.php similarity index 100% rename from tests/system/Storage/ManageBucketsTest.php rename to Storage/tests/system/ManageBucketsTest.php diff --git a/tests/system/Storage/ManageNotificationsTest.php b/Storage/tests/system/ManageNotificationsTest.php similarity index 100% rename from tests/system/Storage/ManageNotificationsTest.php rename to Storage/tests/system/ManageNotificationsTest.php diff --git a/tests/system/Storage/ManageObjectsTest.php b/Storage/tests/system/ManageObjectsTest.php similarity index 100% rename from tests/system/Storage/ManageObjectsTest.php rename to Storage/tests/system/ManageObjectsTest.php diff --git a/tests/system/Storage/README.md b/Storage/tests/system/README.md similarity index 100% rename from tests/system/Storage/README.md rename to Storage/tests/system/README.md diff --git a/tests/system/Storage/RequesterPaysTest.php b/Storage/tests/system/RequesterPaysTest.php similarity index 100% rename from tests/system/Storage/RequesterPaysTest.php rename to Storage/tests/system/RequesterPaysTest.php diff --git a/tests/system/Storage/SignedUrlTest.php b/Storage/tests/system/SignedUrlTest.php similarity index 100% rename from tests/system/Storage/SignedUrlTest.php rename to Storage/tests/system/SignedUrlTest.php diff --git a/tests/system/Storage/StorageTestCase.php b/Storage/tests/system/StorageTestCase.php similarity index 100% rename from tests/system/Storage/StorageTestCase.php rename to Storage/tests/system/StorageTestCase.php diff --git a/tests/system/Storage/StreamWrapper/DirectoryTest.php b/Storage/tests/system/StreamWrapper/DirectoryTest.php similarity index 100% rename from tests/system/Storage/StreamWrapper/DirectoryTest.php rename to Storage/tests/system/StreamWrapper/DirectoryTest.php diff --git a/tests/system/Storage/StreamWrapper/ImageTest.php b/Storage/tests/system/StreamWrapper/ImageTest.php similarity index 100% rename from tests/system/Storage/StreamWrapper/ImageTest.php rename to Storage/tests/system/StreamWrapper/ImageTest.php diff --git a/tests/system/Storage/StreamWrapper/ReadTest.php b/Storage/tests/system/StreamWrapper/ReadTest.php similarity index 100% rename from tests/system/Storage/StreamWrapper/ReadTest.php rename to Storage/tests/system/StreamWrapper/ReadTest.php diff --git a/tests/system/Storage/StreamWrapper/RenameTest.php b/Storage/tests/system/StreamWrapper/RenameTest.php similarity index 100% rename from tests/system/Storage/StreamWrapper/RenameTest.php rename to Storage/tests/system/StreamWrapper/RenameTest.php diff --git a/tests/system/Storage/StreamWrapper/StreamWrapperTestCase.php b/Storage/tests/system/StreamWrapper/StreamWrapperTestCase.php similarity index 100% rename from tests/system/Storage/StreamWrapper/StreamWrapperTestCase.php rename to Storage/tests/system/StreamWrapper/StreamWrapperTestCase.php diff --git a/tests/system/Storage/StreamWrapper/UrlStatTest.php b/Storage/tests/system/StreamWrapper/UrlStatTest.php similarity index 100% rename from tests/system/Storage/StreamWrapper/UrlStatTest.php rename to Storage/tests/system/StreamWrapper/UrlStatTest.php diff --git a/tests/system/Storage/StreamWrapper/WriteTest.php b/Storage/tests/system/StreamWrapper/WriteTest.php similarity index 100% rename from tests/system/Storage/StreamWrapper/WriteTest.php rename to Storage/tests/system/StreamWrapper/WriteTest.php diff --git a/tests/system/Storage/UploadObjectsTest.php b/Storage/tests/system/UploadObjectsTest.php similarity index 100% rename from tests/system/Storage/UploadObjectsTest.php rename to Storage/tests/system/UploadObjectsTest.php diff --git a/Storage/tests/system/bootstrap.php b/Storage/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Storage/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Trace/phpunit-system.xml.dist b/Trace/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Trace/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Trace/phpunit.xml.dist b/Trace/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Trace/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Trace/Annotation.php b/Trace/src/Annotation.php similarity index 100% rename from src/Trace/Annotation.php rename to Trace/src/Annotation.php diff --git a/src/Trace/AttributeTrait.php b/Trace/src/AttributeTrait.php similarity index 100% rename from src/Trace/AttributeTrait.php rename to Trace/src/AttributeTrait.php diff --git a/src/Trace/Attributes.php b/Trace/src/Attributes.php similarity index 100% rename from src/Trace/Attributes.php rename to Trace/src/Attributes.php diff --git a/src/Trace/Connection/ConnectionInterface.php b/Trace/src/Connection/ConnectionInterface.php similarity index 100% rename from src/Trace/Connection/ConnectionInterface.php rename to Trace/src/Connection/ConnectionInterface.php diff --git a/src/Trace/Connection/Rest.php b/Trace/src/Connection/Rest.php similarity index 100% rename from src/Trace/Connection/Rest.php rename to Trace/src/Connection/Rest.php diff --git a/src/Trace/Connection/ServiceDefinition/trace-v2.json b/Trace/src/Connection/ServiceDefinition/trace-v2.json similarity index 100% rename from src/Trace/Connection/ServiceDefinition/trace-v2.json rename to Trace/src/Connection/ServiceDefinition/trace-v2.json diff --git a/src/Trace/Link.php b/Trace/src/Link.php similarity index 100% rename from src/Trace/Link.php rename to Trace/src/Link.php diff --git a/src/Trace/MessageEvent.php b/Trace/src/MessageEvent.php similarity index 100% rename from src/Trace/MessageEvent.php rename to Trace/src/MessageEvent.php diff --git a/src/Trace/Span.php b/Trace/src/Span.php similarity index 100% rename from src/Trace/Span.php rename to Trace/src/Span.php diff --git a/src/Trace/StackTrace.php b/Trace/src/StackTrace.php similarity index 100% rename from src/Trace/StackTrace.php rename to Trace/src/StackTrace.php diff --git a/src/Trace/Status.php b/Trace/src/Status.php similarity index 100% rename from src/Trace/Status.php rename to Trace/src/Status.php diff --git a/src/Trace/TimeEvent.php b/Trace/src/TimeEvent.php similarity index 100% rename from src/Trace/TimeEvent.php rename to Trace/src/TimeEvent.php diff --git a/src/Trace/TimestampTrait.php b/Trace/src/TimestampTrait.php similarity index 100% rename from src/Trace/TimestampTrait.php rename to Trace/src/TimestampTrait.php diff --git a/src/Trace/Trace.php b/Trace/src/Trace.php similarity index 100% rename from src/Trace/Trace.php rename to Trace/src/Trace.php diff --git a/src/Trace/TraceClient.php b/Trace/src/TraceClient.php similarity index 100% rename from src/Trace/TraceClient.php rename to Trace/src/TraceClient.php diff --git a/src/Trace/V2/Gapic/TraceServiceGapicClient.php b/Trace/src/V2/Gapic/TraceServiceGapicClient.php similarity index 100% rename from src/Trace/V2/Gapic/TraceServiceGapicClient.php rename to Trace/src/V2/Gapic/TraceServiceGapicClient.php diff --git a/src/Trace/V2/README.md b/Trace/src/V2/README.md similarity index 100% rename from src/Trace/V2/README.md rename to Trace/src/V2/README.md diff --git a/src/Trace/V2/TraceServiceClient.php b/Trace/src/V2/TraceServiceClient.php similarity index 100% rename from src/Trace/V2/TraceServiceClient.php rename to Trace/src/V2/TraceServiceClient.php diff --git a/src/Trace/V2/resources/trace_service_client_config.json b/Trace/src/V2/resources/trace_service_client_config.json similarity index 100% rename from src/Trace/V2/resources/trace_service_client_config.json rename to Trace/src/V2/resources/trace_service_client_config.json diff --git a/src/Trace/V2/resources/trace_service_descriptor_config.php b/Trace/src/V2/resources/trace_service_descriptor_config.php similarity index 100% rename from src/Trace/V2/resources/trace_service_descriptor_config.php rename to Trace/src/V2/resources/trace_service_descriptor_config.php diff --git a/src/Trace/V2/resources/trace_service_rest_client_config.php b/Trace/src/V2/resources/trace_service_rest_client_config.php similarity index 100% rename from src/Trace/V2/resources/trace_service_rest_client_config.php rename to Trace/src/V2/resources/trace_service_rest_client_config.php diff --git a/tests/snippets/Trace/AnnotationTest.php b/Trace/tests/snippets/AnnotationTest.php similarity index 100% rename from tests/snippets/Trace/AnnotationTest.php rename to Trace/tests/snippets/AnnotationTest.php diff --git a/tests/snippets/Trace/AttributesTest.php b/Trace/tests/snippets/AttributesTest.php similarity index 100% rename from tests/snippets/Trace/AttributesTest.php rename to Trace/tests/snippets/AttributesTest.php diff --git a/tests/snippets/Trace/LinkTest.php b/Trace/tests/snippets/LinkTest.php similarity index 100% rename from tests/snippets/Trace/LinkTest.php rename to Trace/tests/snippets/LinkTest.php diff --git a/tests/snippets/Trace/MessageEventTest.php b/Trace/tests/snippets/MessageEventTest.php similarity index 100% rename from tests/snippets/Trace/MessageEventTest.php rename to Trace/tests/snippets/MessageEventTest.php diff --git a/tests/snippets/Trace/SpanTest.php b/Trace/tests/snippets/SpanTest.php similarity index 100% rename from tests/snippets/Trace/SpanTest.php rename to Trace/tests/snippets/SpanTest.php diff --git a/tests/snippets/Trace/StackTraceTest.php b/Trace/tests/snippets/StackTraceTest.php similarity index 100% rename from tests/snippets/Trace/StackTraceTest.php rename to Trace/tests/snippets/StackTraceTest.php diff --git a/tests/snippets/Trace/StatusTest.php b/Trace/tests/snippets/StatusTest.php similarity index 100% rename from tests/snippets/Trace/StatusTest.php rename to Trace/tests/snippets/StatusTest.php diff --git a/tests/snippets/Trace/TraceClientTest.php b/Trace/tests/snippets/TraceClientTest.php similarity index 100% rename from tests/snippets/Trace/TraceClientTest.php rename to Trace/tests/snippets/TraceClientTest.php diff --git a/tests/snippets/Trace/TraceTest.php b/Trace/tests/snippets/TraceTest.php similarity index 100% rename from tests/snippets/Trace/TraceTest.php rename to Trace/tests/snippets/TraceTest.php diff --git a/Trace/tests/snippets/bootstrap.php b/Trace/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Trace/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Trace/BasicTest.php b/Trace/tests/system/BasicTest.php similarity index 100% rename from tests/system/Trace/BasicTest.php rename to Trace/tests/system/BasicTest.php diff --git a/Trace/tests/system/bootstrap.php b/Trace/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Trace/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Translate/phpunit-system.xml.dist b/Translate/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Translate/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Translate/phpunit.xml.dist b/Translate/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Translate/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Translate/Connection/ConnectionInterface.php b/Translate/src/Connection/ConnectionInterface.php similarity index 100% rename from src/Translate/Connection/ConnectionInterface.php rename to Translate/src/Connection/ConnectionInterface.php diff --git a/src/Translate/Connection/Rest.php b/Translate/src/Connection/Rest.php similarity index 100% rename from src/Translate/Connection/Rest.php rename to Translate/src/Connection/Rest.php diff --git a/src/Translate/Connection/ServiceDefinition/translate-v2.json b/Translate/src/Connection/ServiceDefinition/translate-v2.json similarity index 100% rename from src/Translate/Connection/ServiceDefinition/translate-v2.json rename to Translate/src/Connection/ServiceDefinition/translate-v2.json diff --git a/src/Translate/TranslateClient.php b/Translate/src/TranslateClient.php similarity index 100% rename from src/Translate/TranslateClient.php rename to Translate/src/TranslateClient.php diff --git a/tests/snippets/Translate/TranslateClientTest.php b/Translate/tests/snippets/TranslateClientTest.php similarity index 100% rename from tests/snippets/Translate/TranslateClientTest.php rename to Translate/tests/snippets/TranslateClientTest.php diff --git a/Translate/tests/snippets/bootstrap.php b/Translate/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Translate/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Translate/TranslateTest.php b/Translate/tests/system/TranslateTest.php similarity index 100% rename from tests/system/Translate/TranslateTest.php rename to Translate/tests/system/TranslateTest.php diff --git a/tests/system/Translate/TranslateTestCase.php b/Translate/tests/system/TranslateTestCase.php similarity index 100% rename from tests/system/Translate/TranslateTestCase.php rename to Translate/tests/system/TranslateTestCase.php diff --git a/Translate/tests/system/bootstrap.php b/Translate/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Translate/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/VideoIntelligence/phpunit-system.xml.dist b/VideoIntelligence/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/VideoIntelligence/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/VideoIntelligence/phpunit.xml.dist b/VideoIntelligence/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/VideoIntelligence/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/VideoIntelligence/V1/Gapic/VideoIntelligenceServiceGapicClient.php b/VideoIntelligence/src/V1/Gapic/VideoIntelligenceServiceGapicClient.php similarity index 100% rename from src/VideoIntelligence/V1/Gapic/VideoIntelligenceServiceGapicClient.php rename to VideoIntelligence/src/V1/Gapic/VideoIntelligenceServiceGapicClient.php diff --git a/src/VideoIntelligence/V1/README.md b/VideoIntelligence/src/V1/README.md similarity index 100% rename from src/VideoIntelligence/V1/README.md rename to VideoIntelligence/src/V1/README.md diff --git a/src/VideoIntelligence/V1/VideoIntelligenceServiceClient.php b/VideoIntelligence/src/V1/VideoIntelligenceServiceClient.php similarity index 100% rename from src/VideoIntelligence/V1/VideoIntelligenceServiceClient.php rename to VideoIntelligence/src/V1/VideoIntelligenceServiceClient.php diff --git a/src/VideoIntelligence/V1/resources/video_intelligence_service_client_config.json b/VideoIntelligence/src/V1/resources/video_intelligence_service_client_config.json similarity index 100% rename from src/VideoIntelligence/V1/resources/video_intelligence_service_client_config.json rename to VideoIntelligence/src/V1/resources/video_intelligence_service_client_config.json diff --git a/src/VideoIntelligence/V1/resources/video_intelligence_service_descriptor_config.php b/VideoIntelligence/src/V1/resources/video_intelligence_service_descriptor_config.php similarity index 100% rename from src/VideoIntelligence/V1/resources/video_intelligence_service_descriptor_config.php rename to VideoIntelligence/src/V1/resources/video_intelligence_service_descriptor_config.php diff --git a/src/VideoIntelligence/V1/resources/video_intelligence_service_rest_client_config.php b/VideoIntelligence/src/V1/resources/video_intelligence_service_rest_client_config.php similarity index 100% rename from src/VideoIntelligence/V1/resources/video_intelligence_service_rest_client_config.php rename to VideoIntelligence/src/V1/resources/video_intelligence_service_rest_client_config.php diff --git a/src/VideoIntelligence/V1beta1/Gapic/VideoIntelligenceServiceGapicClient.php b/VideoIntelligence/src/V1beta1/Gapic/VideoIntelligenceServiceGapicClient.php similarity index 100% rename from src/VideoIntelligence/V1beta1/Gapic/VideoIntelligenceServiceGapicClient.php rename to VideoIntelligence/src/V1beta1/Gapic/VideoIntelligenceServiceGapicClient.php diff --git a/src/VideoIntelligence/V1beta1/README.md b/VideoIntelligence/src/V1beta1/README.md similarity index 100% rename from src/VideoIntelligence/V1beta1/README.md rename to VideoIntelligence/src/V1beta1/README.md diff --git a/src/VideoIntelligence/V1beta1/VideoIntelligenceServiceClient.php b/VideoIntelligence/src/V1beta1/VideoIntelligenceServiceClient.php similarity index 100% rename from src/VideoIntelligence/V1beta1/VideoIntelligenceServiceClient.php rename to VideoIntelligence/src/V1beta1/VideoIntelligenceServiceClient.php diff --git a/src/VideoIntelligence/V1beta1/resources/video_intelligence_service_client_config.json b/VideoIntelligence/src/V1beta1/resources/video_intelligence_service_client_config.json similarity index 100% rename from src/VideoIntelligence/V1beta1/resources/video_intelligence_service_client_config.json rename to VideoIntelligence/src/V1beta1/resources/video_intelligence_service_client_config.json diff --git a/src/VideoIntelligence/V1beta1/resources/video_intelligence_service_descriptor_config.php b/VideoIntelligence/src/V1beta1/resources/video_intelligence_service_descriptor_config.php similarity index 100% rename from src/VideoIntelligence/V1beta1/resources/video_intelligence_service_descriptor_config.php rename to VideoIntelligence/src/V1beta1/resources/video_intelligence_service_descriptor_config.php diff --git a/src/VideoIntelligence/V1beta1/resources/video_intelligence_service_rest_client_config.php b/VideoIntelligence/src/V1beta1/resources/video_intelligence_service_rest_client_config.php similarity index 100% rename from src/VideoIntelligence/V1beta1/resources/video_intelligence_service_rest_client_config.php rename to VideoIntelligence/src/V1beta1/resources/video_intelligence_service_rest_client_config.php diff --git a/src/VideoIntelligence/V1beta2/Gapic/VideoIntelligenceServiceGapicClient.php b/VideoIntelligence/src/V1beta2/Gapic/VideoIntelligenceServiceGapicClient.php similarity index 100% rename from src/VideoIntelligence/V1beta2/Gapic/VideoIntelligenceServiceGapicClient.php rename to VideoIntelligence/src/V1beta2/Gapic/VideoIntelligenceServiceGapicClient.php diff --git a/src/VideoIntelligence/V1beta2/README.md b/VideoIntelligence/src/V1beta2/README.md similarity index 100% rename from src/VideoIntelligence/V1beta2/README.md rename to VideoIntelligence/src/V1beta2/README.md diff --git a/src/VideoIntelligence/V1beta2/VideoIntelligenceServiceClient.php b/VideoIntelligence/src/V1beta2/VideoIntelligenceServiceClient.php similarity index 100% rename from src/VideoIntelligence/V1beta2/VideoIntelligenceServiceClient.php rename to VideoIntelligence/src/V1beta2/VideoIntelligenceServiceClient.php diff --git a/src/VideoIntelligence/V1beta2/resources/video_intelligence_service_client_config.json b/VideoIntelligence/src/V1beta2/resources/video_intelligence_service_client_config.json similarity index 100% rename from src/VideoIntelligence/V1beta2/resources/video_intelligence_service_client_config.json rename to VideoIntelligence/src/V1beta2/resources/video_intelligence_service_client_config.json diff --git a/src/VideoIntelligence/V1beta2/resources/video_intelligence_service_descriptor_config.php b/VideoIntelligence/src/V1beta2/resources/video_intelligence_service_descriptor_config.php similarity index 100% rename from src/VideoIntelligence/V1beta2/resources/video_intelligence_service_descriptor_config.php rename to VideoIntelligence/src/V1beta2/resources/video_intelligence_service_descriptor_config.php diff --git a/src/VideoIntelligence/V1beta2/resources/video_intelligence_service_rest_client_config.php b/VideoIntelligence/src/V1beta2/resources/video_intelligence_service_rest_client_config.php similarity index 100% rename from src/VideoIntelligence/V1beta2/resources/video_intelligence_service_rest_client_config.php rename to VideoIntelligence/src/V1beta2/resources/video_intelligence_service_rest_client_config.php diff --git a/VideoIntelligence/tests/snippets/bootstrap.php b/VideoIntelligence/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/VideoIntelligence/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/VideoIntelligence/tests/system/bootstrap.php b/VideoIntelligence/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/VideoIntelligence/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + + + + + */tests/snippets + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Vision/phpunit-system.xml.dist b/Vision/phpunit-system.xml.dist new file mode 100644 index 000000000000..adedf6efa577 --- /dev/null +++ b/Vision/phpunit-system.xml.dist @@ -0,0 +1,16 @@ + + + + + */tests/system + + + + + src + + src/*/V[!a-zA-Z]* + + + + diff --git a/Vision/phpunit.xml.dist b/Vision/phpunit.xml.dist new file mode 100644 index 000000000000..046b30b6942b --- /dev/null +++ b/Vision/phpunit.xml.dist @@ -0,0 +1,22 @@ + + + + + */tests/unit + + + + + src + + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* + src/*/*/*/V[!a-zA-Z]* + src/Core/Testing + + + + + + + diff --git a/src/Vision/Annotation.php b/Vision/src/Annotation.php similarity index 100% rename from src/Vision/Annotation.php rename to Vision/src/Annotation.php diff --git a/src/Vision/Annotation/AbstractFeature.php b/Vision/src/Annotation/AbstractFeature.php similarity index 100% rename from src/Vision/Annotation/AbstractFeature.php rename to Vision/src/Annotation/AbstractFeature.php diff --git a/src/Vision/Annotation/CropHint.php b/Vision/src/Annotation/CropHint.php similarity index 100% rename from src/Vision/Annotation/CropHint.php rename to Vision/src/Annotation/CropHint.php diff --git a/src/Vision/Annotation/Document.php b/Vision/src/Annotation/Document.php similarity index 100% rename from src/Vision/Annotation/Document.php rename to Vision/src/Annotation/Document.php diff --git a/src/Vision/Annotation/Entity.php b/Vision/src/Annotation/Entity.php similarity index 100% rename from src/Vision/Annotation/Entity.php rename to Vision/src/Annotation/Entity.php diff --git a/src/Vision/Annotation/Face.php b/Vision/src/Annotation/Face.php similarity index 100% rename from src/Vision/Annotation/Face.php rename to Vision/src/Annotation/Face.php diff --git a/src/Vision/Annotation/Face/Landmarks.php b/Vision/src/Annotation/Face/Landmarks.php similarity index 100% rename from src/Vision/Annotation/Face/Landmarks.php rename to Vision/src/Annotation/Face/Landmarks.php diff --git a/src/Vision/Annotation/FeatureInterface.php b/Vision/src/Annotation/FeatureInterface.php similarity index 100% rename from src/Vision/Annotation/FeatureInterface.php rename to Vision/src/Annotation/FeatureInterface.php diff --git a/src/Vision/Annotation/ImageProperties.php b/Vision/src/Annotation/ImageProperties.php similarity index 100% rename from src/Vision/Annotation/ImageProperties.php rename to Vision/src/Annotation/ImageProperties.php diff --git a/src/Vision/Annotation/LikelihoodTrait.php b/Vision/src/Annotation/LikelihoodTrait.php similarity index 100% rename from src/Vision/Annotation/LikelihoodTrait.php rename to Vision/src/Annotation/LikelihoodTrait.php diff --git a/src/Vision/Annotation/SafeSearch.php b/Vision/src/Annotation/SafeSearch.php similarity index 100% rename from src/Vision/Annotation/SafeSearch.php rename to Vision/src/Annotation/SafeSearch.php diff --git a/src/Vision/Annotation/Web.php b/Vision/src/Annotation/Web.php similarity index 100% rename from src/Vision/Annotation/Web.php rename to Vision/src/Annotation/Web.php diff --git a/src/Vision/Annotation/Web/WebEntity.php b/Vision/src/Annotation/Web/WebEntity.php similarity index 100% rename from src/Vision/Annotation/Web/WebEntity.php rename to Vision/src/Annotation/Web/WebEntity.php diff --git a/src/Vision/Annotation/Web/WebImage.php b/Vision/src/Annotation/Web/WebImage.php similarity index 100% rename from src/Vision/Annotation/Web/WebImage.php rename to Vision/src/Annotation/Web/WebImage.php diff --git a/src/Vision/Annotation/Web/WebPage.php b/Vision/src/Annotation/Web/WebPage.php similarity index 100% rename from src/Vision/Annotation/Web/WebPage.php rename to Vision/src/Annotation/Web/WebPage.php diff --git a/src/Vision/Connection/ConnectionInterface.php b/Vision/src/Connection/ConnectionInterface.php similarity index 100% rename from src/Vision/Connection/ConnectionInterface.php rename to Vision/src/Connection/ConnectionInterface.php diff --git a/src/Vision/Connection/Rest.php b/Vision/src/Connection/Rest.php similarity index 100% rename from src/Vision/Connection/Rest.php rename to Vision/src/Connection/Rest.php diff --git a/src/Vision/Connection/ServiceDefinition/vision-v1.json b/Vision/src/Connection/ServiceDefinition/vision-v1.json similarity index 100% rename from src/Vision/Connection/ServiceDefinition/vision-v1.json rename to Vision/src/Connection/ServiceDefinition/vision-v1.json diff --git a/src/Vision/Image.php b/Vision/src/Image.php similarity index 100% rename from src/Vision/Image.php rename to Vision/src/Image.php diff --git a/src/Vision/V1/Gapic/ImageAnnotatorGapicClient.php b/Vision/src/V1/Gapic/ImageAnnotatorGapicClient.php similarity index 100% rename from src/Vision/V1/Gapic/ImageAnnotatorGapicClient.php rename to Vision/src/V1/Gapic/ImageAnnotatorGapicClient.php diff --git a/src/Vision/V1/ImageAnnotatorClient.php b/Vision/src/V1/ImageAnnotatorClient.php similarity index 100% rename from src/Vision/V1/ImageAnnotatorClient.php rename to Vision/src/V1/ImageAnnotatorClient.php diff --git a/src/Vision/V1/README.md b/Vision/src/V1/README.md similarity index 100% rename from src/Vision/V1/README.md rename to Vision/src/V1/README.md diff --git a/src/Vision/V1/resources/image_annotator_client_config.json b/Vision/src/V1/resources/image_annotator_client_config.json similarity index 100% rename from src/Vision/V1/resources/image_annotator_client_config.json rename to Vision/src/V1/resources/image_annotator_client_config.json diff --git a/src/Vision/V1/resources/image_annotator_descriptor_config.php b/Vision/src/V1/resources/image_annotator_descriptor_config.php similarity index 100% rename from src/Vision/V1/resources/image_annotator_descriptor_config.php rename to Vision/src/V1/resources/image_annotator_descriptor_config.php diff --git a/src/Vision/V1/resources/image_annotator_rest_client_config.php b/Vision/src/V1/resources/image_annotator_rest_client_config.php similarity index 100% rename from src/Vision/V1/resources/image_annotator_rest_client_config.php rename to Vision/src/V1/resources/image_annotator_rest_client_config.php diff --git a/src/Vision/VisionClient.php b/Vision/src/VisionClient.php similarity index 100% rename from src/Vision/VisionClient.php rename to Vision/src/VisionClient.php diff --git a/tests/snippets/Vision/Annotation/AbstractFeatureTest.php b/Vision/tests/snippets/Annotation/AbstractFeatureTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/AbstractFeatureTest.php rename to Vision/tests/snippets/Annotation/AbstractFeatureTest.php diff --git a/tests/snippets/Vision/Annotation/CropHintTest.php b/Vision/tests/snippets/Annotation/CropHintTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/CropHintTest.php rename to Vision/tests/snippets/Annotation/CropHintTest.php diff --git a/tests/snippets/Vision/Annotation/DocumentTest.php b/Vision/tests/snippets/Annotation/DocumentTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/DocumentTest.php rename to Vision/tests/snippets/Annotation/DocumentTest.php diff --git a/tests/snippets/Vision/Annotation/EntityTest.php b/Vision/tests/snippets/Annotation/EntityTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/EntityTest.php rename to Vision/tests/snippets/Annotation/EntityTest.php diff --git a/tests/snippets/Vision/Annotation/Face/LandmarksTest.php b/Vision/tests/snippets/Annotation/Face/LandmarksTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/Face/LandmarksTest.php rename to Vision/tests/snippets/Annotation/Face/LandmarksTest.php diff --git a/tests/snippets/Vision/Annotation/FaceTest.php b/Vision/tests/snippets/Annotation/FaceTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/FaceTest.php rename to Vision/tests/snippets/Annotation/FaceTest.php diff --git a/tests/snippets/Vision/Annotation/ImagePropertiesTest.php b/Vision/tests/snippets/Annotation/ImagePropertiesTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/ImagePropertiesTest.php rename to Vision/tests/snippets/Annotation/ImagePropertiesTest.php diff --git a/tests/snippets/Vision/Annotation/SafeSearchTest.php b/Vision/tests/snippets/Annotation/SafeSearchTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/SafeSearchTest.php rename to Vision/tests/snippets/Annotation/SafeSearchTest.php diff --git a/tests/snippets/Vision/Annotation/Web/WebEntityTest.php b/Vision/tests/snippets/Annotation/Web/WebEntityTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/Web/WebEntityTest.php rename to Vision/tests/snippets/Annotation/Web/WebEntityTest.php diff --git a/tests/snippets/Vision/Annotation/Web/WebImageTest.php b/Vision/tests/snippets/Annotation/Web/WebImageTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/Web/WebImageTest.php rename to Vision/tests/snippets/Annotation/Web/WebImageTest.php diff --git a/tests/snippets/Vision/Annotation/Web/WebPageTest.php b/Vision/tests/snippets/Annotation/Web/WebPageTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/Web/WebPageTest.php rename to Vision/tests/snippets/Annotation/Web/WebPageTest.php diff --git a/tests/snippets/Vision/Annotation/WebTest.php b/Vision/tests/snippets/Annotation/WebTest.php similarity index 100% rename from tests/snippets/Vision/Annotation/WebTest.php rename to Vision/tests/snippets/Annotation/WebTest.php diff --git a/tests/snippets/Vision/AnnotationTest.php b/Vision/tests/snippets/AnnotationTest.php similarity index 100% rename from tests/snippets/Vision/AnnotationTest.php rename to Vision/tests/snippets/AnnotationTest.php diff --git a/tests/snippets/Vision/ImageTest.php b/Vision/tests/snippets/ImageTest.php similarity index 100% rename from tests/snippets/Vision/ImageTest.php rename to Vision/tests/snippets/ImageTest.php diff --git a/tests/snippets/Vision/VisionClientTest.php b/Vision/tests/snippets/VisionClientTest.php similarity index 100% rename from tests/snippets/Vision/VisionClientTest.php rename to Vision/tests/snippets/VisionClientTest.php diff --git a/Vision/tests/snippets/bootstrap.php b/Vision/tests/snippets/bootstrap.php new file mode 100644 index 000000000000..dfd13f96fd8f --- /dev/null +++ b/Vision/tests/snippets/bootstrap.php @@ -0,0 +1,64 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} + +$filteredIterator = new ExcludeFilter( + new GlobIterator(__DIR__ . '/../../*/src'), + ['dev/src'] +); + +$parser = new Parser; +$scanner = new Scanner($parser, $filteredIterator); +$coverage = new Coverage($scanner); +$coverage->buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); diff --git a/tests/system/Vision/AnnotationsTest.php b/Vision/tests/system/AnnotationsTest.php similarity index 100% rename from tests/system/Vision/AnnotationsTest.php rename to Vision/tests/system/AnnotationsTest.php diff --git a/tests/system/Vision/VisionTestCase.php b/Vision/tests/system/VisionTestCase.php similarity index 100% rename from tests/system/Vision/VisionTestCase.php rename to Vision/tests/system/VisionTestCase.php diff --git a/Vision/tests/system/bootstrap.php b/Vision/tests/system/bootstrap.php new file mode 100644 index 000000000000..bcbb5d681cca --- /dev/null +++ b/Vision/tests/system/bootstrap.php @@ -0,0 +1,43 @@ + Date: Wed, 31 Jan 2018 16:35:06 -0800 Subject: [PATCH 03/59] Fix Debugger snippets --- Debugger/src/MatchingFileIterator.php | 2 +- Debugger/src/SourceLocationResolver.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Debugger/src/MatchingFileIterator.php b/Debugger/src/MatchingFileIterator.php index 3cefe2028aba..992c3dbda1f5 100644 --- a/Debugger/src/MatchingFileIterator.php +++ b/Debugger/src/MatchingFileIterator.php @@ -23,7 +23,7 @@ * * Example: * ``` - * $iterator = new MatchingFileIterator('.', 'src/Debugger/DebuggerClient.php'); + * $iterator = new MatchingFileIterator('.', 'Debugger/src/DebuggerClient.php'); * $matches = iterator_to_array($iterator); * ``` * diff --git a/Debugger/src/SourceLocationResolver.php b/Debugger/src/SourceLocationResolver.php index 214ab013a220..904c182ea488 100644 --- a/Debugger/src/SourceLocationResolver.php +++ b/Debugger/src/SourceLocationResolver.php @@ -24,7 +24,7 @@ * * Example: * ``` - * $location = new SourceLocation('src/Debugger/DebuggerClient.php', 1); + * $location = new SourceLocation('Debugger/src/DebuggerClient.php', 1); * $resolver = new SourceLocationResolver(); * $resolvedLocation = $resolver->resolve($location); * ``` @@ -43,7 +43,7 @@ class SourceLocationResolver * * Example: * ``` - * $location = new SourceLocation('src/Debugger/DebuggerClient.php', 1); + * $location = new SourceLocation('Debugger/src/DebuggerClient.php', 1); * $resolver = new SourceLocationResolver(); * $resolvedLocation = $resolver->resolve($location); * ``` @@ -52,7 +52,7 @@ class SourceLocationResolver * * Example: * ``` - * $location = new SourceLocation('extra/folder/src/Debugger/DebuggerClient.php', 1); + * $location = new SourceLocation('extra/folder/Debugger/src/DebuggerClient.php', 1); * $resolver = new SourceLocationResolver(); * $resolvedLocation = $resolver->resolve($location); * ``` @@ -61,7 +61,7 @@ class SourceLocationResolver * * Example: * ``` - * $location = new SourceLocation('Debugger/DebuggerClient.php', 1); + * $location = new SourceLocation('src/DebuggerClient.php', 1); * $resolver = new SourceLocationResolver(); * $resolvedLocation = $resolver->resolve($location); * From 1b6a319c1b29bcf34380dd4b28b0c0de01a2735b Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Wed, 31 Jan 2018 16:35:26 -0800 Subject: [PATCH 04/59] Add github PR templates --- {src/BigQuery => BigQuery}/.github/pull_request_template.md | 0 {src/Bigtable => Bigtable}/.github/pull_request_template.md | 0 {src/Container => Container}/.github/pull_request_template.md | 0 {src/Core => Core}/.github/pull_request_template.md | 0 {src/Dataproc => Dataproc}/.github/pull_request_template.md | 0 {src/Datastore => Datastore}/.github/pull_request_template.md | 0 {src/Debugger => Debugger}/.github/pull_request_template.md | 0 {src/Dlp => Dlp}/.github/pull_request_template.md | 0 .../.github/pull_request_template.md | 0 {src/Firestore => Firestore}/.github/pull_request_template.md | 0 {src/Language => Language}/.github/pull_request_template.md | 0 {src/Logging => Logging}/.github/pull_request_template.md | 0 {src/Monitoring => Monitoring}/.github/pull_request_template.md | 0 {src/OsLogin => OsLogin}/.github/pull_request_template.md | 0 {src/PubSub => PubSub}/.github/pull_request_template.md | 0 {src/Spanner => Spanner}/.github/pull_request_template.md | 0 {src/Speech => Speech}/.github/pull_request_template.md | 0 {src/Storage => Storage}/.github/pull_request_template.md | 0 {src/Trace => Trace}/.github/pull_request_template.md | 0 {src/Translate => Translate}/.github/pull_request_template.md | 0 .../.github/pull_request_template.md | 0 {src/Vision => Vision}/.github/pull_request_template.md | 0 22 files changed, 0 insertions(+), 0 deletions(-) rename {src/BigQuery => BigQuery}/.github/pull_request_template.md (100%) rename {src/Bigtable => Bigtable}/.github/pull_request_template.md (100%) rename {src/Container => Container}/.github/pull_request_template.md (100%) rename {src/Core => Core}/.github/pull_request_template.md (100%) rename {src/Dataproc => Dataproc}/.github/pull_request_template.md (100%) rename {src/Datastore => Datastore}/.github/pull_request_template.md (100%) rename {src/Debugger => Debugger}/.github/pull_request_template.md (100%) rename {src/Dlp => Dlp}/.github/pull_request_template.md (100%) rename {src/ErrorReporting => ErrorReporting}/.github/pull_request_template.md (100%) rename {src/Firestore => Firestore}/.github/pull_request_template.md (100%) rename {src/Language => Language}/.github/pull_request_template.md (100%) rename {src/Logging => Logging}/.github/pull_request_template.md (100%) rename {src/Monitoring => Monitoring}/.github/pull_request_template.md (100%) rename {src/OsLogin => OsLogin}/.github/pull_request_template.md (100%) rename {src/PubSub => PubSub}/.github/pull_request_template.md (100%) rename {src/Spanner => Spanner}/.github/pull_request_template.md (100%) rename {src/Speech => Speech}/.github/pull_request_template.md (100%) rename {src/Storage => Storage}/.github/pull_request_template.md (100%) rename {src/Trace => Trace}/.github/pull_request_template.md (100%) rename {src/Translate => Translate}/.github/pull_request_template.md (100%) rename {src/VideoIntelligence => VideoIntelligence}/.github/pull_request_template.md (100%) rename {src/Vision => Vision}/.github/pull_request_template.md (100%) diff --git a/src/BigQuery/.github/pull_request_template.md b/BigQuery/.github/pull_request_template.md similarity index 100% rename from src/BigQuery/.github/pull_request_template.md rename to BigQuery/.github/pull_request_template.md diff --git a/src/Bigtable/.github/pull_request_template.md b/Bigtable/.github/pull_request_template.md similarity index 100% rename from src/Bigtable/.github/pull_request_template.md rename to Bigtable/.github/pull_request_template.md diff --git a/src/Container/.github/pull_request_template.md b/Container/.github/pull_request_template.md similarity index 100% rename from src/Container/.github/pull_request_template.md rename to Container/.github/pull_request_template.md diff --git a/src/Core/.github/pull_request_template.md b/Core/.github/pull_request_template.md similarity index 100% rename from src/Core/.github/pull_request_template.md rename to Core/.github/pull_request_template.md diff --git a/src/Dataproc/.github/pull_request_template.md b/Dataproc/.github/pull_request_template.md similarity index 100% rename from src/Dataproc/.github/pull_request_template.md rename to Dataproc/.github/pull_request_template.md diff --git a/src/Datastore/.github/pull_request_template.md b/Datastore/.github/pull_request_template.md similarity index 100% rename from src/Datastore/.github/pull_request_template.md rename to Datastore/.github/pull_request_template.md diff --git a/src/Debugger/.github/pull_request_template.md b/Debugger/.github/pull_request_template.md similarity index 100% rename from src/Debugger/.github/pull_request_template.md rename to Debugger/.github/pull_request_template.md diff --git a/src/Dlp/.github/pull_request_template.md b/Dlp/.github/pull_request_template.md similarity index 100% rename from src/Dlp/.github/pull_request_template.md rename to Dlp/.github/pull_request_template.md diff --git a/src/ErrorReporting/.github/pull_request_template.md b/ErrorReporting/.github/pull_request_template.md similarity index 100% rename from src/ErrorReporting/.github/pull_request_template.md rename to ErrorReporting/.github/pull_request_template.md diff --git a/src/Firestore/.github/pull_request_template.md b/Firestore/.github/pull_request_template.md similarity index 100% rename from src/Firestore/.github/pull_request_template.md rename to Firestore/.github/pull_request_template.md diff --git a/src/Language/.github/pull_request_template.md b/Language/.github/pull_request_template.md similarity index 100% rename from src/Language/.github/pull_request_template.md rename to Language/.github/pull_request_template.md diff --git a/src/Logging/.github/pull_request_template.md b/Logging/.github/pull_request_template.md similarity index 100% rename from src/Logging/.github/pull_request_template.md rename to Logging/.github/pull_request_template.md diff --git a/src/Monitoring/.github/pull_request_template.md b/Monitoring/.github/pull_request_template.md similarity index 100% rename from src/Monitoring/.github/pull_request_template.md rename to Monitoring/.github/pull_request_template.md diff --git a/src/OsLogin/.github/pull_request_template.md b/OsLogin/.github/pull_request_template.md similarity index 100% rename from src/OsLogin/.github/pull_request_template.md rename to OsLogin/.github/pull_request_template.md diff --git a/src/PubSub/.github/pull_request_template.md b/PubSub/.github/pull_request_template.md similarity index 100% rename from src/PubSub/.github/pull_request_template.md rename to PubSub/.github/pull_request_template.md diff --git a/src/Spanner/.github/pull_request_template.md b/Spanner/.github/pull_request_template.md similarity index 100% rename from src/Spanner/.github/pull_request_template.md rename to Spanner/.github/pull_request_template.md diff --git a/src/Speech/.github/pull_request_template.md b/Speech/.github/pull_request_template.md similarity index 100% rename from src/Speech/.github/pull_request_template.md rename to Speech/.github/pull_request_template.md diff --git a/src/Storage/.github/pull_request_template.md b/Storage/.github/pull_request_template.md similarity index 100% rename from src/Storage/.github/pull_request_template.md rename to Storage/.github/pull_request_template.md diff --git a/src/Trace/.github/pull_request_template.md b/Trace/.github/pull_request_template.md similarity index 100% rename from src/Trace/.github/pull_request_template.md rename to Trace/.github/pull_request_template.md diff --git a/src/Translate/.github/pull_request_template.md b/Translate/.github/pull_request_template.md similarity index 100% rename from src/Translate/.github/pull_request_template.md rename to Translate/.github/pull_request_template.md diff --git a/src/VideoIntelligence/.github/pull_request_template.md b/VideoIntelligence/.github/pull_request_template.md similarity index 100% rename from src/VideoIntelligence/.github/pull_request_template.md rename to VideoIntelligence/.github/pull_request_template.md diff --git a/src/Vision/.github/pull_request_template.md b/Vision/.github/pull_request_template.md similarity index 100% rename from src/Vision/.github/pull_request_template.md rename to Vision/.github/pull_request_template.md From e60b46623c50de47bf90e5a2f5cba1101f866e7a Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Feb 2018 09:50:39 -0800 Subject: [PATCH 05/59] Initial fixes for subrepos --- BigQuery/composer.json | 14 ++++++++++++-- BigQuery/phpunit.xml.dist | 5 ++--- Core/composer.json | 14 +++++++++++++- Core/phpunit-snippets.xml.dist | 5 +---- Core/phpunit-system.xml.dist | 5 +---- Core/phpunit.xml.dist | 7 ++----- Core/tests/system/bootstrap.php | 19 ------------------- 7 files changed, 31 insertions(+), 38 deletions(-) diff --git a/BigQuery/composer.json b/BigQuery/composer.json index 9b22519c5058..94078733114c 100644 --- a/BigQuery/composer.json +++ b/BigQuery/composer.json @@ -7,6 +7,12 @@ "google/cloud-core": "^1.14", "ramsey/uuid": "~3" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "google/cloud-core": "dev-master as 1.14", + "google/cloud-storage": "^1.3" + }, "suggest": { "google/cloud-storage": "Makes it easier to load data from Cloud Storage into BigQuery" }, @@ -21,7 +27,11 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\BigQuery\\": "" + "Google\\Cloud\\BigQuery\\": "src" } - } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } diff --git a/BigQuery/phpunit.xml.dist b/BigQuery/phpunit.xml.dist index 046b30b6942b..9ebc9152a9a0 100644 --- a/BigQuery/phpunit.xml.dist +++ b/BigQuery/phpunit.xml.dist @@ -2,17 +2,16 @@ - */tests/unit + tests/unit src + src/V[!a-zA-Z]* src/*/V[!a-zA-Z]* src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing diff --git a/Core/composer.json b/Core/composer.json index 33a15706fb08..f0fddbd0ca2b 100644 --- a/Core/composer.json +++ b/Core/composer.json @@ -12,6 +12,13 @@ "monolog/monolog": "~1", "psr/http-message": "1.0.*" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/gax": "^0.30" + }, "suggest": { "opis/closure": "May be used to serialize closures to process jobs in the batch daemon. Please require version ^3.", "symfony/lock": "Required for the Spanner cached based session pool. Please require the following commit: 3.3.x-dev#1ba6ac9" @@ -29,7 +36,12 @@ ], "autoload": { "psr-4": { - "Google\\Cloud\\Core\\": "" + "Google\\Cloud\\Core\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\Core\\": "tests/unit" } } } diff --git a/Core/phpunit-snippets.xml.dist b/Core/phpunit-snippets.xml.dist index adf4adbeb5a3..c0a93aad6653 100644 --- a/Core/phpunit-snippets.xml.dist +++ b/Core/phpunit-snippets.xml.dist @@ -2,15 +2,12 @@ - */tests/snippets + tests/snippets src - - src/*/V[!a-zA-Z]* - diff --git a/Core/phpunit-system.xml.dist b/Core/phpunit-system.xml.dist index adedf6efa577..432de63fc8e1 100644 --- a/Core/phpunit-system.xml.dist +++ b/Core/phpunit-system.xml.dist @@ -2,15 +2,12 @@ - */tests/system + tests/system src - - src/*/V[!a-zA-Z]* - diff --git a/Core/phpunit.xml.dist b/Core/phpunit.xml.dist index 046b30b6942b..8c6bc699a9cb 100644 --- a/Core/phpunit.xml.dist +++ b/Core/phpunit.xml.dist @@ -2,17 +2,14 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/Testing diff --git a/Core/tests/system/bootstrap.php b/Core/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Core/tests/system/bootstrap.php +++ b/Core/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); From 8de736fca45443a8401ab57bd5a1d5afd3e38aaf Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Feb 2018 11:15:05 -0800 Subject: [PATCH 06/59] Fix Core system tests --- Core/composer.json | 4 +++- Core/tests/system/Batch/BatchRunnerTest.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/composer.json b/Core/composer.json index f0fddbd0ca2b..714e2aaee511 100644 --- a/Core/composer.json +++ b/Core/composer.json @@ -41,7 +41,9 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Core\\": "tests/unit" + "Google\\Cloud\\Tests\\Unit\\Core\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\Core\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\Core\\": "tests/system" } } } diff --git a/Core/tests/system/Batch/BatchRunnerTest.php b/Core/tests/system/Batch/BatchRunnerTest.php index 387ed8b8defc..2fdc12b3b477 100644 --- a/Core/tests/system/Batch/BatchRunnerTest.php +++ b/Core/tests/system/Batch/BatchRunnerTest.php @@ -60,7 +60,7 @@ public static function setUpBeforeClass() @mkdir(self::$testDir); putenv('GOOGLE_CLOUD_BATCH_DAEMON_FAILURE_DIR=' . self::$testDir); $daemon_command = __DIR__ - . '/../../../../src/Core/bin/google-cloud-batch daemon'; + . '/../../../../Core/src/bin/google-cloud-batch daemon'; self::$commandFile = tempnam( sys_get_temp_dir(), 'batch-daemon-system-test' From e4d5bb1288c7432f5d1e6225e415fb376cee6210 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Feb 2018 11:44:24 -0800 Subject: [PATCH 07/59] Update BigQuery system tests --- BigQuery/composer.json | 9 +++++++++ BigQuery/phpunit-snippets.xml.dist | 4 ++-- BigQuery/phpunit-system.xml.dist | 4 ++-- BigQuery/tests/snippets/keyfile-stub.json | 12 ++++++++++++ BigQuery/tests/system/bootstrap.php | 18 ------------------ 5 files changed, 25 insertions(+), 22 deletions(-) create mode 100644 BigQuery/tests/snippets/keyfile-stub.json diff --git a/BigQuery/composer.json b/BigQuery/composer.json index 94078733114c..d4fc3907e71b 100644 --- a/BigQuery/composer.json +++ b/BigQuery/composer.json @@ -10,6 +10,8 @@ "require-dev": { "phpunit/phpunit": "^4.8|^5.0", "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", "google/cloud-core": "dev-master as 1.14", "google/cloud-storage": "^1.3" }, @@ -30,6 +32,13 @@ "Google\\Cloud\\BigQuery\\": "src" } }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\BigQuery\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\BigQuery\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\BigQuery\\": "tests/system" + } + }, "repositories": [{ "type": "vcs", "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" diff --git a/BigQuery/phpunit-snippets.xml.dist b/BigQuery/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/BigQuery/phpunit-snippets.xml.dist +++ b/BigQuery/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/BigQuery/phpunit-system.xml.dist b/BigQuery/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/BigQuery/phpunit-system.xml.dist +++ b/BigQuery/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/BigQuery/tests/snippets/keyfile-stub.json b/BigQuery/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/BigQuery/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/BigQuery/tests/system/bootstrap.php b/BigQuery/tests/system/bootstrap.php index bcbb5d681cca..578a18d6a5aa 100644 --- a/BigQuery/tests/system/bootstrap.php +++ b/BigQuery/tests/system/bootstrap.php @@ -3,13 +3,7 @@ require __DIR__ . '/../../vendor/autoload.php'; use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +11,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +20,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); From 872d11e751848f35c08415ec84a68ab33e1e97be Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Feb 2018 14:44:46 -0800 Subject: [PATCH 08/59] Changes for Spanner --- Spanner/composer.json | 22 ++++++++++++++++++++-- Spanner/phpunit-snippets.xml.dist | 4 ++-- Spanner/phpunit-system.xml.dist | 4 ++-- Spanner/phpunit.xml.dist | 5 ++--- Spanner/tests/snippets/bootstrap.php | 6 +++--- Spanner/tests/snippets/keyfile-stub.json | 12 ++++++++++++ 6 files changed, 41 insertions(+), 12 deletions(-) create mode 100644 Spanner/tests/snippets/keyfile-stub.json diff --git a/Spanner/composer.json b/Spanner/composer.json index e8f93b3771b2..55ba55ae48e4 100644 --- a/Spanner/composer.json +++ b/Spanner/composer.json @@ -9,6 +9,13 @@ "google/gax": "^0.30", "google/proto-client": "^0.34" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/cloud-core": "dev-master as 1.14" + }, "suggest": { "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." }, @@ -22,7 +29,18 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Spanner\\": "" + "Google\\Cloud\\Spanner\\": "src" } - } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\Spanner\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\Spanner\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\Spanner\\": "tests/system" + } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } diff --git a/Spanner/phpunit-snippets.xml.dist b/Spanner/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Spanner/phpunit-snippets.xml.dist +++ b/Spanner/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Spanner/phpunit-system.xml.dist b/Spanner/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Spanner/phpunit-system.xml.dist +++ b/Spanner/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Spanner/phpunit.xml.dist b/Spanner/phpunit.xml.dist index 046b30b6942b..9ebc9152a9a0 100644 --- a/Spanner/phpunit.xml.dist +++ b/Spanner/phpunit.xml.dist @@ -2,17 +2,16 @@ - */tests/unit + tests/unit src + src/V[!a-zA-Z]* src/*/V[!a-zA-Z]* src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing diff --git a/Spanner/tests/snippets/bootstrap.php b/Spanner/tests/snippets/bootstrap.php index dfd13f96fd8f..12e13f0b8008 100644 --- a/Spanner/tests/snippets/bootstrap.php +++ b/Spanner/tests/snippets/bootstrap.php @@ -34,13 +34,13 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; $scanner = new Scanner($parser, $filteredIterator); -$coverage = new Coverage($scanner); +$coverage = new Coverage($scanner, ['/\\\Google\\\Cloud\\\Core\\\Timestamp/']); $coverage->buildListToCover(); Container::$coverage = $coverage; diff --git a/Spanner/tests/snippets/keyfile-stub.json b/Spanner/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Spanner/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} From 87b0d538dfaaaa4ac24a29124837792aac8d06e1 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Feb 2018 14:53:59 -0800 Subject: [PATCH 09/59] Update phpunit files --- BigQuery/phpunit.xml.dist | 5 ----- Bigtable/composer.json | 2 +- Bigtable/phpunit-snippets.xml.dist | 4 ++-- Bigtable/phpunit-system.xml.dist | 4 ++-- Bigtable/phpunit.xml.dist | 10 ++-------- Container/phpunit-snippets.xml.dist | 4 ++-- Container/phpunit-system.xml.dist | 4 ++-- Container/phpunit.xml.dist | 10 ++-------- Core/phpunit-snippets.xml.dist | 3 +++ Core/phpunit-system.xml.dist | 3 +++ Core/phpunit.xml.dist | 5 +---- Dataproc/phpunit-snippets.xml.dist | 4 ++-- Dataproc/phpunit-system.xml.dist | 4 ++-- Dataproc/phpunit.xml.dist | 10 ++-------- Datastore/phpunit-snippets.xml.dist | 4 ++-- Datastore/phpunit-system.xml.dist | 4 ++-- Datastore/phpunit.xml.dist | 10 ++-------- Debugger/phpunit-snippets.xml.dist | 4 ++-- Debugger/phpunit-system.xml.dist | 4 ++-- Debugger/phpunit.xml.dist | 10 ++-------- Dlp/phpunit-snippets.xml.dist | 4 ++-- Dlp/phpunit-system.xml.dist | 4 ++-- Dlp/phpunit.xml.dist | 10 ++-------- ErrorReporting/phpunit-snippets.xml.dist | 4 ++-- ErrorReporting/phpunit-system.xml.dist | 4 ++-- ErrorReporting/phpunit.xml.dist | 10 ++-------- Firestore/phpunit-snippets.xml.dist | 4 ++-- Firestore/phpunit-system.xml.dist | 4 ++-- Firestore/phpunit.xml.dist | 10 ++-------- Language/phpunit-snippets.xml.dist | 4 ++-- Language/phpunit-system.xml.dist | 4 ++-- Language/phpunit.xml.dist | 10 ++-------- Logging/phpunit-snippets.xml.dist | 4 ++-- Logging/phpunit-system.xml.dist | 4 ++-- Logging/phpunit.xml.dist | 10 ++-------- Monitoring/phpunit-snippets.xml.dist | 4 ++-- Monitoring/phpunit-system.xml.dist | 4 ++-- Monitoring/phpunit.xml.dist | 10 ++-------- OsLogin/phpunit-snippets.xml.dist | 4 ++-- OsLogin/phpunit-system.xml.dist | 4 ++-- OsLogin/phpunit.xml.dist | 10 ++-------- PubSub/phpunit-snippets.xml.dist | 4 ++-- PubSub/phpunit-system.xml.dist | 4 ++-- PubSub/phpunit.xml.dist | 10 ++-------- Spanner/phpunit.xml.dist | 5 ----- Speech/phpunit-snippets.xml.dist | 4 ++-- Speech/phpunit-system.xml.dist | 4 ++-- Speech/phpunit.xml.dist | 10 ++-------- Storage/phpunit-snippets.xml.dist | 4 ++-- Storage/phpunit-system.xml.dist | 4 ++-- Storage/phpunit.xml.dist | 10 ++-------- Trace/phpunit-snippets.xml.dist | 4 ++-- Trace/phpunit-system.xml.dist | 4 ++-- Trace/phpunit.xml.dist | 10 ++-------- Translate/phpunit-snippets.xml.dist | 4 ++-- Translate/phpunit-system.xml.dist | 4 ++-- Translate/phpunit.xml.dist | 10 ++-------- VideoIntelligence/phpunit-snippets.xml.dist | 4 ++-- VideoIntelligence/phpunit-system.xml.dist | 4 ++-- VideoIntelligence/phpunit.xml.dist | 10 ++-------- Vision/phpunit-snippets.xml.dist | 4 ++-- Vision/phpunit-system.xml.dist | 4 ++-- Vision/phpunit.xml.dist | 10 ++-------- 63 files changed, 122 insertions(+), 243 deletions(-) diff --git a/BigQuery/phpunit.xml.dist b/BigQuery/phpunit.xml.dist index 9ebc9152a9a0..be49389175a8 100644 --- a/BigQuery/phpunit.xml.dist +++ b/BigQuery/phpunit.xml.dist @@ -10,12 +10,7 @@ src src/V[!a-zA-Z]* - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - - - diff --git a/Bigtable/composer.json b/Bigtable/composer.json index 888e0f1c3ef4..368af596d82a 100644 --- a/Bigtable/composer.json +++ b/Bigtable/composer.json @@ -20,7 +20,7 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Bigtable\\": "" + "Google\\Cloud\\Bigtable\\": "src" } } } diff --git a/Bigtable/phpunit-snippets.xml.dist b/Bigtable/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Bigtable/phpunit-snippets.xml.dist +++ b/Bigtable/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Bigtable/phpunit-system.xml.dist b/Bigtable/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Bigtable/phpunit-system.xml.dist +++ b/Bigtable/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Bigtable/phpunit.xml.dist b/Bigtable/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Bigtable/phpunit.xml.dist +++ b/Bigtable/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Container/phpunit-snippets.xml.dist b/Container/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Container/phpunit-snippets.xml.dist +++ b/Container/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Container/phpunit-system.xml.dist b/Container/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Container/phpunit-system.xml.dist +++ b/Container/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Container/phpunit.xml.dist b/Container/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Container/phpunit.xml.dist +++ b/Container/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Core/phpunit-snippets.xml.dist b/Core/phpunit-snippets.xml.dist index c0a93aad6653..11e16bb94753 100644 --- a/Core/phpunit-snippets.xml.dist +++ b/Core/phpunit-snippets.xml.dist @@ -8,6 +8,9 @@ src + + src/V[!a-zA-Z]* + diff --git a/Core/phpunit-system.xml.dist b/Core/phpunit-system.xml.dist index 432de63fc8e1..2d9429943089 100644 --- a/Core/phpunit-system.xml.dist +++ b/Core/phpunit-system.xml.dist @@ -8,6 +8,9 @@ src + + src/V[!a-zA-Z]* + diff --git a/Core/phpunit.xml.dist b/Core/phpunit.xml.dist index 8c6bc699a9cb..be49389175a8 100644 --- a/Core/phpunit.xml.dist +++ b/Core/phpunit.xml.dist @@ -9,11 +9,8 @@ src - src/Testing + src/V[!a-zA-Z]* - - - diff --git a/Dataproc/phpunit-snippets.xml.dist b/Dataproc/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Dataproc/phpunit-snippets.xml.dist +++ b/Dataproc/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Dataproc/phpunit-system.xml.dist b/Dataproc/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Dataproc/phpunit-system.xml.dist +++ b/Dataproc/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Dataproc/phpunit.xml.dist b/Dataproc/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Dataproc/phpunit.xml.dist +++ b/Dataproc/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Datastore/phpunit-snippets.xml.dist b/Datastore/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Datastore/phpunit-snippets.xml.dist +++ b/Datastore/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Datastore/phpunit-system.xml.dist b/Datastore/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Datastore/phpunit-system.xml.dist +++ b/Datastore/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Datastore/phpunit.xml.dist b/Datastore/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Datastore/phpunit.xml.dist +++ b/Datastore/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Debugger/phpunit-snippets.xml.dist b/Debugger/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Debugger/phpunit-snippets.xml.dist +++ b/Debugger/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Debugger/phpunit-system.xml.dist b/Debugger/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Debugger/phpunit-system.xml.dist +++ b/Debugger/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Debugger/phpunit.xml.dist b/Debugger/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Debugger/phpunit.xml.dist +++ b/Debugger/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Dlp/phpunit-snippets.xml.dist b/Dlp/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Dlp/phpunit-snippets.xml.dist +++ b/Dlp/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Dlp/phpunit-system.xml.dist b/Dlp/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Dlp/phpunit-system.xml.dist +++ b/Dlp/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Dlp/phpunit.xml.dist b/Dlp/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Dlp/phpunit.xml.dist +++ b/Dlp/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/ErrorReporting/phpunit-snippets.xml.dist b/ErrorReporting/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/ErrorReporting/phpunit-snippets.xml.dist +++ b/ErrorReporting/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/ErrorReporting/phpunit-system.xml.dist b/ErrorReporting/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/ErrorReporting/phpunit-system.xml.dist +++ b/ErrorReporting/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/ErrorReporting/phpunit.xml.dist b/ErrorReporting/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/ErrorReporting/phpunit.xml.dist +++ b/ErrorReporting/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Firestore/phpunit-snippets.xml.dist b/Firestore/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Firestore/phpunit-snippets.xml.dist +++ b/Firestore/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Firestore/phpunit-system.xml.dist b/Firestore/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Firestore/phpunit-system.xml.dist +++ b/Firestore/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Firestore/phpunit.xml.dist b/Firestore/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Firestore/phpunit.xml.dist +++ b/Firestore/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Language/phpunit-snippets.xml.dist b/Language/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Language/phpunit-snippets.xml.dist +++ b/Language/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Language/phpunit-system.xml.dist b/Language/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Language/phpunit-system.xml.dist +++ b/Language/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Language/phpunit.xml.dist b/Language/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Language/phpunit.xml.dist +++ b/Language/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Logging/phpunit-snippets.xml.dist b/Logging/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Logging/phpunit-snippets.xml.dist +++ b/Logging/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Logging/phpunit-system.xml.dist b/Logging/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Logging/phpunit-system.xml.dist +++ b/Logging/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Logging/phpunit.xml.dist b/Logging/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Logging/phpunit.xml.dist +++ b/Logging/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Monitoring/phpunit-snippets.xml.dist b/Monitoring/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Monitoring/phpunit-snippets.xml.dist +++ b/Monitoring/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Monitoring/phpunit-system.xml.dist b/Monitoring/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Monitoring/phpunit-system.xml.dist +++ b/Monitoring/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Monitoring/phpunit.xml.dist b/Monitoring/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Monitoring/phpunit.xml.dist +++ b/Monitoring/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/OsLogin/phpunit-snippets.xml.dist b/OsLogin/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/OsLogin/phpunit-snippets.xml.dist +++ b/OsLogin/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/OsLogin/phpunit-system.xml.dist b/OsLogin/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/OsLogin/phpunit-system.xml.dist +++ b/OsLogin/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/OsLogin/phpunit.xml.dist b/OsLogin/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/OsLogin/phpunit.xml.dist +++ b/OsLogin/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/PubSub/phpunit-snippets.xml.dist b/PubSub/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/PubSub/phpunit-snippets.xml.dist +++ b/PubSub/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/PubSub/phpunit-system.xml.dist b/PubSub/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/PubSub/phpunit-system.xml.dist +++ b/PubSub/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/PubSub/phpunit.xml.dist b/PubSub/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/PubSub/phpunit.xml.dist +++ b/PubSub/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Spanner/phpunit.xml.dist b/Spanner/phpunit.xml.dist index 9ebc9152a9a0..be49389175a8 100644 --- a/Spanner/phpunit.xml.dist +++ b/Spanner/phpunit.xml.dist @@ -10,12 +10,7 @@ src src/V[!a-zA-Z]* - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - - - diff --git a/Speech/phpunit-snippets.xml.dist b/Speech/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Speech/phpunit-snippets.xml.dist +++ b/Speech/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Speech/phpunit-system.xml.dist b/Speech/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Speech/phpunit-system.xml.dist +++ b/Speech/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Speech/phpunit.xml.dist b/Speech/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Speech/phpunit.xml.dist +++ b/Speech/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Storage/phpunit-snippets.xml.dist b/Storage/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Storage/phpunit-snippets.xml.dist +++ b/Storage/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Storage/phpunit-system.xml.dist b/Storage/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Storage/phpunit-system.xml.dist +++ b/Storage/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Storage/phpunit.xml.dist b/Storage/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Storage/phpunit.xml.dist +++ b/Storage/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Trace/phpunit-snippets.xml.dist b/Trace/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Trace/phpunit-snippets.xml.dist +++ b/Trace/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Trace/phpunit-system.xml.dist b/Trace/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Trace/phpunit-system.xml.dist +++ b/Trace/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Trace/phpunit.xml.dist b/Trace/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Trace/phpunit.xml.dist +++ b/Trace/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Translate/phpunit-snippets.xml.dist b/Translate/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Translate/phpunit-snippets.xml.dist +++ b/Translate/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Translate/phpunit-system.xml.dist b/Translate/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Translate/phpunit-system.xml.dist +++ b/Translate/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Translate/phpunit.xml.dist b/Translate/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Translate/phpunit.xml.dist +++ b/Translate/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/VideoIntelligence/phpunit-snippets.xml.dist b/VideoIntelligence/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/VideoIntelligence/phpunit-snippets.xml.dist +++ b/VideoIntelligence/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/VideoIntelligence/phpunit-system.xml.dist b/VideoIntelligence/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/VideoIntelligence/phpunit-system.xml.dist +++ b/VideoIntelligence/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/VideoIntelligence/phpunit.xml.dist b/VideoIntelligence/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/VideoIntelligence/phpunit.xml.dist +++ b/VideoIntelligence/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - diff --git a/Vision/phpunit-snippets.xml.dist b/Vision/phpunit-snippets.xml.dist index adf4adbeb5a3..11e16bb94753 100644 --- a/Vision/phpunit-snippets.xml.dist +++ b/Vision/phpunit-snippets.xml.dist @@ -2,14 +2,14 @@ - */tests/snippets + tests/snippets src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Vision/phpunit-system.xml.dist b/Vision/phpunit-system.xml.dist index adedf6efa577..2d9429943089 100644 --- a/Vision/phpunit-system.xml.dist +++ b/Vision/phpunit-system.xml.dist @@ -2,14 +2,14 @@ - */tests/system + tests/system src - src/*/V[!a-zA-Z]* + src/V[!a-zA-Z]* diff --git a/Vision/phpunit.xml.dist b/Vision/phpunit.xml.dist index 046b30b6942b..be49389175a8 100644 --- a/Vision/phpunit.xml.dist +++ b/Vision/phpunit.xml.dist @@ -2,21 +2,15 @@ - */tests/unit + tests/unit src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + src/V[!a-zA-Z]* - - - From d9198620a6fa1efd551c7fec99beb6afdc65b202 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Feb 2018 15:01:16 -0800 Subject: [PATCH 10/59] Update bootstrap files --- BigQuery/tests/snippets/bootstrap.php | 4 ++-- BigQuery/tests/system/bootstrap.php | 1 - Bigtable/tests/snippets/bootstrap.php | 4 ++-- Bigtable/tests/system/bootstrap.php | 19 ------------------- Container/tests/snippets/bootstrap.php | 4 ++-- Container/tests/system/bootstrap.php | 19 ------------------- Core/tests/snippets/bootstrap.php | 4 ++-- Dataproc/tests/snippets/bootstrap.php | 4 ++-- Dataproc/tests/system/bootstrap.php | 19 ------------------- Datastore/tests/snippets/bootstrap.php | 4 ++-- Datastore/tests/system/bootstrap.php | 19 ------------------- Debugger/tests/snippets/bootstrap.php | 4 ++-- Debugger/tests/system/bootstrap.php | 19 ------------------- Dlp/tests/snippets/bootstrap.php | 4 ++-- Dlp/tests/system/bootstrap.php | 19 ------------------- ErrorReporting/tests/snippets/bootstrap.php | 4 ++-- ErrorReporting/tests/system/bootstrap.php | 19 ------------------- Firestore/tests/snippets/bootstrap.php | 4 ++-- Firestore/tests/system/bootstrap.php | 19 ------------------- Language/tests/snippets/bootstrap.php | 4 ++-- Language/tests/system/bootstrap.php | 19 ------------------- Logging/tests/snippets/bootstrap.php | 4 ++-- Logging/tests/system/bootstrap.php | 19 ------------------- Monitoring/tests/snippets/bootstrap.php | 4 ++-- Monitoring/tests/system/bootstrap.php | 19 ------------------- OsLogin/tests/snippets/bootstrap.php | 4 ++-- OsLogin/tests/system/bootstrap.php | 19 ------------------- PubSub/tests/snippets/bootstrap.php | 4 ++-- PubSub/tests/system/bootstrap.php | 19 ------------------- Spanner/tests/snippets/bootstrap.php | 2 +- Spanner/tests/system/bootstrap.php | 19 ------------------- Speech/tests/snippets/bootstrap.php | 4 ++-- Speech/tests/system/bootstrap.php | 19 ------------------- Storage/tests/snippets/bootstrap.php | 4 ++-- Storage/tests/system/bootstrap.php | 19 ------------------- Trace/tests/snippets/bootstrap.php | 4 ++-- Trace/tests/system/bootstrap.php | 19 ------------------- Translate/tests/snippets/bootstrap.php | 4 ++-- Translate/tests/system/bootstrap.php | 19 ------------------- .../tests/snippets/bootstrap.php | 4 ++-- VideoIntelligence/tests/system/bootstrap.php | 19 ------------------- Vision/tests/snippets/bootstrap.php | 4 ++-- Vision/tests/system/bootstrap.php | 19 ------------------- 43 files changed, 43 insertions(+), 424 deletions(-) diff --git a/BigQuery/tests/snippets/bootstrap.php b/BigQuery/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/BigQuery/tests/snippets/bootstrap.php +++ b/BigQuery/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/BigQuery/tests/system/bootstrap.php b/BigQuery/tests/system/bootstrap.php index 578a18d6a5aa..54420c6632cc 100644 --- a/BigQuery/tests/system/bootstrap.php +++ b/BigQuery/tests/system/bootstrap.php @@ -2,7 +2,6 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { diff --git a/Bigtable/tests/snippets/bootstrap.php b/Bigtable/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Bigtable/tests/snippets/bootstrap.php +++ b/Bigtable/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Bigtable/tests/system/bootstrap.php b/Bigtable/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Bigtable/tests/system/bootstrap.php +++ b/Bigtable/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Container/tests/snippets/bootstrap.php b/Container/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Container/tests/snippets/bootstrap.php +++ b/Container/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Container/tests/system/bootstrap.php b/Container/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Container/tests/system/bootstrap.php +++ b/Container/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Core/tests/snippets/bootstrap.php b/Core/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Core/tests/snippets/bootstrap.php +++ b/Core/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Dataproc/tests/snippets/bootstrap.php b/Dataproc/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Dataproc/tests/snippets/bootstrap.php +++ b/Dataproc/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Dataproc/tests/system/bootstrap.php b/Dataproc/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Dataproc/tests/system/bootstrap.php +++ b/Dataproc/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Datastore/tests/snippets/bootstrap.php b/Datastore/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Datastore/tests/snippets/bootstrap.php +++ b/Datastore/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Datastore/tests/system/bootstrap.php b/Datastore/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Datastore/tests/system/bootstrap.php +++ b/Datastore/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Debugger/tests/snippets/bootstrap.php b/Debugger/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Debugger/tests/snippets/bootstrap.php +++ b/Debugger/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Debugger/tests/system/bootstrap.php b/Debugger/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Debugger/tests/system/bootstrap.php +++ b/Debugger/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Dlp/tests/snippets/bootstrap.php b/Dlp/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Dlp/tests/snippets/bootstrap.php +++ b/Dlp/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Dlp/tests/system/bootstrap.php b/Dlp/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Dlp/tests/system/bootstrap.php +++ b/Dlp/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/ErrorReporting/tests/snippets/bootstrap.php b/ErrorReporting/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/ErrorReporting/tests/snippets/bootstrap.php +++ b/ErrorReporting/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/ErrorReporting/tests/system/bootstrap.php b/ErrorReporting/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/ErrorReporting/tests/system/bootstrap.php +++ b/ErrorReporting/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Firestore/tests/snippets/bootstrap.php b/Firestore/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Firestore/tests/snippets/bootstrap.php +++ b/Firestore/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Firestore/tests/system/bootstrap.php b/Firestore/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Firestore/tests/system/bootstrap.php +++ b/Firestore/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Language/tests/snippets/bootstrap.php b/Language/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Language/tests/snippets/bootstrap.php +++ b/Language/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Language/tests/system/bootstrap.php b/Language/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Language/tests/system/bootstrap.php +++ b/Language/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Logging/tests/snippets/bootstrap.php b/Logging/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Logging/tests/snippets/bootstrap.php +++ b/Logging/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Logging/tests/system/bootstrap.php b/Logging/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Logging/tests/system/bootstrap.php +++ b/Logging/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Monitoring/tests/snippets/bootstrap.php b/Monitoring/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Monitoring/tests/snippets/bootstrap.php +++ b/Monitoring/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Monitoring/tests/system/bootstrap.php b/Monitoring/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Monitoring/tests/system/bootstrap.php +++ b/Monitoring/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/OsLogin/tests/snippets/bootstrap.php b/OsLogin/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/OsLogin/tests/snippets/bootstrap.php +++ b/OsLogin/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/OsLogin/tests/system/bootstrap.php b/OsLogin/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/OsLogin/tests/system/bootstrap.php +++ b/OsLogin/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/PubSub/tests/snippets/bootstrap.php b/PubSub/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/PubSub/tests/snippets/bootstrap.php +++ b/PubSub/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/PubSub/tests/system/bootstrap.php b/PubSub/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/PubSub/tests/system/bootstrap.php +++ b/PubSub/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Spanner/tests/snippets/bootstrap.php b/Spanner/tests/snippets/bootstrap.php index 12e13f0b8008..4958dbb6bfd3 100644 --- a/Spanner/tests/snippets/bootstrap.php +++ b/Spanner/tests/snippets/bootstrap.php @@ -40,7 +40,7 @@ public function accept() { $parser = new Parser; $scanner = new Scanner($parser, $filteredIterator); -$coverage = new Coverage($scanner, ['/\\\Google\\\Cloud\\\Core\\\Timestamp/']); +$coverage = new Coverage($scanner); $coverage->buildListToCover(); Container::$coverage = $coverage; diff --git a/Spanner/tests/system/bootstrap.php b/Spanner/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Spanner/tests/system/bootstrap.php +++ b/Spanner/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Speech/tests/snippets/bootstrap.php b/Speech/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Speech/tests/snippets/bootstrap.php +++ b/Speech/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Speech/tests/system/bootstrap.php b/Speech/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Speech/tests/system/bootstrap.php +++ b/Speech/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Storage/tests/snippets/bootstrap.php b/Storage/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Storage/tests/snippets/bootstrap.php +++ b/Storage/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Storage/tests/system/bootstrap.php b/Storage/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Storage/tests/system/bootstrap.php +++ b/Storage/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Trace/tests/snippets/bootstrap.php b/Trace/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Trace/tests/snippets/bootstrap.php +++ b/Trace/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Trace/tests/system/bootstrap.php b/Trace/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Trace/tests/system/bootstrap.php +++ b/Trace/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Translate/tests/snippets/bootstrap.php b/Translate/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Translate/tests/snippets/bootstrap.php +++ b/Translate/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Translate/tests/system/bootstrap.php b/Translate/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Translate/tests/system/bootstrap.php +++ b/Translate/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/VideoIntelligence/tests/snippets/bootstrap.php b/VideoIntelligence/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/VideoIntelligence/tests/snippets/bootstrap.php +++ b/VideoIntelligence/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/VideoIntelligence/tests/system/bootstrap.php b/VideoIntelligence/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/VideoIntelligence/tests/system/bootstrap.php +++ b/VideoIntelligence/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); diff --git a/Vision/tests/snippets/bootstrap.php b/Vision/tests/snippets/bootstrap.php index dfd13f96fd8f..4958dbb6bfd3 100644 --- a/Vision/tests/snippets/bootstrap.php +++ b/Vision/tests/snippets/bootstrap.php @@ -34,8 +34,8 @@ public function accept() { } $filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] + new GlobIterator(__DIR__ . '/../../src'), + [] ); $parser = new Parser; diff --git a/Vision/tests/system/bootstrap.php b/Vision/tests/system/bootstrap.php index bcbb5d681cca..54420c6632cc 100644 --- a/Vision/tests/system/bootstrap.php +++ b/Vision/tests/system/bootstrap.php @@ -2,14 +2,7 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Tests\System\BigQuery\BigQueryTestCase; -use Google\Cloud\Tests\System\Datastore\DatastoreTestCase; -use Google\Cloud\Tests\System\Logging\LoggingTestCase; -use Google\Cloud\Tests\System\PubSub\PubSubTestCase; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; -use Google\Cloud\Tests\System\Storage\StorageTestCase; use Google\Cloud\Core\Testing\System\SystemTestCase; -use Google\Cloud\Tests\System\Whitelist\WhitelistTest; if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( @@ -17,16 +10,6 @@ ); } -if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { - throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' - ); -} - -if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { - define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); -} - SystemTestCase::setupQueue(); $pid = getmypid(); @@ -36,8 +19,6 @@ return; } - DatastoreTestCase::tearDownFixtures(); - // This should always be last. SystemTestCase::processQueue(); }); From 2d96826c40cad59139eefeab96a7cc69f2b9712f Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Feb 2018 16:03:29 -0800 Subject: [PATCH 11/59] Datastore updates --- Datastore/composer.json | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Datastore/composer.json b/Datastore/composer.json index d3859d15b1ed..bdb3393115f2 100644 --- a/Datastore/composer.json +++ b/Datastore/composer.json @@ -6,6 +6,13 @@ "require": { "google/cloud-core": "^1.14" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/cloud-core": "dev-master as 1.14" + }, "extra": { "component": { "id": "cloud-datastore", @@ -16,7 +23,18 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Datastore\\": "" + "Google\\Cloud\\Datastore\\": "src" } - } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\Datastore\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\Datastore\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\Datastore\\": "tests/system" + } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } From 992cb237c660f51263a4f8fc6ee99c9667188909 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Feb 2018 16:03:42 -0800 Subject: [PATCH 12/59] Add keyfile stub files --- Bigtable/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Container/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Core/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Dataproc/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Datastore/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Debugger/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Dlp/tests/snippets/keyfile-stub.json | 12 ++++++++++++ ErrorReporting/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Firestore/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Language/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Logging/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Monitoring/tests/snippets/keyfile-stub.json | 12 ++++++++++++ OsLogin/tests/snippets/keyfile-stub.json | 12 ++++++++++++ PubSub/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Speech/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Storage/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Trace/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Translate/tests/snippets/keyfile-stub.json | 12 ++++++++++++ VideoIntelligence/tests/snippets/keyfile-stub.json | 12 ++++++++++++ Vision/tests/snippets/keyfile-stub.json | 12 ++++++++++++ 20 files changed, 240 insertions(+) create mode 100644 Bigtable/tests/snippets/keyfile-stub.json create mode 100644 Container/tests/snippets/keyfile-stub.json create mode 100644 Core/tests/snippets/keyfile-stub.json create mode 100644 Dataproc/tests/snippets/keyfile-stub.json create mode 100644 Datastore/tests/snippets/keyfile-stub.json create mode 100644 Debugger/tests/snippets/keyfile-stub.json create mode 100644 Dlp/tests/snippets/keyfile-stub.json create mode 100644 ErrorReporting/tests/snippets/keyfile-stub.json create mode 100644 Firestore/tests/snippets/keyfile-stub.json create mode 100644 Language/tests/snippets/keyfile-stub.json create mode 100644 Logging/tests/snippets/keyfile-stub.json create mode 100644 Monitoring/tests/snippets/keyfile-stub.json create mode 100644 OsLogin/tests/snippets/keyfile-stub.json create mode 100644 PubSub/tests/snippets/keyfile-stub.json create mode 100644 Speech/tests/snippets/keyfile-stub.json create mode 100644 Storage/tests/snippets/keyfile-stub.json create mode 100644 Trace/tests/snippets/keyfile-stub.json create mode 100644 Translate/tests/snippets/keyfile-stub.json create mode 100644 VideoIntelligence/tests/snippets/keyfile-stub.json create mode 100644 Vision/tests/snippets/keyfile-stub.json diff --git a/Bigtable/tests/snippets/keyfile-stub.json b/Bigtable/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Bigtable/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Container/tests/snippets/keyfile-stub.json b/Container/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Container/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Core/tests/snippets/keyfile-stub.json b/Core/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Core/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Dataproc/tests/snippets/keyfile-stub.json b/Dataproc/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Dataproc/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Datastore/tests/snippets/keyfile-stub.json b/Datastore/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Datastore/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Debugger/tests/snippets/keyfile-stub.json b/Debugger/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Debugger/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Dlp/tests/snippets/keyfile-stub.json b/Dlp/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Dlp/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/ErrorReporting/tests/snippets/keyfile-stub.json b/ErrorReporting/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/ErrorReporting/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Firestore/tests/snippets/keyfile-stub.json b/Firestore/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Firestore/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Language/tests/snippets/keyfile-stub.json b/Language/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Language/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Logging/tests/snippets/keyfile-stub.json b/Logging/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Logging/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Monitoring/tests/snippets/keyfile-stub.json b/Monitoring/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Monitoring/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/OsLogin/tests/snippets/keyfile-stub.json b/OsLogin/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/OsLogin/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/PubSub/tests/snippets/keyfile-stub.json b/PubSub/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/PubSub/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Speech/tests/snippets/keyfile-stub.json b/Speech/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Speech/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Storage/tests/snippets/keyfile-stub.json b/Storage/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Storage/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Trace/tests/snippets/keyfile-stub.json b/Trace/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Trace/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Translate/tests/snippets/keyfile-stub.json b/Translate/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Translate/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/VideoIntelligence/tests/snippets/keyfile-stub.json b/VideoIntelligence/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/VideoIntelligence/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} diff --git a/Vision/tests/snippets/keyfile-stub.json b/Vision/tests/snippets/keyfile-stub.json new file mode 100644 index 000000000000..e1c618b7497e --- /dev/null +++ b/Vision/tests/snippets/keyfile-stub.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "my-awesome-project", + "private_key_id": "", + "private_key": "", + "client_email": "", + "client_id": "", + "auth_uri": "", + "token_uri": "", + "auth_provider_x509_cert_url": "", + "client_x509_cert_url": "" +} From fb0ac7e4db050976da9555345576d8efd71edefc Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 10:14:03 -0800 Subject: [PATCH 13/59] Updates for Firestore --- Firestore/composer.json | 22 ++++++++++++++++++-- Firestore/tests/system/bootstrap.php | 4 ++-- Firestore/tests/unit/FirestoreClientTest.php | 5 ++++- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/Firestore/composer.json b/Firestore/composer.json index d04fede9af95..6d07a7308b14 100644 --- a/Firestore/composer.json +++ b/Firestore/composer.json @@ -10,6 +10,13 @@ "google/proto-client": "^0.34", "ramsey/uuid": "~3" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/cloud-core": "dev-master as 1.14" + }, "suggest": { "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." }, @@ -23,7 +30,18 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Firestore\\": "" + "Google\\Cloud\\Firestore\\": "src" } - } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\Firestore\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\Firestore\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\Firestore\\": "tests/system" + } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } diff --git a/Firestore/tests/system/bootstrap.php b/Firestore/tests/system/bootstrap.php index 54420c6632cc..450cd6cc2f3e 100644 --- a/Firestore/tests/system/bootstrap.php +++ b/Firestore/tests/system/bootstrap.php @@ -4,9 +4,9 @@ use Google\Cloud\Core\Testing\System\SystemTestCase; -if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { +if (!getenv('GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH')) { throw new \Exception( - 'Please set the \'GOOGLE_CLOUD_PHP_TESTS_KEY_PATH\' env var to run the system tests' + 'Please set the \'GOOGLE_CLOUD_PHP_FIRESTORE_TESTS_KEY_PATH\' env var to run the system tests' ); } diff --git a/Firestore/tests/unit/FirestoreClientTest.php b/Firestore/tests/unit/FirestoreClientTest.php index 1ba7f5e561dd..20ac69918421 100644 --- a/Firestore/tests/unit/FirestoreClientTest.php +++ b/Firestore/tests/unit/FirestoreClientTest.php @@ -51,7 +51,10 @@ public function setUp() $this->checkAndSkipGrpcTests(); $this->connection = $this->prophesize(ConnectionInterface::class); - $this->client = \Google\Cloud\Core\Testing\TestHelpers::stub(FirestoreClient::class); + $this->client = \Google\Cloud\Core\Testing\TestHelpers::stub( + FirestoreClient::class, + [['projectId' => self::PROJECT]] + ); } public function testBatch() From d7db918687b6db2bb3472ced531a019ae5b3b142 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 10:19:06 -0800 Subject: [PATCH 14/59] Fix Language composer --- Language/composer.json | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Language/composer.json b/Language/composer.json index 03dab2f99ac4..1d32eb29f92a 100644 --- a/Language/composer.json +++ b/Language/composer.json @@ -8,6 +8,14 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/cloud-core": "dev-master as 1.14", + "google/cloud-storage": "^1.3" + }, "suggest": { "google/cloud-storage": "Analyze documents stored in Google Cloud Storage", "ext-grpc": "The gRPC extension enables use of the performant gRPC transport", @@ -23,7 +31,18 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Language\\": "" + "Google\\Cloud\\Language\\": "src" } - } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\Language\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\Language\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\Language\\": "tests/system" + } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } From 4de09efd997a4864dc5a3a0aa2c4cad15bfc22de Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 10:28:24 -0800 Subject: [PATCH 15/59] Fix logging tests and composer --- Logging/composer.json | 25 ++++++++++++++++++++++-- Logging/tests/unit/LoggingClientTest.php | 9 ++++++++- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/Logging/composer.json b/Logging/composer.json index 982a987c0de4..e8dcf8bfeb87 100644 --- a/Logging/composer.json +++ b/Logging/composer.json @@ -8,6 +8,16 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/cloud-core": "dev-master as 1.14", + "google/cloud-storage": "^1.3", + "google/cloud-bigquery": "^1.0", + "google/cloud-pubsub": "^0.12" + }, "suggest": { "ext-grpc": "The gRPC extension enables use of the performant gRPC transport", "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." @@ -22,7 +32,18 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Logging\\": "" + "Google\\Cloud\\Logging\\": "src" } - } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\Logging\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\Logging\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\Logging\\": "tests/system" + } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } diff --git a/Logging/tests/unit/LoggingClientTest.php b/Logging/tests/unit/LoggingClientTest.php index dece01a86363..8bfe62544464 100644 --- a/Logging/tests/unit/LoggingClientTest.php +++ b/Logging/tests/unit/LoggingClientTest.php @@ -60,7 +60,14 @@ public function testUsesGrpcConnectionByDefault() public function testPsrBatchLogger() { - $psrBatchLogger = LoggingClient::psrBatchLogger('app'); + $psrBatchLogger = LoggingClient::psrBatchLogger( + 'app', + [ + 'clientConfig' => [ + 'projectId' => 'project', + ] + ] + ); $this->assertInstanceOf(PsrLogger::class, $psrBatchLogger); $r = new \ReflectionObject($psrBatchLogger); $p = $r->getProperty('batchEnabled'); From 807ad86541191b4041085ac958d954538d82b8a6 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 10:35:32 -0800 Subject: [PATCH 16/59] Fix pubsub composer and unit tests --- PubSub/composer.json | 22 ++++++++++++++++++++-- PubSub/tests/unit/BatchPublisherTest.php | 2 +- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/PubSub/composer.json b/PubSub/composer.json index 626d7e3ab130..9aaddd85e07f 100644 --- a/PubSub/composer.json +++ b/PubSub/composer.json @@ -8,6 +8,13 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/cloud-core": "dev-master as 1.14" + }, "suggest": { "ext-grpc": "The gRPC extension enables use of the performant gRPC transport", "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." @@ -22,7 +29,18 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\PubSub\\": "" + "Google\\Cloud\\PubSub\\": "src" } - } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\PubSub\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\PubSub\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\PubSub\\": "tests/system" + } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } diff --git a/PubSub/tests/unit/BatchPublisherTest.php b/PubSub/tests/unit/BatchPublisherTest.php index 4d4daf43728e..deffcd071d8f 100644 --- a/PubSub/tests/unit/BatchPublisherTest.php +++ b/PubSub/tests/unit/BatchPublisherTest.php @@ -54,7 +54,7 @@ public function testPublish() public function testGetCallback() { - $callbackArray = (new TestBatchPublisher(self::TOPIC_NAME)) + $callbackArray = (new TestBatchPublisher(self::TOPIC_NAME, ['clientConfig' => ['projectId' => 'example_project']])) ->getCallbackArray(); $this->assertInstanceOf(Topic::class, $callbackArray[0]); From faf4b587c2aa1b32bf13cd85431b60530c43692b Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 10:56:21 -0800 Subject: [PATCH 17/59] Update Speech composer --- Speech/composer.json | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Speech/composer.json b/Speech/composer.json index b5633c4d8bd1..eaefea02fd3f 100644 --- a/Speech/composer.json +++ b/Speech/composer.json @@ -8,6 +8,14 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/cloud-core": "dev-master as 1.14", + "google/cloud-storage": "^1.3" + }, "suggest": { "ext-grpc": "The gRPC extension enables use of the performant gRPC transport", "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." @@ -22,7 +30,18 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Speech\\": "" + "Google\\Cloud\\Speech\\": "src" } - } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\Speech\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\Speech\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\Speech\\": "tests/system" + } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } From 08b16c088d293671f44def60fa36b1d5847ea035 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 11:10:31 -0800 Subject: [PATCH 18/59] Fix composer and tests for Storage --- Storage/composer.json | 24 ++++++++++++++++-- Storage/tests/system/UploadObjectsTest.php | 8 +++--- Storage/tests/system/bootstrap.php | 4 +++ {tests => Storage/tests}/system/data/5mb.txt | 0 .../data/CloudPlatform_128px_Retina.png | Bin Storage/tests/unit/RequesterPaysTest.php | 5 +++- 6 files changed, 34 insertions(+), 7 deletions(-) rename {tests => Storage/tests}/system/data/5mb.txt (100%) rename {tests => Storage/tests}/system/data/CloudPlatform_128px_Retina.png (100%) diff --git a/Storage/composer.json b/Storage/composer.json index b39f05c26368..85f9fbb0c73f 100644 --- a/Storage/composer.json +++ b/Storage/composer.json @@ -6,6 +6,15 @@ "require": { "google/cloud-core": "^1.14" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/cloud-core": "dev-master as 1.14", + "phpseclib/phpseclib": "^2", + "google/cloud-pubsub": "^0.12" + }, "suggest": { "phpseclib/phpseclib": "May be used in place of OpenSSL for creating signed Cloud Storage URLs. Please require version ^2.", "google/cloud-pubsub": "May be used to register a topic to receive bucket notifications." @@ -20,7 +29,18 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Storage\\": "" + "Google\\Cloud\\Storage\\": "src" } - } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\Storage\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\Storage\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\Storage\\": "tests/system" + } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } diff --git a/Storage/tests/system/UploadObjectsTest.php b/Storage/tests/system/UploadObjectsTest.php index 4755a38d302b..fcb5bd89ba40 100644 --- a/Storage/tests/system/UploadObjectsTest.php +++ b/Storage/tests/system/UploadObjectsTest.php @@ -45,7 +45,7 @@ public function testUploadsObjectFromStringWithMetadata() public function testUploadsObjectFromResource() { - $path = __DIR__ . '/../data/CloudPlatform_128px_Retina.png'; + $path = __DIR__ . '/data/CloudPlatform_128px_Retina.png'; $object = self::$bucket->upload( fopen($path, 'r') ); @@ -56,7 +56,7 @@ public function testUploadsObjectFromResource() public function testUploadsLargeObjectFromResource() { - $path = __DIR__ . '/../data/5mb.txt'; + $path = __DIR__ . '/data/5mb.txt'; $object = self::$bucket->upload( fopen($path, 'r') ); @@ -96,7 +96,7 @@ public function testUploadsObjectWithCustomerSuppliedEncryption() public function testUploadsObjectWithProgressTracking() { - $path = __DIR__ . '/../data/5mb.txt'; + $path = __DIR__ . '/data/5mb.txt'; $this->testFileSize = filesize($path); @@ -119,7 +119,7 @@ public function onStoredFileChunk($storedBytes) $this->assertFalse($this->testFileSize < $this->totalStoredBytes); if ($this->testFileSize == $this->totalStoredBytes) { - $this->assertEquals(filesize(__DIR__ . '/../data/5mb.txt'), $this->totalStoredBytes); + $this->assertEquals(filesize(__DIR__ . '/data/5mb.txt'), $this->totalStoredBytes); } } } diff --git a/Storage/tests/system/bootstrap.php b/Storage/tests/system/bootstrap.php index 54420c6632cc..4c192f443571 100644 --- a/Storage/tests/system/bootstrap.php +++ b/Storage/tests/system/bootstrap.php @@ -10,6 +10,10 @@ ); } +if (getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')) { + define('GOOGLE_CLOUD_WHITELIST_KEY_PATH', getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')); +} + SystemTestCase::setupQueue(); $pid = getmypid(); diff --git a/tests/system/data/5mb.txt b/Storage/tests/system/data/5mb.txt similarity index 100% rename from tests/system/data/5mb.txt rename to Storage/tests/system/data/5mb.txt diff --git a/tests/system/data/CloudPlatform_128px_Retina.png b/Storage/tests/system/data/CloudPlatform_128px_Retina.png similarity index 100% rename from tests/system/data/CloudPlatform_128px_Retina.png rename to Storage/tests/system/data/CloudPlatform_128px_Retina.png diff --git a/Storage/tests/unit/RequesterPaysTest.php b/Storage/tests/unit/RequesterPaysTest.php index 2561916bcc70..ffb07a900eec 100644 --- a/Storage/tests/unit/RequesterPaysTest.php +++ b/Storage/tests/unit/RequesterPaysTest.php @@ -43,7 +43,10 @@ class RequesterPaysTest extends TestCase public function setUp() { $this->connection = new Rest(['projectId' => self::PROJECT]); - $this->client = \Google\Cloud\Core\Testing\TestHelpers::stub(StorageClient::class); + $this->client = \Google\Cloud\Core\Testing\TestHelpers::stub( + StorageClient::class, + [['projectId' => self::PROJECT]] + ); } /** From 993ecf46d6648d7a8998d2a254f53a60cc61fb06 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 11:13:05 -0800 Subject: [PATCH 19/59] Update Trace composer --- Trace/composer.json | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Trace/composer.json b/Trace/composer.json index 222ce412cf7f..a465a89516a2 100644 --- a/Trace/composer.json +++ b/Trace/composer.json @@ -8,6 +8,13 @@ "ramsey/uuid": "~3", "google/gax": "^0.30", "google/proto-client": "^0.34" + }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/cloud-core": "dev-master as 1.14" }, "suggest": { "ext-grpc": "The gRPC extension enables use of the performant gRPC transport", @@ -26,7 +33,18 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Trace\\": "" + "Google\\Cloud\\Trace\\": "src" } - } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\Trace\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\Trace\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\Trace\\": "tests/system" + } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } From 7a9316b07059d98ae9b922467b89c9d8a661ab63 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 11:15:06 -0800 Subject: [PATCH 20/59] Update Translate composer --- Translate/composer.json | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Translate/composer.json b/Translate/composer.json index bee8ed5879ce..3fca4ed1b6d6 100644 --- a/Translate/composer.json +++ b/Translate/composer.json @@ -5,6 +5,13 @@ "minimum-stability": "stable", "require": { "google/cloud-core": "^1.14" + }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/cloud-core": "dev-master as 1.14" }, "extra": { "component": { @@ -16,7 +23,18 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Translate\\": "" + "Google\\Cloud\\Translate\\": "src" } - } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\Translate\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\Translate\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\Translate\\": "tests/system" + } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } From 6572bc87e62f480d905697c059f303630b183a8f Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 11:17:12 -0800 Subject: [PATCH 21/59] Update Vision composer --- Vision/composer.json | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Vision/composer.json b/Vision/composer.json index 31ec31490dce..37ba8bffbb61 100644 --- a/Vision/composer.json +++ b/Vision/composer.json @@ -8,6 +8,14 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6", + "google/cloud-core": "dev-master as 1.14", + "google/cloud-storage": "^1.3" + }, "suggest": { "ext-grpc": "The gRPC extension enables use of the performant gRPC transport", "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions.", @@ -23,7 +31,18 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Vision\\": "" + "Google\\Cloud\\Vision\\": "src" } - } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Tests\\Unit\\Vision\\": "tests/unit", + "Google\\Cloud\\Tests\\Snippet\\Vision\\": "tests/snippets", + "Google\\Cloud\\Tests\\System\\Vision\\": "tests/system" + } + }, + "repositories": [{ + "type": "vcs", + "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + }] } From f312dec430f718bee7de683ba1ea946b054efdda Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 11:34:59 -0800 Subject: [PATCH 22/59] Update gapic only APIs --- Bigtable/composer.json | 3 +++ .../tests/system/BigtableInstanceAdminTest.php | 4 ++-- Bigtable/tests/system/bootstrap.php | 15 --------------- Container/composer.json | 5 ++++- .../tests/system/ClusterManagerClientTest.php | 4 ++-- Container/tests/system/bootstrap.php | 15 --------------- Dataproc/composer.json | 5 ++++- .../tests/system/ClusterControllerClientTest.php | 4 ++-- Dataproc/tests/system/bootstrap.php | 15 --------------- Dlp/composer.json | 5 ++++- Dlp/tests/system/bootstrap.php | 15 --------------- ErrorReporting/composer.json | 2 +- ErrorReporting/tests/system/bootstrap.php | 15 --------------- Monitoring/composer.json | 2 +- Monitoring/tests/system/bootstrap.php | 15 --------------- OsLogin/composer.json | 5 ++++- OsLogin/tests/system/OsLoginServiceClientTest.php | 4 ++-- OsLogin/tests/system/bootstrap.php | 15 --------------- VideoIntelligence/composer.json | 2 +- VideoIntelligence/tests/system/bootstrap.php | 15 --------------- 20 files changed, 30 insertions(+), 135 deletions(-) diff --git a/Bigtable/composer.json b/Bigtable/composer.json index 368af596d82a..d9f87b941d8c 100644 --- a/Bigtable/composer.json +++ b/Bigtable/composer.json @@ -7,6 +7,9 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0" + }, "suggest": { "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." }, diff --git a/Bigtable/tests/system/BigtableInstanceAdminTest.php b/Bigtable/tests/system/BigtableInstanceAdminTest.php index eb8cb6a7d004..687b084574c9 100644 --- a/Bigtable/tests/system/BigtableInstanceAdminTest.php +++ b/Bigtable/tests/system/BigtableInstanceAdminTest.php @@ -20,9 +20,9 @@ use Google\Auth\CredentialsLoader; use Google\Cloud\Bigtable\Admin\V2\BigtableInstanceAdminClient; use Google\Cloud\Bigtable\Admin\V2\ListInstancesResponse; -use Google\Cloud\Core\Testing\System\SystemTestCase; +use PHPUnit\Framework\TestCase; -class BigtableInstanceAdminClientTest extends SystemTestCase +class BigtableInstanceAdminClientTest extends TestCase { protected static $grpcClient; protected static $restClient; diff --git a/Bigtable/tests/system/bootstrap.php b/Bigtable/tests/system/bootstrap.php index 54420c6632cc..b3f22de9e969 100644 --- a/Bigtable/tests/system/bootstrap.php +++ b/Bigtable/tests/system/bootstrap.php @@ -2,23 +2,8 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Core\Testing\System\SystemTestCase; - if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( 'Please set the \'GOOGLE_CLOUD_PHP_TESTS_KEY_PATH\' env var to run the system tests' ); } - -SystemTestCase::setupQueue(); - -$pid = getmypid(); -register_shutdown_function(function () use ($pid) { - // Skip flushing deletion queue if exiting a forked process. - if ($pid !== getmypid()) { - return; - } - - // This should always be last. - SystemTestCase::processQueue(); -}); diff --git a/Container/composer.json b/Container/composer.json index 3aa647c4bb98..5801da197aa3 100644 --- a/Container/composer.json +++ b/Container/composer.json @@ -5,7 +5,7 @@ "minimum-stability": "stable", "autoload": { "psr-4": { - "Google\\Cloud\\Container\\": "" + "Google\\Cloud\\Container\\": "src" } }, "extra": { @@ -19,5 +19,8 @@ "require": { "google/proto-client": "^0.34", "google/gax": "^0.30" + }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0" } } diff --git a/Container/tests/system/ClusterManagerClientTest.php b/Container/tests/system/ClusterManagerClientTest.php index a6376393a1b9..ef18a29e5d35 100644 --- a/Container/tests/system/ClusterManagerClientTest.php +++ b/Container/tests/system/ClusterManagerClientTest.php @@ -20,9 +20,9 @@ use Google\Auth\CredentialsLoader; use Google\Cloud\Container\V1\ClusterManagerClient; use Google\Cloud\Container\V1\ListOperationsResponse; -use Google\Cloud\Core\Testing\System\SystemTestCase; +use PHPUnit\Framework\TestCase; -class ClusterManagerClientTest extends SystemTestCase +class ClusterManagerClientTest extends TestCase { const ZONE = 'us-central1-b'; diff --git a/Container/tests/system/bootstrap.php b/Container/tests/system/bootstrap.php index 54420c6632cc..b3f22de9e969 100644 --- a/Container/tests/system/bootstrap.php +++ b/Container/tests/system/bootstrap.php @@ -2,23 +2,8 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Core\Testing\System\SystemTestCase; - if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( 'Please set the \'GOOGLE_CLOUD_PHP_TESTS_KEY_PATH\' env var to run the system tests' ); } - -SystemTestCase::setupQueue(); - -$pid = getmypid(); -register_shutdown_function(function () use ($pid) { - // Skip flushing deletion queue if exiting a forked process. - if ($pid !== getmypid()) { - return; - } - - // This should always be last. - SystemTestCase::processQueue(); -}); diff --git a/Dataproc/composer.json b/Dataproc/composer.json index 10759770e7a4..ec12b030bf6e 100644 --- a/Dataproc/composer.json +++ b/Dataproc/composer.json @@ -5,7 +5,7 @@ "minimum-stability": "stable", "autoload": { "psr-4": { - "Google\\Cloud\\Dataproc\\": "" + "Google\\Cloud\\Dataproc\\": "src" } }, "extra": { @@ -20,6 +20,9 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0" + }, "suggest": { "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." } diff --git a/Dataproc/tests/system/ClusterControllerClientTest.php b/Dataproc/tests/system/ClusterControllerClientTest.php index 064346ec57a6..fd315359b6c8 100644 --- a/Dataproc/tests/system/ClusterControllerClientTest.php +++ b/Dataproc/tests/system/ClusterControllerClientTest.php @@ -19,11 +19,11 @@ use Google\Auth\CredentialsLoader; use Google\ApiCore\PagedListResponse; -use Google\Cloud\Core\Testing\System\SystemTestCase; use Google\Cloud\Dataproc\V1\ClusterControllerClient; use Google\Cloud\Dataproc\V1\ListClustersResponse; +use PHPUnit\Framework\TestCase; -class ClusterControllerClientTest extends SystemTestCase +class ClusterControllerClientTest extends TestCase { const REGION = 'global'; diff --git a/Dataproc/tests/system/bootstrap.php b/Dataproc/tests/system/bootstrap.php index 54420c6632cc..b3f22de9e969 100644 --- a/Dataproc/tests/system/bootstrap.php +++ b/Dataproc/tests/system/bootstrap.php @@ -2,23 +2,8 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Core\Testing\System\SystemTestCase; - if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( 'Please set the \'GOOGLE_CLOUD_PHP_TESTS_KEY_PATH\' env var to run the system tests' ); } - -SystemTestCase::setupQueue(); - -$pid = getmypid(); -register_shutdown_function(function () use ($pid) { - // Skip flushing deletion queue if exiting a forked process. - if ($pid !== getmypid()) { - return; - } - - // This should always be last. - SystemTestCase::processQueue(); -}); diff --git a/Dlp/composer.json b/Dlp/composer.json index e7a4b7606558..bce14dc2c0ad 100644 --- a/Dlp/composer.json +++ b/Dlp/composer.json @@ -7,6 +7,9 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0" + }, "suggest": { "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." }, @@ -20,7 +23,7 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Dlp\\": "" + "Google\\Cloud\\Dlp\\": "src" } } } diff --git a/Dlp/tests/system/bootstrap.php b/Dlp/tests/system/bootstrap.php index 54420c6632cc..b3f22de9e969 100644 --- a/Dlp/tests/system/bootstrap.php +++ b/Dlp/tests/system/bootstrap.php @@ -2,23 +2,8 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Core\Testing\System\SystemTestCase; - if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( 'Please set the \'GOOGLE_CLOUD_PHP_TESTS_KEY_PATH\' env var to run the system tests' ); } - -SystemTestCase::setupQueue(); - -$pid = getmypid(); -register_shutdown_function(function () use ($pid) { - // Skip flushing deletion queue if exiting a forked process. - if ($pid !== getmypid()) { - return; - } - - // This should always be last. - SystemTestCase::processQueue(); -}); diff --git a/ErrorReporting/composer.json b/ErrorReporting/composer.json index bba777e7751f..d3e409af84de 100644 --- a/ErrorReporting/composer.json +++ b/ErrorReporting/composer.json @@ -22,7 +22,7 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\ErrorReporting\\": "" + "Google\\Cloud\\ErrorReporting\\": "src" } } } diff --git a/ErrorReporting/tests/system/bootstrap.php b/ErrorReporting/tests/system/bootstrap.php index 54420c6632cc..b3f22de9e969 100644 --- a/ErrorReporting/tests/system/bootstrap.php +++ b/ErrorReporting/tests/system/bootstrap.php @@ -2,23 +2,8 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Core\Testing\System\SystemTestCase; - if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( 'Please set the \'GOOGLE_CLOUD_PHP_TESTS_KEY_PATH\' env var to run the system tests' ); } - -SystemTestCase::setupQueue(); - -$pid = getmypid(); -register_shutdown_function(function () use ($pid) { - // Skip flushing deletion queue if exiting a forked process. - if ($pid !== getmypid()) { - return; - } - - // This should always be last. - SystemTestCase::processQueue(); -}); diff --git a/Monitoring/composer.json b/Monitoring/composer.json index f8cb3558679c..33126b78b170 100644 --- a/Monitoring/composer.json +++ b/Monitoring/composer.json @@ -20,7 +20,7 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Monitoring\\": "" + "Google\\Cloud\\Monitoring\\": "src" } } } diff --git a/Monitoring/tests/system/bootstrap.php b/Monitoring/tests/system/bootstrap.php index 54420c6632cc..b3f22de9e969 100644 --- a/Monitoring/tests/system/bootstrap.php +++ b/Monitoring/tests/system/bootstrap.php @@ -2,23 +2,8 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Core\Testing\System\SystemTestCase; - if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( 'Please set the \'GOOGLE_CLOUD_PHP_TESTS_KEY_PATH\' env var to run the system tests' ); } - -SystemTestCase::setupQueue(); - -$pid = getmypid(); -register_shutdown_function(function () use ($pid) { - // Skip flushing deletion queue if exiting a forked process. - if ($pid !== getmypid()) { - return; - } - - // This should always be last. - SystemTestCase::processQueue(); -}); diff --git a/OsLogin/composer.json b/OsLogin/composer.json index 5fb9126815ee..c418be680894 100644 --- a/OsLogin/composer.json +++ b/OsLogin/composer.json @@ -5,7 +5,7 @@ "minimum-stability": "stable", "autoload": { "psr-4": { - "Google\\Cloud\\OsLogin\\": "" + "Google\\Cloud\\OsLogin\\": "src" } }, "extra": { @@ -20,6 +20,9 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0" + }, "suggest": { "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." } diff --git a/OsLogin/tests/system/OsLoginServiceClientTest.php b/OsLogin/tests/system/OsLoginServiceClientTest.php index 41a4583d5ece..08d0d027371c 100644 --- a/OsLogin/tests/system/OsLoginServiceClientTest.php +++ b/OsLogin/tests/system/OsLoginServiceClientTest.php @@ -18,11 +18,11 @@ namespace Google\Cloud\Tests\System\Container; use Google\Auth\CredentialsLoader; -use Google\Cloud\Core\Testing\System\SystemTestCase; use Google\Cloud\OsLogin\V1beta\OsLoginServiceClient; use Google\Cloud\OsLogin\V1beta\LoginProfile; +use PHPUnit\Framework\TestCase; -class OsLoginServiceClientTest extends SystemTestCase +class OsLoginServiceClientTest extends TestCase { protected static $grpcClient; protected static $restClient; diff --git a/OsLogin/tests/system/bootstrap.php b/OsLogin/tests/system/bootstrap.php index 54420c6632cc..b3f22de9e969 100644 --- a/OsLogin/tests/system/bootstrap.php +++ b/OsLogin/tests/system/bootstrap.php @@ -2,23 +2,8 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Core\Testing\System\SystemTestCase; - if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( 'Please set the \'GOOGLE_CLOUD_PHP_TESTS_KEY_PATH\' env var to run the system tests' ); } - -SystemTestCase::setupQueue(); - -$pid = getmypid(); -register_shutdown_function(function () use ($pid) { - // Skip flushing deletion queue if exiting a forked process. - if ($pid !== getmypid()) { - return; - } - - // This should always be last. - SystemTestCase::processQueue(); -}); diff --git a/VideoIntelligence/composer.json b/VideoIntelligence/composer.json index 79a80bd6f03e..7242aeacd909 100644 --- a/VideoIntelligence/composer.json +++ b/VideoIntelligence/composer.json @@ -20,7 +20,7 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\VideoIntelligence\\": "" + "Google\\Cloud\\VideoIntelligence\\": "src" } } } diff --git a/VideoIntelligence/tests/system/bootstrap.php b/VideoIntelligence/tests/system/bootstrap.php index 54420c6632cc..b3f22de9e969 100644 --- a/VideoIntelligence/tests/system/bootstrap.php +++ b/VideoIntelligence/tests/system/bootstrap.php @@ -2,23 +2,8 @@ require __DIR__ . '/../../vendor/autoload.php'; -use Google\Cloud\Core\Testing\System\SystemTestCase; - if (!getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')) { throw new \Exception( 'Please set the \'GOOGLE_CLOUD_PHP_TESTS_KEY_PATH\' env var to run the system tests' ); } - -SystemTestCase::setupQueue(); - -$pid = getmypid(); -register_shutdown_function(function () use ($pid) { - // Skip flushing deletion queue if exiting a forked process. - if ($pid !== getmypid()) { - return; - } - - // This should always be last. - SystemTestCase::processQueue(); -}); From 8b4b19922e0d3ad906771cd01cceb569ecce87b3 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 12:02:06 -0800 Subject: [PATCH 23/59] Update composer files --- BigQuery/composer.json | 2 +- Datastore/composer.json | 2 +- Firestore/composer.json | 2 +- Language/composer.json | 2 +- Logging/composer.json | 2 +- PubSub/composer.json | 2 +- Spanner/composer.json | 2 +- Speech/composer.json | 2 +- Storage/composer.json | 2 +- Trace/composer.json | 2 +- Translate/composer.json | 2 +- Vision/composer.json | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/BigQuery/composer.json b/BigQuery/composer.json index d4fc3907e71b..e53dc142e2cc 100644 --- a/BigQuery/composer.json +++ b/BigQuery/composer.json @@ -41,6 +41,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } diff --git a/Datastore/composer.json b/Datastore/composer.json index bdb3393115f2..c00bf3b19bf7 100644 --- a/Datastore/composer.json +++ b/Datastore/composer.json @@ -35,6 +35,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } diff --git a/Firestore/composer.json b/Firestore/composer.json index 6d07a7308b14..a47e2c7a2c4d 100644 --- a/Firestore/composer.json +++ b/Firestore/composer.json @@ -42,6 +42,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } diff --git a/Language/composer.json b/Language/composer.json index 1d32eb29f92a..c642c5ceb029 100644 --- a/Language/composer.json +++ b/Language/composer.json @@ -43,6 +43,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } diff --git a/Logging/composer.json b/Logging/composer.json index e8dcf8bfeb87..4d22e5eb5d4b 100644 --- a/Logging/composer.json +++ b/Logging/composer.json @@ -44,6 +44,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } diff --git a/PubSub/composer.json b/PubSub/composer.json index 9aaddd85e07f..21fa6b906103 100644 --- a/PubSub/composer.json +++ b/PubSub/composer.json @@ -41,6 +41,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } diff --git a/Spanner/composer.json b/Spanner/composer.json index 55ba55ae48e4..142d80aa64c3 100644 --- a/Spanner/composer.json +++ b/Spanner/composer.json @@ -41,6 +41,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } diff --git a/Speech/composer.json b/Speech/composer.json index eaefea02fd3f..c1234ea4bde3 100644 --- a/Speech/composer.json +++ b/Speech/composer.json @@ -42,6 +42,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } diff --git a/Storage/composer.json b/Storage/composer.json index 85f9fbb0c73f..a14052dc030c 100644 --- a/Storage/composer.json +++ b/Storage/composer.json @@ -41,6 +41,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } diff --git a/Trace/composer.json b/Trace/composer.json index a465a89516a2..793262dc6ac5 100644 --- a/Trace/composer.json +++ b/Trace/composer.json @@ -45,6 +45,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } diff --git a/Translate/composer.json b/Translate/composer.json index 3fca4ed1b6d6..6e83c343743c 100644 --- a/Translate/composer.json +++ b/Translate/composer.json @@ -35,6 +35,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } diff --git a/Vision/composer.json b/Vision/composer.json index 37ba8bffbb61..0909e1aeebfc 100644 --- a/Vision/composer.json +++ b/Vision/composer.json @@ -43,6 +43,6 @@ }, "repositories": [{ "type": "vcs", - "url": "/usr/local/google/home/michaelbausor/dev/veneer/google-cloud-php-core" + "url": "https://github.com/michaelbausor/google-cloud-php-core.git" }] } From 190e98a8811f92812cadc0e6224105f55d66b016 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Feb 2018 16:20:30 -0800 Subject: [PATCH 24/59] Rename test folders --- .../{snippets => Snippet}/BigQueryClientTest.php | 0 BigQuery/tests/{snippets => Snippet}/BytesTest.php | 0 .../CopyJobConfigurationTest.php | 0 .../tests/{snippets => Snippet}/DatasetTest.php | 0 BigQuery/tests/{snippets => Snippet}/DateTest.php | 0 .../ExtractJobConfigurationTest.php | 0 .../{snippets => Snippet}/InsertResponseTest.php | 0 BigQuery/tests/{snippets => Snippet}/JobTest.php | 0 .../LoadJobConfigurationTest.php | 0 .../QueryJobConfigurationTest.php | 0 .../{snippets => Snippet}/QueryResultsTest.php | 0 BigQuery/tests/{snippets => Snippet}/TableTest.php | 0 BigQuery/tests/{snippets => Snippet}/TimeTest.php | 0 .../tests/{snippets => Snippet}/TimestampTest.php | 0 BigQuery/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../tests/{system => System}/BigQueryTestCase.php | 0 .../{system => System}/LoadDataAndQueryTest.php | 0 .../tests/{system => System}/ManageDatasetsTest.php | 0 .../tests/{system => System}/ManageJobsTest.php | 0 .../tests/{system => System}/ManageTablesTest.php | 0 BigQuery/tests/{system => System}/README.md | 0 BigQuery/tests/{system => System}/bootstrap.php | 0 .../tests/{system => System}/data/table-data.json | 0 .../tests/{system => System}/data/table-schema.json | 0 .../tests/{unit => Unit}/BigQueryClientTest.php | 0 BigQuery/tests/{unit => Unit}/BytesTest.php | 0 .../tests/{unit => Unit}/Connection/RestTest.php | 0 .../{unit => Unit}/CopyJobConfigurationTest.php | 0 BigQuery/tests/{unit => Unit}/DatasetTest.php | 0 BigQuery/tests/{unit => Unit}/DateTest.php | 0 .../{unit => Unit}/Exception/JobExceptionTest.php | 0 .../{unit => Unit}/ExtractJobConfigurationTest.php | 0 .../tests/{unit => Unit}/InsertResponseTest.php | 0 .../{unit => Unit}/JobConfigurationTraitTest.php | 0 BigQuery/tests/{unit => Unit}/JobTest.php | 0 BigQuery/tests/{unit => Unit}/JobWaitTraitTest.php | 0 .../{unit => Unit}/LoadJobConfigurationTest.php | 0 .../{unit => Unit}/QueryJobConfigurationTest.php | 0 BigQuery/tests/{unit => Unit}/QueryResultsTest.php | 0 BigQuery/tests/{unit => Unit}/TableTest.php | 0 BigQuery/tests/{unit => Unit}/TimeTest.php | 0 BigQuery/tests/{unit => Unit}/TimestampTest.php | 0 BigQuery/tests/{unit => Unit}/ValueMapperTest.php | 0 BigQuery/tests/{unit => Unit}/bootstrap.php | 0 Bigtable/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../BigtableInstanceAdminTest.php | 0 Bigtable/tests/{system => System}/bootstrap.php | 0 Bigtable/tests/{unit => Unit}/bootstrap.php | 0 Container/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../{system => System}/ClusterManagerClientTest.php | 0 Container/tests/{system => System}/bootstrap.php | 0 Container/tests/{unit => Unit}/bootstrap.php | 0 Core/tests/{snippets => Snippet}/BlobTest.php | 0 .../{snippets => Snippet}/Compute/MetadataTest.php | 0 Core/tests/{snippets => Snippet}/DurationTest.php | 0 Core/tests/{snippets => Snippet}/GeoPointTest.php | 0 Core/tests/{snippets => Snippet}/Iam/IamTest.php | 0 .../{snippets => Snippet}/Iam/PolicyBuilderTest.php | 0 Core/tests/{snippets => Snippet}/Int64Test.php | 0 .../LongRunning/LongRunningOperationTest.php | 0 .../{snippets => Snippet}/ServiceBuilderTest.php | 0 .../Testing/Snippet/Parser/ParserTest.php | 0 Core/tests/{snippets => Snippet}/TimestampTest.php | 0 Core/tests/{snippets => Snippet}/bootstrap.php | 0 Core/tests/{snippets => Snippet}/keyfile-stub.json | 0 .../{system => System}/Batch/BatchRunnerTest.php | 0 Core/tests/{system => System}/Batch/MyJob.php | 0 Core/tests/{system => System}/bootstrap.php | 0 .../{unit => Unit}/AnonymousCredentialsTest.php | 0 Core/tests/{unit => Unit}/ArrayTraitTest.php | 0 Core/tests/{unit => Unit}/Batch/BatchConfigTest.php | 0 .../{unit => Unit}/Batch/BatchDaemonTraitTest.php | 0 Core/tests/{unit => Unit}/Batch/BatchJobTest.php | 0 Core/tests/{unit => Unit}/Batch/BatchRunnerTest.php | 0 Core/tests/{unit => Unit}/Batch/BatchTraitTest.php | 0 .../{unit => Unit}/Batch/HandleFailureTraitTest.php | 0 .../Batch/InMemoryConfigStorageTest.php | 0 Core/tests/{unit => Unit}/Batch/RetryTest.php | 0 .../{unit => Unit}/Batch/SysvConfigStorageTest.php | 0 .../{unit => Unit}/Batch/SysvProcessorTest.php | 0 Core/tests/{unit => Unit}/CallTraitTest.php | 0 Core/tests/{unit => Unit}/ClientTraitTest.php | 0 Core/tests/{unit => Unit}/Compute/MetadataTest.php | 0 .../{unit => Unit}/ConcurrencyControlTraitTest.php | 0 Core/tests/{unit => Unit}/DurationTest.php | 0 Core/tests/{unit => Unit}/EmulatorTraitTest.php | 0 .../Exception/NotFoundExceptionTest.php | 0 .../Exception/ServiceExceptionTest.php | 0 .../tests/{unit => Unit}/ExponentialBackoffTest.php | 0 Core/tests/{unit => Unit}/Fixtures.php | 0 .../tests/{unit => Unit}/GrpcRequestWrapperTest.php | 0 Core/tests/{unit => Unit}/GrpcTraitTest.php | 0 Core/tests/{unit => Unit}/Iam/IamTest.php | 0 Core/tests/{unit => Unit}/Iam/PolicyBuilderTest.php | 0 Core/tests/{unit => Unit}/Int64Test.php | 0 .../{unit => Unit}/Iterator/ItemIteratorTest.php | 0 .../{unit => Unit}/Iterator/PageIteratorTest.php | 0 Core/tests/{unit => Unit}/JsonTraitTest.php | 0 Core/tests/{unit => Unit}/Lock/CommonLockTrait.php | 0 Core/tests/{unit => Unit}/Lock/FlockLockTest.php | 0 .../tests/{unit => Unit}/Lock/SemaphoreLockTest.php | 0 .../Logger/AppEngineFlexHandlerTest.php | 0 .../Report/EmptyMetadataProviderTest.php | 0 .../Report/GAEFlexMetadataProviderTest.php | 0 .../Report/MetadataProviderUtilsTest.php | 0 .../Report/SimpleMetadataProviderTest.php | 0 Core/tests/{unit => Unit}/RequestBuilderTest.php | 0 Core/tests/{unit => Unit}/RequestWrapperTest.php | 0 Core/tests/{unit => Unit}/RestTraitTest.php | 0 Core/tests/{unit => Unit}/RetryDeciderTraitTest.php | 0 Core/tests/{unit => Unit}/ServiceBuilderTest.php | 0 Core/tests/{unit => Unit}/ServicesNotFoundTest.php | 0 Core/tests/{unit => Unit}/SysvTraitTest.php | 0 Core/tests/{unit => Unit}/TimestampTest.php | 0 .../{unit => Unit}/Upload/MultipartUploaderTest.php | 0 .../{unit => Unit}/Upload/ResumableUploaderTest.php | 0 .../{unit => Unit}/Upload/SignedUrlUploaderTest.php | 0 .../Upload/StreamableUploaderTest.php | 0 Core/tests/{unit => Unit}/UriTraitTest.php | 0 Core/tests/{unit => Unit}/ValidateTraitTest.php | 0 Core/tests/{unit => Unit}/WhitelistTraitTest.php | 0 Core/tests/{unit => Unit}/bootstrap.php | 0 .../fixtures/empty-json-key-fixture.json | 0 .../{unit => Unit}/fixtures/json-key-fixture.json | 0 .../{unit => Unit}/fixtures/service-fixture.json | 0 Dataproc/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../ClusterControllerClientTest.php | 0 Dataproc/tests/{system => System}/bootstrap.php | 0 Dataproc/tests/{unit => Unit}/bootstrap.php | 0 Datastore/tests/{snippets => Snippet}/BlobTest.php | 0 .../{snippets => Snippet}/DatastoreClientTest.php | 0 .../tests/{snippets => Snippet}/EntityTest.php | 0 .../tests/{snippets => Snippet}/GeoPointTest.php | 0 Datastore/tests/{snippets => Snippet}/KeyTest.php | 0 .../{snippets => Snippet}/Query/GqlQueryTest.php | 0 .../tests/{snippets => Snippet}/Query/QueryTest.php | 0 .../ReadOnlyTransactionTest.php | 0 .../tests/{snippets => Snippet}/TransactionTest.php | 0 Datastore/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../tests/{system => System}/AllocateKeyTest.php | 0 .../tests/{system => System}/DatastoreTestCase.php | 0 Datastore/tests/{system => System}/RunQueryTest.php | 0 .../tests/{system => System}/RunTransactionTest.php | 0 .../tests/{system => System}/SaveAndModifyTest.php | 0 Datastore/tests/{system => System}/bootstrap.php | 0 Datastore/tests/{unit => Unit}/BlobTest.php | 0 .../tests/{unit => Unit}/Connection/RestTest.php | 0 .../tests/{unit => Unit}/DatastoreClientTest.php | 0 .../{unit => Unit}/DatastoreSessionHandlerTest.php | 0 .../tests/{unit => Unit}/DatastoreTraitTest.php | 0 .../tests/{unit => Unit}/EntityIteratorTest.php | 0 Datastore/tests/{unit => Unit}/EntityMapperTest.php | 0 .../tests/{unit => Unit}/EntityPageIteratorTest.php | 0 Datastore/tests/{unit => Unit}/EntityTest.php | 0 Datastore/tests/{unit => Unit}/Fixtures.php | 0 Datastore/tests/{unit => Unit}/GeoPointTest.php | 0 Datastore/tests/{unit => Unit}/KeyTest.php | 0 Datastore/tests/{unit => Unit}/OperationTest.php | 0 .../tests/{unit => Unit}/Query/GqlQueryTest.php | 0 Datastore/tests/{unit => Unit}/Query/QueryTest.php | 0 Datastore/tests/{unit => Unit}/TransactionTest.php | 0 Datastore/tests/{unit => Unit}/bootstrap.php | 0 .../fixtures/entity-batch-lookup.json | 0 .../fixtures/entity-lookup-bigsort.json | 0 .../fixtures/entity-result-no-properties.json | 0 .../{unit => Unit}/fixtures/entity-result.json | 0 .../{unit => Unit}/fixtures/query-results.json | 0 Debugger/tests/{snippets => Snippet}/AgentTest.php | 0 .../{snippets => Snippet}/AliasContextTest.php | 0 .../tests/{snippets => Snippet}/BreakpointTest.php | 0 .../CloudRepoSourceContextTest.php | 0 .../{snippets => Snippet}/CloudWorkspaceIdTest.php | 0 .../CloudWorkspaceSourceContextTest.php | 0 Debugger/tests/{snippets => Snippet}/DaemonTest.php | 0 .../tests/{snippets => Snippet}/DebuggeeTest.php | 0 .../{snippets => Snippet}/DebuggerClientTest.php | 0 .../ExtendedSourceContextTest.php | 0 .../{snippets => Snippet}/FormatMessageTest.php | 0 .../GerritSourceContextTest.php | 0 .../{snippets => Snippet}/GitSourceContextTest.php | 0 .../MatchingFileIteratorTest.php | 0 .../{snippets => Snippet}/ProjectRepoIdTest.php | 0 Debugger/tests/{snippets => Snippet}/RepoIdTest.php | 0 .../SourceLocationResolverTest.php | 0 .../{snippets => Snippet}/SourceLocationTest.php | 0 .../tests/{snippets => Snippet}/StackFrameTest.php | 0 .../{snippets => Snippet}/StatusMessageTest.php | 0 .../{snippets => Snippet}/VariableTableTest.php | 0 .../tests/{snippets => Snippet}/VariableTest.php | 0 Debugger/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 Debugger/tests/{system => System}/BasicTest.php | 0 Debugger/tests/{system => System}/E2ETest.php | 0 Debugger/tests/{system => System}/app/.gitignore | 0 .../app/additional-supervisord.conf | 0 Debugger/tests/{system => System}/app/app.yaml | 0 Debugger/tests/{system => System}/app/web/app.php | 0 Debugger/tests/{system => System}/app/web/index.php | 0 Debugger/tests/{system => System}/bootstrap.php | 0 Debugger/tests/{unit => Unit}/AgentTest.php | 0 Debugger/tests/{unit => Unit}/AliasContextTest.php | 0 .../BreakpointStorage/SysvBreakpointStorageTest.php | 0 Debugger/tests/{unit => Unit}/BreakpointTest.php | 0 .../{unit => Unit}/BreakpointValidationTest.php | 0 .../{unit => Unit}/CloudRepoSourceContextTest.php | 0 .../tests/{unit => Unit}/CloudWorkspaceIdTest.php | 0 .../CloudWorkspaceSourceContextTest.php | 0 .../tests/{unit => Unit}/Connection/RestTest.php | 0 Debugger/tests/{unit => Unit}/DaemonTest.php | 0 Debugger/tests/{unit => Unit}/DebuggeeTest.php | 0 .../tests/{unit => Unit}/DebuggerClientTest.php | 0 .../{unit => Unit}/ExtendedSourceContextTest.php | 0 Debugger/tests/{unit => Unit}/FormatMessageTest.php | 0 .../{unit => Unit}/GerritSourceContextTest.php | 0 .../tests/{unit => Unit}/GitSourceContextTest.php | 0 Debugger/tests/{unit => Unit}/JsonTestTrait.php | 0 .../{unit => Unit}/MatchingFileIteratorTest.php | 0 Debugger/tests/{unit => Unit}/ProjectRepoIdTest.php | 0 Debugger/tests/{unit => Unit}/RepoIdTest.php | 0 .../{unit => Unit}/SourceLocationResolverTest.php | 0 .../tests/{unit => Unit}/SourceLocationTest.php | 0 Debugger/tests/{unit => Unit}/StackFrameTest.php | 0 Debugger/tests/{unit => Unit}/StatusMessageTest.php | 0 Debugger/tests/{unit => Unit}/VariableTableTest.php | 0 Debugger/tests/{unit => Unit}/VariableTest.php | 0 Debugger/tests/{unit => Unit}/bootstrap.php | 0 Debugger/tests/{unit => Unit}/data/file.php | 0 .../{unit => Unit}/data/nested/folder/file2.php | 0 .../tests/{unit => Unit}/data/source-context.json | 0 Dlp/tests/{snippets => Snippet}/bootstrap.php | 0 Dlp/tests/{snippets => Snippet}/keyfile-stub.json | 0 Dlp/tests/{system => System}/bootstrap.php | 0 Dlp/tests/{unit => Unit}/bootstrap.php | 0 .../tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../tests/{system => System}/bootstrap.php | 0 .../tests/{unit => Unit}/BootstrapTest.php | 0 ErrorReporting/tests/{unit => Unit}/bootstrap.php | 0 .../tests/{unit => Unit}/fakeGlobalFunctions.php | 0 .../CollectionReferenceTest.php | 0 .../{snippets => Snippet}/DocumentReferenceTest.php | 0 .../{snippets => Snippet}/DocumentSnapshotTest.php | 0 .../tests/{snippets => Snippet}/FieldPathTest.php | 0 .../tests/{snippets => Snippet}/FieldValueTest.php | 0 .../{snippets => Snippet}/FirestoreClientTest.php | 0 .../{snippets => Snippet}/QuerySnapshotTest.php | 0 Firestore/tests/{snippets => Snippet}/QueryTest.php | 0 .../tests/{snippets => Snippet}/TransactionTest.php | 0 .../tests/{snippets => Snippet}/WriteBatchTest.php | 0 Firestore/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../DocumentAndCollectionTest.php | 0 .../tests/{system => System}/FirestoreTestCase.php | 0 Firestore/tests/{system => System}/QueryTest.php | 0 .../tests/{system => System}/TransactionTest.php | 0 .../tests/{system => System}/ValueMapperTest.php | 0 Firestore/tests/{system => System}/bootstrap.php | 0 .../{unit => Unit}/CollectionReferenceTest.php | 0 .../tests/{unit => Unit}/Connection/GrpcTest.php | 0 .../tests/{unit => Unit}/DocumentReferenceTest.php | 0 .../tests/{unit => Unit}/DocumentSnapshotTest.php | 0 Firestore/tests/{unit => Unit}/FieldPathTest.php | 0 .../tests/{unit => Unit}/FirestoreClientTest.php | 0 Firestore/tests/{unit => Unit}/PathTraitTest.php | 0 .../tests/{unit => Unit}/QuerySnapshotTest.php | 0 Firestore/tests/{unit => Unit}/QueryTest.php | 0 .../tests/{unit => Unit}/SnapshotTraitTest.php | 0 Firestore/tests/{unit => Unit}/TransactionTest.php | 0 Firestore/tests/{unit => Unit}/ValueMapperTest.php | 0 Firestore/tests/{unit => Unit}/WriteBatchTest.php | 0 Firestore/tests/{unit => Unit}/bootstrap.php | 0 .../tests/{snippets => Snippet}/AnnotationTest.php | 0 .../{snippets => Snippet}/LanguageClientTest.php | 0 Language/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 Language/tests/{system => System}/AnalyzeTest.php | 0 .../tests/{system => System}/LanguageTestCase.php | 0 Language/tests/{system => System}/bootstrap.php | 0 Language/tests/{unit => Unit}/AnnotationTest.php | 0 .../tests/{unit => Unit}/Connection/RestTest.php | 0 .../tests/{unit => Unit}/LanguageClientTest.php | 0 Language/tests/{unit => Unit}/bootstrap.php | 0 Logging/tests/{snippets => Snippet}/EntryTest.php | 0 Logging/tests/{snippets => Snippet}/LoggerTest.php | 0 .../{snippets => Snippet}/LoggingClientTest.php | 0 Logging/tests/{snippets => Snippet}/MetricTest.php | 0 .../tests/{snippets => Snippet}/PsrLoggerTest.php | 0 Logging/tests/{snippets => Snippet}/SinkTest.php | 0 Logging/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../tests/{system => System}/LoggingTestCase.php | 0 .../tests/{system => System}/ManageMetricsTest.php | 0 .../tests/{system => System}/ManageSinksTest.php | 0 .../{system => System}/WriteAndListEntryTest.php | 0 Logging/tests/{system => System}/bootstrap.php | 0 .../tests/{unit => Unit}/Connection/GrpcTest.php | 0 .../tests/{unit => Unit}/Connection/RestTest.php | 0 Logging/tests/{unit => Unit}/LoggerTest.php | 0 Logging/tests/{unit => Unit}/LoggingClientTest.php | 0 Logging/tests/{unit => Unit}/MetricTest.php | 0 Logging/tests/{unit => Unit}/PsrLoggerBatchTest.php | 0 .../{unit => Unit}/PsrLoggerCompatibilityTest.php | 0 Logging/tests/{unit => Unit}/PsrLoggerTest.php | 0 Logging/tests/{unit => Unit}/SinkTest.php | 0 Logging/tests/{unit => Unit}/bootstrap.php | 0 .../tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 Monitoring/tests/{system => System}/bootstrap.php | 0 Monitoring/tests/{unit => Unit}/bootstrap.php | 0 OsLogin/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../{system => System}/OsLoginServiceClientTest.php | 0 OsLogin/tests/{system => System}/bootstrap.php | 0 OsLogin/tests/{unit => Unit}/bootstrap.php | 0 .../{snippets => Snippet}/BatchPublisherTest.php | 0 PubSub/tests/{snippets => Snippet}/MessageTest.php | 0 .../{snippets => Snippet}/PubSubClientTest.php | 0 PubSub/tests/{snippets => Snippet}/SnapshotTest.php | 0 .../{snippets => Snippet}/SubscriptionTest.php | 0 PubSub/tests/{snippets => Snippet}/TopicTest.php | 0 PubSub/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../{system => System}/ManageIAMPoliciesTest.php | 0 .../{system => System}/ManageSubscriptionsTest.php | 0 .../tests/{system => System}/ManageTopicsTest.php | 0 PubSub/tests/{system => System}/PubSubTestCase.php | 0 .../tests/{system => System}/PublishAndPullTest.php | 0 PubSub/tests/{system => System}/bootstrap.php | 0 PubSub/tests/{unit => Unit}/BatchPublisherTest.php | 0 PubSub/tests/{unit => Unit}/Connection/GrpcTest.php | 0 .../Connection/IamSubscriptionTest.php | 0 .../{unit => Unit}/Connection/IamTopicTest.php | 0 PubSub/tests/{unit => Unit}/Connection/RestTest.php | 0 .../{unit => Unit}/IncomingMessageTraitTest.php | 0 PubSub/tests/{unit => Unit}/MessageTest.php | 0 PubSub/tests/{unit => Unit}/PubSubClientTest.php | 0 .../tests/{unit => Unit}/ResourceNameTraitTest.php | 0 PubSub/tests/{unit => Unit}/SnapshotTest.php | 0 PubSub/tests/{unit => Unit}/SubscriptionTest.php | 0 PubSub/tests/{unit => Unit}/TopicTest.php | 0 PubSub/tests/{unit => Unit}/bootstrap.php | 0 Spanner/tests/{snippets => Snippet}/BytesTest.php | 0 .../tests/{snippets => Snippet}/DatabaseTest.php | 0 Spanner/tests/{snippets => Snippet}/DateTest.php | 0 .../tests/{snippets => Snippet}/DurationTest.php | 0 .../InstanceConfigurationTest.php | 0 .../tests/{snippets => Snippet}/InstanceTest.php | 0 .../tests/{snippets => Snippet}/KeyRangeTest.php | 0 Spanner/tests/{snippets => Snippet}/KeySetTest.php | 0 Spanner/tests/{snippets => Snippet}/ResultTest.php | 0 .../Session/CacheSessionPoolTest.php | 0 .../tests/{snippets => Snippet}/SnapshotTest.php | 0 .../{snippets => Snippet}/SpannerClientTest.php | 0 .../tests/{snippets => Snippet}/TimestampTest.php | 0 .../tests/{snippets => Snippet}/TransactionTest.php | 0 Spanner/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 Spanner/tests/{system => System}/AdminTest.php | 0 Spanner/tests/{system => System}/LargeReadTest.php | 0 Spanner/tests/{system => System}/OperationsTest.php | 0 Spanner/tests/{system => System}/QueryTest.php | 0 Spanner/tests/{system => System}/ReadTest.php | 0 Spanner/tests/{system => System}/SnapshotTest.php | 0 .../tests/{system => System}/SpannerTestCase.php | 0 .../tests/{system => System}/TransactionTest.php | 0 Spanner/tests/{system => System}/WriteTest.php | 0 Spanner/tests/{system => System}/bootstrap.php | 0 .../pcntl/AbortedErrorCausesRetry.php | 0 ...currentTransactionsIncrementValueWithExecute.php | 0 ...ConcurrentTransactionsIncrementValueWithRead.php | 0 .../pcntl/forked-process-test.php | 0 Spanner/tests/{unit => Unit}/BytesTest.php | 0 .../tests/{unit => Unit}/Connection/GrpcTest.php | 0 .../{unit => Unit}/Connection/IamDatabaseTest.php | 0 .../{unit => Unit}/Connection/IamInstanceTest.php | 0 .../Connection/LongRunningConnectionTest.php | 0 Spanner/tests/{unit => Unit}/DatabaseTest.php | 0 Spanner/tests/{unit => Unit}/DateTest.php | 0 Spanner/tests/{unit => Unit}/DurationTest.php | 0 Spanner/tests/{unit => Unit}/Fixtures.php | 0 .../{unit => Unit}/InstanceConfigurationTest.php | 0 Spanner/tests/{unit => Unit}/InstanceTest.php | 0 Spanner/tests/{unit => Unit}/KeyRangeTest.php | 0 Spanner/tests/{unit => Unit}/KeySetTest.php | 0 Spanner/tests/{unit => Unit}/OperationTest.php | 0 Spanner/tests/{unit => Unit}/ResultTest.php | 0 Spanner/tests/{unit => Unit}/ResultTestTrait.php | 0 .../{unit => Unit}/Session/CacheSessionPoolTest.php | 0 Spanner/tests/{unit => Unit}/SnapshotTest.php | 0 Spanner/tests/{unit => Unit}/SpannerClientTest.php | 0 Spanner/tests/{unit => Unit}/TimestampTest.php | 0 .../TransactionConfigurationTraitTest.php | 0 Spanner/tests/{unit => Unit}/TransactionTest.php | 0 .../tests/{unit => Unit}/TransactionTypeTest.php | 0 Spanner/tests/{unit => Unit}/ValueMapperTest.php | 0 Spanner/tests/{unit => Unit}/bootstrap.php | 0 Spanner/tests/{unit => Unit}/fixtures/instance.json | 0 .../fixtures/streaming-read-acceptance-test.json | 0 .../tests/{snippets => Snippet}/OperationTest.php | 0 Speech/tests/{snippets => Snippet}/ResultTest.php | 0 .../{snippets => Snippet}/SpeechClientTest.php | 0 Speech/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/fixtures/demo.flac | Bin .../tests/{snippets => Snippet}/keyfile-stub.json | 0 Speech/tests/{system => System}/bootstrap.php | 0 Speech/tests/{unit => Unit}/Connection/RestTest.php | 0 Speech/tests/{unit => Unit}/OperationTest.php | 0 Speech/tests/{unit => Unit}/ResultTest.php | 0 Speech/tests/{unit => Unit}/SpeechClientTest.php | 0 Speech/tests/{unit => Unit}/bootstrap.php | 0 Speech/tests/{unit => Unit}/data/brooklyn.flac | Bin Storage/tests/{snippets => Snippet}/AclTest.php | 0 Storage/tests/{snippets => Snippet}/BucketTest.php | 0 .../{snippets => Snippet}/NotificationTest.php | 0 .../{snippets => Snippet}/StorageClientTest.php | 0 .../{snippets => Snippet}/StorageObjectTest.php | 0 Storage/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 Storage/tests/{system => System}/ManageAclTest.php | 0 .../tests/{system => System}/ManageBucketsTest.php | 0 .../{system => System}/ManageNotificationsTest.php | 0 .../tests/{system => System}/ManageObjectsTest.php | 0 Storage/tests/{system => System}/README.md | 0 .../tests/{system => System}/RequesterPaysTest.php | 0 Storage/tests/{system => System}/SignedUrlTest.php | 0 .../tests/{system => System}/StorageTestCase.php | 0 .../StreamWrapper/DirectoryTest.php | 0 .../{system => System}/StreamWrapper/ImageTest.php | 0 .../{system => System}/StreamWrapper/ReadTest.php | 0 .../{system => System}/StreamWrapper/RenameTest.php | 0 .../StreamWrapper/StreamWrapperTestCase.php | 0 .../StreamWrapper/UrlStatTest.php | 0 .../{system => System}/StreamWrapper/WriteTest.php | 0 .../tests/{system => System}/UploadObjectsTest.php | 0 Storage/tests/{system => System}/bootstrap.php | 0 Storage/tests/{system => System}/data/5mb.txt | 0 .../data/CloudPlatform_128px_Retina.png | Bin Storage/tests/{unit => Unit}/AclTest.php | 0 Storage/tests/{unit => Unit}/BucketTest.php | 0 .../{unit => Unit}/Connection/IamBucketTest.php | 0 .../tests/{unit => Unit}/Connection/RestTest.php | 0 .../tests/{unit => Unit}/EncryptionTraitTest.php | 0 Storage/tests/{unit => Unit}/NotificationTest.php | 0 Storage/tests/{unit => Unit}/ObjectIteratorTest.php | 0 .../tests/{unit => Unit}/ObjectPageIteratorTest.php | 0 Storage/tests/{unit => Unit}/ReadStreamTest.php | 0 Storage/tests/{unit => Unit}/RequesterPaysTest.php | 0 Storage/tests/{unit => Unit}/StorageClientTest.php | 0 Storage/tests/{unit => Unit}/StorageObjectTest.php | 0 Storage/tests/{unit => Unit}/StreamWrapperTest.php | 0 Storage/tests/{unit => Unit}/WriteStreamTest.php | 0 Storage/tests/{unit => Unit}/bootstrap.php | 0 Storage/tests/{unit => Unit}/data/logo.svg | 0 .../tests/{snippets => Snippet}/AnnotationTest.php | 0 .../tests/{snippets => Snippet}/AttributesTest.php | 0 Trace/tests/{snippets => Snippet}/LinkTest.php | 0 .../{snippets => Snippet}/MessageEventTest.php | 0 Trace/tests/{snippets => Snippet}/SpanTest.php | 0 .../tests/{snippets => Snippet}/StackTraceTest.php | 0 Trace/tests/{snippets => Snippet}/StatusTest.php | 0 .../tests/{snippets => Snippet}/TraceClientTest.php | 0 Trace/tests/{snippets => Snippet}/TraceTest.php | 0 Trace/tests/{snippets => Snippet}/bootstrap.php | 0 Trace/tests/{snippets => Snippet}/keyfile-stub.json | 0 Trace/tests/{system => System}/BasicTest.php | 0 Trace/tests/{system => System}/bootstrap.php | 0 Trace/tests/{unit => Unit}/AnnotationTest.php | 0 Trace/tests/{unit => Unit}/AttributeTraitTest.php | 0 Trace/tests/{unit => Unit}/AttributesTest.php | 0 Trace/tests/{unit => Unit}/Connection/RestTest.php | 0 Trace/tests/{unit => Unit}/LinkTest.php | 0 Trace/tests/{unit => Unit}/MessageEventTest.php | 0 Trace/tests/{unit => Unit}/SpanTest.php | 0 Trace/tests/{unit => Unit}/StackTraceTest.php | 0 Trace/tests/{unit => Unit}/StatusTest.php | 0 Trace/tests/{unit => Unit}/TimestampTraitTest.php | 0 Trace/tests/{unit => Unit}/TraceClientTest.php | 0 Trace/tests/{unit => Unit}/TraceTest.php | 0 Trace/tests/{unit => Unit}/bootstrap.php | 0 .../{snippets => Snippet}/TranslateClientTest.php | 0 Translate/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../tests/{system => System}/TranslateTest.php | 0 .../tests/{system => System}/TranslateTestCase.php | 0 Translate/tests/{system => System}/bootstrap.php | 0 .../tests/{unit => Unit}/Connection/RestTest.php | 0 .../tests/{unit => Unit}/TranslateClientTest.php | 0 Translate/tests/{unit => Unit}/bootstrap.php | 0 .../tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 .../tests/{system => System}/bootstrap.php | 0 .../tests/{unit => Unit}/bootstrap.php | 0 .../Annotation/AbstractFeatureTest.php | 0 .../Annotation/CropHintTest.php | 0 .../Annotation/DocumentTest.php | 0 .../{snippets => Snippet}/Annotation/EntityTest.php | 0 .../Annotation/Face/LandmarksTest.php | 0 .../{snippets => Snippet}/Annotation/FaceTest.php | 0 .../Annotation/ImagePropertiesTest.php | 0 .../Annotation/SafeSearchTest.php | 0 .../Annotation/Web/WebEntityTest.php | 0 .../Annotation/Web/WebImageTest.php | 0 .../Annotation/Web/WebPageTest.php | 0 .../{snippets => Snippet}/Annotation/WebTest.php | 0 .../tests/{snippets => Snippet}/AnnotationTest.php | 0 Vision/tests/{snippets => Snippet}/ImageTest.php | 0 .../{snippets => Snippet}/VisionClientTest.php | 0 Vision/tests/{snippets => Snippet}/bootstrap.php | 0 .../tests/{snippets => Snippet}/keyfile-stub.json | 0 Vision/tests/{system => System}/AnnotationsTest.php | 0 Vision/tests/{system => System}/VisionTestCase.php | 0 Vision/tests/{system => System}/bootstrap.php | 0 Vision/tests/{system => System}/fixtures/google.jpg | Bin .../tests/{system => System}/fixtures/landmark.jpg | Bin Vision/tests/{system => System}/fixtures/obama.jpg | Bin Vision/tests/{system => System}/fixtures/text.jpg | Bin .../{unit => Unit}/Annotation/CropHintTest.php | 0 .../{unit => Unit}/Annotation/DocumentTest.php | 0 .../tests/{unit => Unit}/Annotation/EntityTest.php | 0 .../Annotation/Face/LandmarksTest.php | 0 Vision/tests/{unit => Unit}/Annotation/FaceTest.php | 0 .../Annotation/LikelihoodTraitTest.php | 0 .../{unit => Unit}/Annotation/SafeSearchTest.php | 0 .../{unit => Unit}/Annotation/Web/WebEntityTest.php | 0 .../{unit => Unit}/Annotation/Web/WebImageTest.php | 0 .../{unit => Unit}/Annotation/Web/WebPageTest.php | 0 Vision/tests/{unit => Unit}/Annotation/WebTest.php | 0 Vision/tests/{unit => Unit}/AnnotationTest.php | 0 Vision/tests/{unit => Unit}/Connection/RestTest.php | 0 Vision/tests/{unit => Unit}/Fixtures.php | 0 Vision/tests/{unit => Unit}/ImageTest.php | 0 Vision/tests/{unit => Unit}/VisionClientTest.php | 0 Vision/tests/{unit => Unit}/bootstrap.php | 0 .../tests/{unit => Unit}/fixtures/eiffel-tower.jpg | Bin .../{unit => Unit}/fixtures/face-landmarks.json | 0 540 files changed, 0 insertions(+), 0 deletions(-) rename BigQuery/tests/{snippets => Snippet}/BigQueryClientTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/BytesTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/CopyJobConfigurationTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/DatasetTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/DateTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/ExtractJobConfigurationTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/InsertResponseTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/JobTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/LoadJobConfigurationTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/QueryJobConfigurationTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/QueryResultsTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/TableTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/TimeTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/TimestampTest.php (100%) rename BigQuery/tests/{snippets => Snippet}/bootstrap.php (100%) rename BigQuery/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename BigQuery/tests/{system => System}/BigQueryTestCase.php (100%) rename BigQuery/tests/{system => System}/LoadDataAndQueryTest.php (100%) rename BigQuery/tests/{system => System}/ManageDatasetsTest.php (100%) rename BigQuery/tests/{system => System}/ManageJobsTest.php (100%) rename BigQuery/tests/{system => System}/ManageTablesTest.php (100%) rename BigQuery/tests/{system => System}/README.md (100%) rename BigQuery/tests/{system => System}/bootstrap.php (100%) rename BigQuery/tests/{system => System}/data/table-data.json (100%) rename BigQuery/tests/{system => System}/data/table-schema.json (100%) rename BigQuery/tests/{unit => Unit}/BigQueryClientTest.php (100%) rename BigQuery/tests/{unit => Unit}/BytesTest.php (100%) rename BigQuery/tests/{unit => Unit}/Connection/RestTest.php (100%) rename BigQuery/tests/{unit => Unit}/CopyJobConfigurationTest.php (100%) rename BigQuery/tests/{unit => Unit}/DatasetTest.php (100%) rename BigQuery/tests/{unit => Unit}/DateTest.php (100%) rename BigQuery/tests/{unit => Unit}/Exception/JobExceptionTest.php (100%) rename BigQuery/tests/{unit => Unit}/ExtractJobConfigurationTest.php (100%) rename BigQuery/tests/{unit => Unit}/InsertResponseTest.php (100%) rename BigQuery/tests/{unit => Unit}/JobConfigurationTraitTest.php (100%) rename BigQuery/tests/{unit => Unit}/JobTest.php (100%) rename BigQuery/tests/{unit => Unit}/JobWaitTraitTest.php (100%) rename BigQuery/tests/{unit => Unit}/LoadJobConfigurationTest.php (100%) rename BigQuery/tests/{unit => Unit}/QueryJobConfigurationTest.php (100%) rename BigQuery/tests/{unit => Unit}/QueryResultsTest.php (100%) rename BigQuery/tests/{unit => Unit}/TableTest.php (100%) rename BigQuery/tests/{unit => Unit}/TimeTest.php (100%) rename BigQuery/tests/{unit => Unit}/TimestampTest.php (100%) rename BigQuery/tests/{unit => Unit}/ValueMapperTest.php (100%) rename BigQuery/tests/{unit => Unit}/bootstrap.php (100%) rename Bigtable/tests/{snippets => Snippet}/bootstrap.php (100%) rename Bigtable/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Bigtable/tests/{system => System}/BigtableInstanceAdminTest.php (100%) rename Bigtable/tests/{system => System}/bootstrap.php (100%) rename Bigtable/tests/{unit => Unit}/bootstrap.php (100%) rename Container/tests/{snippets => Snippet}/bootstrap.php (100%) rename Container/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Container/tests/{system => System}/ClusterManagerClientTest.php (100%) rename Container/tests/{system => System}/bootstrap.php (100%) rename Container/tests/{unit => Unit}/bootstrap.php (100%) rename Core/tests/{snippets => Snippet}/BlobTest.php (100%) rename Core/tests/{snippets => Snippet}/Compute/MetadataTest.php (100%) rename Core/tests/{snippets => Snippet}/DurationTest.php (100%) rename Core/tests/{snippets => Snippet}/GeoPointTest.php (100%) rename Core/tests/{snippets => Snippet}/Iam/IamTest.php (100%) rename Core/tests/{snippets => Snippet}/Iam/PolicyBuilderTest.php (100%) rename Core/tests/{snippets => Snippet}/Int64Test.php (100%) rename Core/tests/{snippets => Snippet}/LongRunning/LongRunningOperationTest.php (100%) rename Core/tests/{snippets => Snippet}/ServiceBuilderTest.php (100%) rename Core/tests/{snippets => Snippet}/Testing/Snippet/Parser/ParserTest.php (100%) rename Core/tests/{snippets => Snippet}/TimestampTest.php (100%) rename Core/tests/{snippets => Snippet}/bootstrap.php (100%) rename Core/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Core/tests/{system => System}/Batch/BatchRunnerTest.php (100%) rename Core/tests/{system => System}/Batch/MyJob.php (100%) rename Core/tests/{system => System}/bootstrap.php (100%) rename Core/tests/{unit => Unit}/AnonymousCredentialsTest.php (100%) rename Core/tests/{unit => Unit}/ArrayTraitTest.php (100%) rename Core/tests/{unit => Unit}/Batch/BatchConfigTest.php (100%) rename Core/tests/{unit => Unit}/Batch/BatchDaemonTraitTest.php (100%) rename Core/tests/{unit => Unit}/Batch/BatchJobTest.php (100%) rename Core/tests/{unit => Unit}/Batch/BatchRunnerTest.php (100%) rename Core/tests/{unit => Unit}/Batch/BatchTraitTest.php (100%) rename Core/tests/{unit => Unit}/Batch/HandleFailureTraitTest.php (100%) rename Core/tests/{unit => Unit}/Batch/InMemoryConfigStorageTest.php (100%) rename Core/tests/{unit => Unit}/Batch/RetryTest.php (100%) rename Core/tests/{unit => Unit}/Batch/SysvConfigStorageTest.php (100%) rename Core/tests/{unit => Unit}/Batch/SysvProcessorTest.php (100%) rename Core/tests/{unit => Unit}/CallTraitTest.php (100%) rename Core/tests/{unit => Unit}/ClientTraitTest.php (100%) rename Core/tests/{unit => Unit}/Compute/MetadataTest.php (100%) rename Core/tests/{unit => Unit}/ConcurrencyControlTraitTest.php (100%) rename Core/tests/{unit => Unit}/DurationTest.php (100%) rename Core/tests/{unit => Unit}/EmulatorTraitTest.php (100%) rename Core/tests/{unit => Unit}/Exception/NotFoundExceptionTest.php (100%) rename Core/tests/{unit => Unit}/Exception/ServiceExceptionTest.php (100%) rename Core/tests/{unit => Unit}/ExponentialBackoffTest.php (100%) rename Core/tests/{unit => Unit}/Fixtures.php (100%) rename Core/tests/{unit => Unit}/GrpcRequestWrapperTest.php (100%) rename Core/tests/{unit => Unit}/GrpcTraitTest.php (100%) rename Core/tests/{unit => Unit}/Iam/IamTest.php (100%) rename Core/tests/{unit => Unit}/Iam/PolicyBuilderTest.php (100%) rename Core/tests/{unit => Unit}/Int64Test.php (100%) rename Core/tests/{unit => Unit}/Iterator/ItemIteratorTest.php (100%) rename Core/tests/{unit => Unit}/Iterator/PageIteratorTest.php (100%) rename Core/tests/{unit => Unit}/JsonTraitTest.php (100%) rename Core/tests/{unit => Unit}/Lock/CommonLockTrait.php (100%) rename Core/tests/{unit => Unit}/Lock/FlockLockTest.php (100%) rename Core/tests/{unit => Unit}/Lock/SemaphoreLockTest.php (100%) rename Core/tests/{unit => Unit}/Logger/AppEngineFlexHandlerTest.php (100%) rename Core/tests/{unit => Unit}/Report/EmptyMetadataProviderTest.php (100%) rename Core/tests/{unit => Unit}/Report/GAEFlexMetadataProviderTest.php (100%) rename Core/tests/{unit => Unit}/Report/MetadataProviderUtilsTest.php (100%) rename Core/tests/{unit => Unit}/Report/SimpleMetadataProviderTest.php (100%) rename Core/tests/{unit => Unit}/RequestBuilderTest.php (100%) rename Core/tests/{unit => Unit}/RequestWrapperTest.php (100%) rename Core/tests/{unit => Unit}/RestTraitTest.php (100%) rename Core/tests/{unit => Unit}/RetryDeciderTraitTest.php (100%) rename Core/tests/{unit => Unit}/ServiceBuilderTest.php (100%) rename Core/tests/{unit => Unit}/ServicesNotFoundTest.php (100%) rename Core/tests/{unit => Unit}/SysvTraitTest.php (100%) rename Core/tests/{unit => Unit}/TimestampTest.php (100%) rename Core/tests/{unit => Unit}/Upload/MultipartUploaderTest.php (100%) rename Core/tests/{unit => Unit}/Upload/ResumableUploaderTest.php (100%) rename Core/tests/{unit => Unit}/Upload/SignedUrlUploaderTest.php (100%) rename Core/tests/{unit => Unit}/Upload/StreamableUploaderTest.php (100%) rename Core/tests/{unit => Unit}/UriTraitTest.php (100%) rename Core/tests/{unit => Unit}/ValidateTraitTest.php (100%) rename Core/tests/{unit => Unit}/WhitelistTraitTest.php (100%) rename Core/tests/{unit => Unit}/bootstrap.php (100%) rename Core/tests/{unit => Unit}/fixtures/empty-json-key-fixture.json (100%) rename Core/tests/{unit => Unit}/fixtures/json-key-fixture.json (100%) rename Core/tests/{unit => Unit}/fixtures/service-fixture.json (100%) rename Dataproc/tests/{snippets => Snippet}/bootstrap.php (100%) rename Dataproc/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Dataproc/tests/{system => System}/ClusterControllerClientTest.php (100%) rename Dataproc/tests/{system => System}/bootstrap.php (100%) rename Dataproc/tests/{unit => Unit}/bootstrap.php (100%) rename Datastore/tests/{snippets => Snippet}/BlobTest.php (100%) rename Datastore/tests/{snippets => Snippet}/DatastoreClientTest.php (100%) rename Datastore/tests/{snippets => Snippet}/EntityTest.php (100%) rename Datastore/tests/{snippets => Snippet}/GeoPointTest.php (100%) rename Datastore/tests/{snippets => Snippet}/KeyTest.php (100%) rename Datastore/tests/{snippets => Snippet}/Query/GqlQueryTest.php (100%) rename Datastore/tests/{snippets => Snippet}/Query/QueryTest.php (100%) rename Datastore/tests/{snippets => Snippet}/ReadOnlyTransactionTest.php (100%) rename Datastore/tests/{snippets => Snippet}/TransactionTest.php (100%) rename Datastore/tests/{snippets => Snippet}/bootstrap.php (100%) rename Datastore/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Datastore/tests/{system => System}/AllocateKeyTest.php (100%) rename Datastore/tests/{system => System}/DatastoreTestCase.php (100%) rename Datastore/tests/{system => System}/RunQueryTest.php (100%) rename Datastore/tests/{system => System}/RunTransactionTest.php (100%) rename Datastore/tests/{system => System}/SaveAndModifyTest.php (100%) rename Datastore/tests/{system => System}/bootstrap.php (100%) rename Datastore/tests/{unit => Unit}/BlobTest.php (100%) rename Datastore/tests/{unit => Unit}/Connection/RestTest.php (100%) rename Datastore/tests/{unit => Unit}/DatastoreClientTest.php (100%) rename Datastore/tests/{unit => Unit}/DatastoreSessionHandlerTest.php (100%) rename Datastore/tests/{unit => Unit}/DatastoreTraitTest.php (100%) rename Datastore/tests/{unit => Unit}/EntityIteratorTest.php (100%) rename Datastore/tests/{unit => Unit}/EntityMapperTest.php (100%) rename Datastore/tests/{unit => Unit}/EntityPageIteratorTest.php (100%) rename Datastore/tests/{unit => Unit}/EntityTest.php (100%) rename Datastore/tests/{unit => Unit}/Fixtures.php (100%) rename Datastore/tests/{unit => Unit}/GeoPointTest.php (100%) rename Datastore/tests/{unit => Unit}/KeyTest.php (100%) rename Datastore/tests/{unit => Unit}/OperationTest.php (100%) rename Datastore/tests/{unit => Unit}/Query/GqlQueryTest.php (100%) rename Datastore/tests/{unit => Unit}/Query/QueryTest.php (100%) rename Datastore/tests/{unit => Unit}/TransactionTest.php (100%) rename Datastore/tests/{unit => Unit}/bootstrap.php (100%) rename Datastore/tests/{unit => Unit}/fixtures/entity-batch-lookup.json (100%) rename Datastore/tests/{unit => Unit}/fixtures/entity-lookup-bigsort.json (100%) rename Datastore/tests/{unit => Unit}/fixtures/entity-result-no-properties.json (100%) rename Datastore/tests/{unit => Unit}/fixtures/entity-result.json (100%) rename Datastore/tests/{unit => Unit}/fixtures/query-results.json (100%) rename Debugger/tests/{snippets => Snippet}/AgentTest.php (100%) rename Debugger/tests/{snippets => Snippet}/AliasContextTest.php (100%) rename Debugger/tests/{snippets => Snippet}/BreakpointTest.php (100%) rename Debugger/tests/{snippets => Snippet}/CloudRepoSourceContextTest.php (100%) rename Debugger/tests/{snippets => Snippet}/CloudWorkspaceIdTest.php (100%) rename Debugger/tests/{snippets => Snippet}/CloudWorkspaceSourceContextTest.php (100%) rename Debugger/tests/{snippets => Snippet}/DaemonTest.php (100%) rename Debugger/tests/{snippets => Snippet}/DebuggeeTest.php (100%) rename Debugger/tests/{snippets => Snippet}/DebuggerClientTest.php (100%) rename Debugger/tests/{snippets => Snippet}/ExtendedSourceContextTest.php (100%) rename Debugger/tests/{snippets => Snippet}/FormatMessageTest.php (100%) rename Debugger/tests/{snippets => Snippet}/GerritSourceContextTest.php (100%) rename Debugger/tests/{snippets => Snippet}/GitSourceContextTest.php (100%) rename Debugger/tests/{snippets => Snippet}/MatchingFileIteratorTest.php (100%) rename Debugger/tests/{snippets => Snippet}/ProjectRepoIdTest.php (100%) rename Debugger/tests/{snippets => Snippet}/RepoIdTest.php (100%) rename Debugger/tests/{snippets => Snippet}/SourceLocationResolverTest.php (100%) rename Debugger/tests/{snippets => Snippet}/SourceLocationTest.php (100%) rename Debugger/tests/{snippets => Snippet}/StackFrameTest.php (100%) rename Debugger/tests/{snippets => Snippet}/StatusMessageTest.php (100%) rename Debugger/tests/{snippets => Snippet}/VariableTableTest.php (100%) rename Debugger/tests/{snippets => Snippet}/VariableTest.php (100%) rename Debugger/tests/{snippets => Snippet}/bootstrap.php (100%) rename Debugger/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Debugger/tests/{system => System}/BasicTest.php (100%) rename Debugger/tests/{system => System}/E2ETest.php (100%) rename Debugger/tests/{system => System}/app/.gitignore (100%) rename Debugger/tests/{system => System}/app/additional-supervisord.conf (100%) rename Debugger/tests/{system => System}/app/app.yaml (100%) rename Debugger/tests/{system => System}/app/web/app.php (100%) rename Debugger/tests/{system => System}/app/web/index.php (100%) rename Debugger/tests/{system => System}/bootstrap.php (100%) rename Debugger/tests/{unit => Unit}/AgentTest.php (100%) rename Debugger/tests/{unit => Unit}/AliasContextTest.php (100%) rename Debugger/tests/{unit => Unit}/BreakpointStorage/SysvBreakpointStorageTest.php (100%) rename Debugger/tests/{unit => Unit}/BreakpointTest.php (100%) rename Debugger/tests/{unit => Unit}/BreakpointValidationTest.php (100%) rename Debugger/tests/{unit => Unit}/CloudRepoSourceContextTest.php (100%) rename Debugger/tests/{unit => Unit}/CloudWorkspaceIdTest.php (100%) rename Debugger/tests/{unit => Unit}/CloudWorkspaceSourceContextTest.php (100%) rename Debugger/tests/{unit => Unit}/Connection/RestTest.php (100%) rename Debugger/tests/{unit => Unit}/DaemonTest.php (100%) rename Debugger/tests/{unit => Unit}/DebuggeeTest.php (100%) rename Debugger/tests/{unit => Unit}/DebuggerClientTest.php (100%) rename Debugger/tests/{unit => Unit}/ExtendedSourceContextTest.php (100%) rename Debugger/tests/{unit => Unit}/FormatMessageTest.php (100%) rename Debugger/tests/{unit => Unit}/GerritSourceContextTest.php (100%) rename Debugger/tests/{unit => Unit}/GitSourceContextTest.php (100%) rename Debugger/tests/{unit => Unit}/JsonTestTrait.php (100%) rename Debugger/tests/{unit => Unit}/MatchingFileIteratorTest.php (100%) rename Debugger/tests/{unit => Unit}/ProjectRepoIdTest.php (100%) rename Debugger/tests/{unit => Unit}/RepoIdTest.php (100%) rename Debugger/tests/{unit => Unit}/SourceLocationResolverTest.php (100%) rename Debugger/tests/{unit => Unit}/SourceLocationTest.php (100%) rename Debugger/tests/{unit => Unit}/StackFrameTest.php (100%) rename Debugger/tests/{unit => Unit}/StatusMessageTest.php (100%) rename Debugger/tests/{unit => Unit}/VariableTableTest.php (100%) rename Debugger/tests/{unit => Unit}/VariableTest.php (100%) rename Debugger/tests/{unit => Unit}/bootstrap.php (100%) rename Debugger/tests/{unit => Unit}/data/file.php (100%) rename Debugger/tests/{unit => Unit}/data/nested/folder/file2.php (100%) rename Debugger/tests/{unit => Unit}/data/source-context.json (100%) rename Dlp/tests/{snippets => Snippet}/bootstrap.php (100%) rename Dlp/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Dlp/tests/{system => System}/bootstrap.php (100%) rename Dlp/tests/{unit => Unit}/bootstrap.php (100%) rename ErrorReporting/tests/{snippets => Snippet}/bootstrap.php (100%) rename ErrorReporting/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename ErrorReporting/tests/{system => System}/bootstrap.php (100%) rename ErrorReporting/tests/{unit => Unit}/BootstrapTest.php (100%) rename ErrorReporting/tests/{unit => Unit}/bootstrap.php (100%) rename ErrorReporting/tests/{unit => Unit}/fakeGlobalFunctions.php (100%) rename Firestore/tests/{snippets => Snippet}/CollectionReferenceTest.php (100%) rename Firestore/tests/{snippets => Snippet}/DocumentReferenceTest.php (100%) rename Firestore/tests/{snippets => Snippet}/DocumentSnapshotTest.php (100%) rename Firestore/tests/{snippets => Snippet}/FieldPathTest.php (100%) rename Firestore/tests/{snippets => Snippet}/FieldValueTest.php (100%) rename Firestore/tests/{snippets => Snippet}/FirestoreClientTest.php (100%) rename Firestore/tests/{snippets => Snippet}/QuerySnapshotTest.php (100%) rename Firestore/tests/{snippets => Snippet}/QueryTest.php (100%) rename Firestore/tests/{snippets => Snippet}/TransactionTest.php (100%) rename Firestore/tests/{snippets => Snippet}/WriteBatchTest.php (100%) rename Firestore/tests/{snippets => Snippet}/bootstrap.php (100%) rename Firestore/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Firestore/tests/{system => System}/DocumentAndCollectionTest.php (100%) rename Firestore/tests/{system => System}/FirestoreTestCase.php (100%) rename Firestore/tests/{system => System}/QueryTest.php (100%) rename Firestore/tests/{system => System}/TransactionTest.php (100%) rename Firestore/tests/{system => System}/ValueMapperTest.php (100%) rename Firestore/tests/{system => System}/bootstrap.php (100%) rename Firestore/tests/{unit => Unit}/CollectionReferenceTest.php (100%) rename Firestore/tests/{unit => Unit}/Connection/GrpcTest.php (100%) rename Firestore/tests/{unit => Unit}/DocumentReferenceTest.php (100%) rename Firestore/tests/{unit => Unit}/DocumentSnapshotTest.php (100%) rename Firestore/tests/{unit => Unit}/FieldPathTest.php (100%) rename Firestore/tests/{unit => Unit}/FirestoreClientTest.php (100%) rename Firestore/tests/{unit => Unit}/PathTraitTest.php (100%) rename Firestore/tests/{unit => Unit}/QuerySnapshotTest.php (100%) rename Firestore/tests/{unit => Unit}/QueryTest.php (100%) rename Firestore/tests/{unit => Unit}/SnapshotTraitTest.php (100%) rename Firestore/tests/{unit => Unit}/TransactionTest.php (100%) rename Firestore/tests/{unit => Unit}/ValueMapperTest.php (100%) rename Firestore/tests/{unit => Unit}/WriteBatchTest.php (100%) rename Firestore/tests/{unit => Unit}/bootstrap.php (100%) rename Language/tests/{snippets => Snippet}/AnnotationTest.php (100%) rename Language/tests/{snippets => Snippet}/LanguageClientTest.php (100%) rename Language/tests/{snippets => Snippet}/bootstrap.php (100%) rename Language/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Language/tests/{system => System}/AnalyzeTest.php (100%) rename Language/tests/{system => System}/LanguageTestCase.php (100%) rename Language/tests/{system => System}/bootstrap.php (100%) rename Language/tests/{unit => Unit}/AnnotationTest.php (100%) rename Language/tests/{unit => Unit}/Connection/RestTest.php (100%) rename Language/tests/{unit => Unit}/LanguageClientTest.php (100%) rename Language/tests/{unit => Unit}/bootstrap.php (100%) rename Logging/tests/{snippets => Snippet}/EntryTest.php (100%) rename Logging/tests/{snippets => Snippet}/LoggerTest.php (100%) rename Logging/tests/{snippets => Snippet}/LoggingClientTest.php (100%) rename Logging/tests/{snippets => Snippet}/MetricTest.php (100%) rename Logging/tests/{snippets => Snippet}/PsrLoggerTest.php (100%) rename Logging/tests/{snippets => Snippet}/SinkTest.php (100%) rename Logging/tests/{snippets => Snippet}/bootstrap.php (100%) rename Logging/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Logging/tests/{system => System}/LoggingTestCase.php (100%) rename Logging/tests/{system => System}/ManageMetricsTest.php (100%) rename Logging/tests/{system => System}/ManageSinksTest.php (100%) rename Logging/tests/{system => System}/WriteAndListEntryTest.php (100%) rename Logging/tests/{system => System}/bootstrap.php (100%) rename Logging/tests/{unit => Unit}/Connection/GrpcTest.php (100%) rename Logging/tests/{unit => Unit}/Connection/RestTest.php (100%) rename Logging/tests/{unit => Unit}/LoggerTest.php (100%) rename Logging/tests/{unit => Unit}/LoggingClientTest.php (100%) rename Logging/tests/{unit => Unit}/MetricTest.php (100%) rename Logging/tests/{unit => Unit}/PsrLoggerBatchTest.php (100%) rename Logging/tests/{unit => Unit}/PsrLoggerCompatibilityTest.php (100%) rename Logging/tests/{unit => Unit}/PsrLoggerTest.php (100%) rename Logging/tests/{unit => Unit}/SinkTest.php (100%) rename Logging/tests/{unit => Unit}/bootstrap.php (100%) rename Monitoring/tests/{snippets => Snippet}/bootstrap.php (100%) rename Monitoring/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Monitoring/tests/{system => System}/bootstrap.php (100%) rename Monitoring/tests/{unit => Unit}/bootstrap.php (100%) rename OsLogin/tests/{snippets => Snippet}/bootstrap.php (100%) rename OsLogin/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename OsLogin/tests/{system => System}/OsLoginServiceClientTest.php (100%) rename OsLogin/tests/{system => System}/bootstrap.php (100%) rename OsLogin/tests/{unit => Unit}/bootstrap.php (100%) rename PubSub/tests/{snippets => Snippet}/BatchPublisherTest.php (100%) rename PubSub/tests/{snippets => Snippet}/MessageTest.php (100%) rename PubSub/tests/{snippets => Snippet}/PubSubClientTest.php (100%) rename PubSub/tests/{snippets => Snippet}/SnapshotTest.php (100%) rename PubSub/tests/{snippets => Snippet}/SubscriptionTest.php (100%) rename PubSub/tests/{snippets => Snippet}/TopicTest.php (100%) rename PubSub/tests/{snippets => Snippet}/bootstrap.php (100%) rename PubSub/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename PubSub/tests/{system => System}/ManageIAMPoliciesTest.php (100%) rename PubSub/tests/{system => System}/ManageSubscriptionsTest.php (100%) rename PubSub/tests/{system => System}/ManageTopicsTest.php (100%) rename PubSub/tests/{system => System}/PubSubTestCase.php (100%) rename PubSub/tests/{system => System}/PublishAndPullTest.php (100%) rename PubSub/tests/{system => System}/bootstrap.php (100%) rename PubSub/tests/{unit => Unit}/BatchPublisherTest.php (100%) rename PubSub/tests/{unit => Unit}/Connection/GrpcTest.php (100%) rename PubSub/tests/{unit => Unit}/Connection/IamSubscriptionTest.php (100%) rename PubSub/tests/{unit => Unit}/Connection/IamTopicTest.php (100%) rename PubSub/tests/{unit => Unit}/Connection/RestTest.php (100%) rename PubSub/tests/{unit => Unit}/IncomingMessageTraitTest.php (100%) rename PubSub/tests/{unit => Unit}/MessageTest.php (100%) rename PubSub/tests/{unit => Unit}/PubSubClientTest.php (100%) rename PubSub/tests/{unit => Unit}/ResourceNameTraitTest.php (100%) rename PubSub/tests/{unit => Unit}/SnapshotTest.php (100%) rename PubSub/tests/{unit => Unit}/SubscriptionTest.php (100%) rename PubSub/tests/{unit => Unit}/TopicTest.php (100%) rename PubSub/tests/{unit => Unit}/bootstrap.php (100%) rename Spanner/tests/{snippets => Snippet}/BytesTest.php (100%) rename Spanner/tests/{snippets => Snippet}/DatabaseTest.php (100%) rename Spanner/tests/{snippets => Snippet}/DateTest.php (100%) rename Spanner/tests/{snippets => Snippet}/DurationTest.php (100%) rename Spanner/tests/{snippets => Snippet}/InstanceConfigurationTest.php (100%) rename Spanner/tests/{snippets => Snippet}/InstanceTest.php (100%) rename Spanner/tests/{snippets => Snippet}/KeyRangeTest.php (100%) rename Spanner/tests/{snippets => Snippet}/KeySetTest.php (100%) rename Spanner/tests/{snippets => Snippet}/ResultTest.php (100%) rename Spanner/tests/{snippets => Snippet}/Session/CacheSessionPoolTest.php (100%) rename Spanner/tests/{snippets => Snippet}/SnapshotTest.php (100%) rename Spanner/tests/{snippets => Snippet}/SpannerClientTest.php (100%) rename Spanner/tests/{snippets => Snippet}/TimestampTest.php (100%) rename Spanner/tests/{snippets => Snippet}/TransactionTest.php (100%) rename Spanner/tests/{snippets => Snippet}/bootstrap.php (100%) rename Spanner/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Spanner/tests/{system => System}/AdminTest.php (100%) rename Spanner/tests/{system => System}/LargeReadTest.php (100%) rename Spanner/tests/{system => System}/OperationsTest.php (100%) rename Spanner/tests/{system => System}/QueryTest.php (100%) rename Spanner/tests/{system => System}/ReadTest.php (100%) rename Spanner/tests/{system => System}/SnapshotTest.php (100%) rename Spanner/tests/{system => System}/SpannerTestCase.php (100%) rename Spanner/tests/{system => System}/TransactionTest.php (100%) rename Spanner/tests/{system => System}/WriteTest.php (100%) rename Spanner/tests/{system => System}/bootstrap.php (100%) rename Spanner/tests/{system => System}/pcntl/AbortedErrorCausesRetry.php (100%) rename Spanner/tests/{system => System}/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php (100%) rename Spanner/tests/{system => System}/pcntl/ConcurrentTransactionsIncrementValueWithRead.php (100%) rename Spanner/tests/{system => System}/pcntl/forked-process-test.php (100%) rename Spanner/tests/{unit => Unit}/BytesTest.php (100%) rename Spanner/tests/{unit => Unit}/Connection/GrpcTest.php (100%) rename Spanner/tests/{unit => Unit}/Connection/IamDatabaseTest.php (100%) rename Spanner/tests/{unit => Unit}/Connection/IamInstanceTest.php (100%) rename Spanner/tests/{unit => Unit}/Connection/LongRunningConnectionTest.php (100%) rename Spanner/tests/{unit => Unit}/DatabaseTest.php (100%) rename Spanner/tests/{unit => Unit}/DateTest.php (100%) rename Spanner/tests/{unit => Unit}/DurationTest.php (100%) rename Spanner/tests/{unit => Unit}/Fixtures.php (100%) rename Spanner/tests/{unit => Unit}/InstanceConfigurationTest.php (100%) rename Spanner/tests/{unit => Unit}/InstanceTest.php (100%) rename Spanner/tests/{unit => Unit}/KeyRangeTest.php (100%) rename Spanner/tests/{unit => Unit}/KeySetTest.php (100%) rename Spanner/tests/{unit => Unit}/OperationTest.php (100%) rename Spanner/tests/{unit => Unit}/ResultTest.php (100%) rename Spanner/tests/{unit => Unit}/ResultTestTrait.php (100%) rename Spanner/tests/{unit => Unit}/Session/CacheSessionPoolTest.php (100%) rename Spanner/tests/{unit => Unit}/SnapshotTest.php (100%) rename Spanner/tests/{unit => Unit}/SpannerClientTest.php (100%) rename Spanner/tests/{unit => Unit}/TimestampTest.php (100%) rename Spanner/tests/{unit => Unit}/TransactionConfigurationTraitTest.php (100%) rename Spanner/tests/{unit => Unit}/TransactionTest.php (100%) rename Spanner/tests/{unit => Unit}/TransactionTypeTest.php (100%) rename Spanner/tests/{unit => Unit}/ValueMapperTest.php (100%) rename Spanner/tests/{unit => Unit}/bootstrap.php (100%) rename Spanner/tests/{unit => Unit}/fixtures/instance.json (100%) rename Spanner/tests/{unit => Unit}/fixtures/streaming-read-acceptance-test.json (100%) rename Speech/tests/{snippets => Snippet}/OperationTest.php (100%) rename Speech/tests/{snippets => Snippet}/ResultTest.php (100%) rename Speech/tests/{snippets => Snippet}/SpeechClientTest.php (100%) rename Speech/tests/{snippets => Snippet}/bootstrap.php (100%) rename Speech/tests/{snippets => Snippet}/fixtures/demo.flac (100%) rename Speech/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Speech/tests/{system => System}/bootstrap.php (100%) rename Speech/tests/{unit => Unit}/Connection/RestTest.php (100%) rename Speech/tests/{unit => Unit}/OperationTest.php (100%) rename Speech/tests/{unit => Unit}/ResultTest.php (100%) rename Speech/tests/{unit => Unit}/SpeechClientTest.php (100%) rename Speech/tests/{unit => Unit}/bootstrap.php (100%) rename Speech/tests/{unit => Unit}/data/brooklyn.flac (100%) rename Storage/tests/{snippets => Snippet}/AclTest.php (100%) rename Storage/tests/{snippets => Snippet}/BucketTest.php (100%) rename Storage/tests/{snippets => Snippet}/NotificationTest.php (100%) rename Storage/tests/{snippets => Snippet}/StorageClientTest.php (100%) rename Storage/tests/{snippets => Snippet}/StorageObjectTest.php (100%) rename Storage/tests/{snippets => Snippet}/bootstrap.php (100%) rename Storage/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Storage/tests/{system => System}/ManageAclTest.php (100%) rename Storage/tests/{system => System}/ManageBucketsTest.php (100%) rename Storage/tests/{system => System}/ManageNotificationsTest.php (100%) rename Storage/tests/{system => System}/ManageObjectsTest.php (100%) rename Storage/tests/{system => System}/README.md (100%) rename Storage/tests/{system => System}/RequesterPaysTest.php (100%) rename Storage/tests/{system => System}/SignedUrlTest.php (100%) rename Storage/tests/{system => System}/StorageTestCase.php (100%) rename Storage/tests/{system => System}/StreamWrapper/DirectoryTest.php (100%) rename Storage/tests/{system => System}/StreamWrapper/ImageTest.php (100%) rename Storage/tests/{system => System}/StreamWrapper/ReadTest.php (100%) rename Storage/tests/{system => System}/StreamWrapper/RenameTest.php (100%) rename Storage/tests/{system => System}/StreamWrapper/StreamWrapperTestCase.php (100%) rename Storage/tests/{system => System}/StreamWrapper/UrlStatTest.php (100%) rename Storage/tests/{system => System}/StreamWrapper/WriteTest.php (100%) rename Storage/tests/{system => System}/UploadObjectsTest.php (100%) rename Storage/tests/{system => System}/bootstrap.php (100%) rename Storage/tests/{system => System}/data/5mb.txt (100%) rename Storage/tests/{system => System}/data/CloudPlatform_128px_Retina.png (100%) rename Storage/tests/{unit => Unit}/AclTest.php (100%) rename Storage/tests/{unit => Unit}/BucketTest.php (100%) rename Storage/tests/{unit => Unit}/Connection/IamBucketTest.php (100%) rename Storage/tests/{unit => Unit}/Connection/RestTest.php (100%) rename Storage/tests/{unit => Unit}/EncryptionTraitTest.php (100%) rename Storage/tests/{unit => Unit}/NotificationTest.php (100%) rename Storage/tests/{unit => Unit}/ObjectIteratorTest.php (100%) rename Storage/tests/{unit => Unit}/ObjectPageIteratorTest.php (100%) rename Storage/tests/{unit => Unit}/ReadStreamTest.php (100%) rename Storage/tests/{unit => Unit}/RequesterPaysTest.php (100%) rename Storage/tests/{unit => Unit}/StorageClientTest.php (100%) rename Storage/tests/{unit => Unit}/StorageObjectTest.php (100%) rename Storage/tests/{unit => Unit}/StreamWrapperTest.php (100%) rename Storage/tests/{unit => Unit}/WriteStreamTest.php (100%) rename Storage/tests/{unit => Unit}/bootstrap.php (100%) rename Storage/tests/{unit => Unit}/data/logo.svg (100%) rename Trace/tests/{snippets => Snippet}/AnnotationTest.php (100%) rename Trace/tests/{snippets => Snippet}/AttributesTest.php (100%) rename Trace/tests/{snippets => Snippet}/LinkTest.php (100%) rename Trace/tests/{snippets => Snippet}/MessageEventTest.php (100%) rename Trace/tests/{snippets => Snippet}/SpanTest.php (100%) rename Trace/tests/{snippets => Snippet}/StackTraceTest.php (100%) rename Trace/tests/{snippets => Snippet}/StatusTest.php (100%) rename Trace/tests/{snippets => Snippet}/TraceClientTest.php (100%) rename Trace/tests/{snippets => Snippet}/TraceTest.php (100%) rename Trace/tests/{snippets => Snippet}/bootstrap.php (100%) rename Trace/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Trace/tests/{system => System}/BasicTest.php (100%) rename Trace/tests/{system => System}/bootstrap.php (100%) rename Trace/tests/{unit => Unit}/AnnotationTest.php (100%) rename Trace/tests/{unit => Unit}/AttributeTraitTest.php (100%) rename Trace/tests/{unit => Unit}/AttributesTest.php (100%) rename Trace/tests/{unit => Unit}/Connection/RestTest.php (100%) rename Trace/tests/{unit => Unit}/LinkTest.php (100%) rename Trace/tests/{unit => Unit}/MessageEventTest.php (100%) rename Trace/tests/{unit => Unit}/SpanTest.php (100%) rename Trace/tests/{unit => Unit}/StackTraceTest.php (100%) rename Trace/tests/{unit => Unit}/StatusTest.php (100%) rename Trace/tests/{unit => Unit}/TimestampTraitTest.php (100%) rename Trace/tests/{unit => Unit}/TraceClientTest.php (100%) rename Trace/tests/{unit => Unit}/TraceTest.php (100%) rename Trace/tests/{unit => Unit}/bootstrap.php (100%) rename Translate/tests/{snippets => Snippet}/TranslateClientTest.php (100%) rename Translate/tests/{snippets => Snippet}/bootstrap.php (100%) rename Translate/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Translate/tests/{system => System}/TranslateTest.php (100%) rename Translate/tests/{system => System}/TranslateTestCase.php (100%) rename Translate/tests/{system => System}/bootstrap.php (100%) rename Translate/tests/{unit => Unit}/Connection/RestTest.php (100%) rename Translate/tests/{unit => Unit}/TranslateClientTest.php (100%) rename Translate/tests/{unit => Unit}/bootstrap.php (100%) rename VideoIntelligence/tests/{snippets => Snippet}/bootstrap.php (100%) rename VideoIntelligence/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename VideoIntelligence/tests/{system => System}/bootstrap.php (100%) rename VideoIntelligence/tests/{unit => Unit}/bootstrap.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/AbstractFeatureTest.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/CropHintTest.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/DocumentTest.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/EntityTest.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/Face/LandmarksTest.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/FaceTest.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/ImagePropertiesTest.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/SafeSearchTest.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/Web/WebEntityTest.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/Web/WebImageTest.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/Web/WebPageTest.php (100%) rename Vision/tests/{snippets => Snippet}/Annotation/WebTest.php (100%) rename Vision/tests/{snippets => Snippet}/AnnotationTest.php (100%) rename Vision/tests/{snippets => Snippet}/ImageTest.php (100%) rename Vision/tests/{snippets => Snippet}/VisionClientTest.php (100%) rename Vision/tests/{snippets => Snippet}/bootstrap.php (100%) rename Vision/tests/{snippets => Snippet}/keyfile-stub.json (100%) rename Vision/tests/{system => System}/AnnotationsTest.php (100%) rename Vision/tests/{system => System}/VisionTestCase.php (100%) rename Vision/tests/{system => System}/bootstrap.php (100%) rename Vision/tests/{system => System}/fixtures/google.jpg (100%) rename Vision/tests/{system => System}/fixtures/landmark.jpg (100%) rename Vision/tests/{system => System}/fixtures/obama.jpg (100%) rename Vision/tests/{system => System}/fixtures/text.jpg (100%) rename Vision/tests/{unit => Unit}/Annotation/CropHintTest.php (100%) rename Vision/tests/{unit => Unit}/Annotation/DocumentTest.php (100%) rename Vision/tests/{unit => Unit}/Annotation/EntityTest.php (100%) rename Vision/tests/{unit => Unit}/Annotation/Face/LandmarksTest.php (100%) rename Vision/tests/{unit => Unit}/Annotation/FaceTest.php (100%) rename Vision/tests/{unit => Unit}/Annotation/LikelihoodTraitTest.php (100%) rename Vision/tests/{unit => Unit}/Annotation/SafeSearchTest.php (100%) rename Vision/tests/{unit => Unit}/Annotation/Web/WebEntityTest.php (100%) rename Vision/tests/{unit => Unit}/Annotation/Web/WebImageTest.php (100%) rename Vision/tests/{unit => Unit}/Annotation/Web/WebPageTest.php (100%) rename Vision/tests/{unit => Unit}/Annotation/WebTest.php (100%) rename Vision/tests/{unit => Unit}/AnnotationTest.php (100%) rename Vision/tests/{unit => Unit}/Connection/RestTest.php (100%) rename Vision/tests/{unit => Unit}/Fixtures.php (100%) rename Vision/tests/{unit => Unit}/ImageTest.php (100%) rename Vision/tests/{unit => Unit}/VisionClientTest.php (100%) rename Vision/tests/{unit => Unit}/bootstrap.php (100%) rename Vision/tests/{unit => Unit}/fixtures/eiffel-tower.jpg (100%) rename Vision/tests/{unit => Unit}/fixtures/face-landmarks.json (100%) diff --git a/BigQuery/tests/snippets/BigQueryClientTest.php b/BigQuery/tests/Snippet/BigQueryClientTest.php similarity index 100% rename from BigQuery/tests/snippets/BigQueryClientTest.php rename to BigQuery/tests/Snippet/BigQueryClientTest.php diff --git a/BigQuery/tests/snippets/BytesTest.php b/BigQuery/tests/Snippet/BytesTest.php similarity index 100% rename from BigQuery/tests/snippets/BytesTest.php rename to BigQuery/tests/Snippet/BytesTest.php diff --git a/BigQuery/tests/snippets/CopyJobConfigurationTest.php b/BigQuery/tests/Snippet/CopyJobConfigurationTest.php similarity index 100% rename from BigQuery/tests/snippets/CopyJobConfigurationTest.php rename to BigQuery/tests/Snippet/CopyJobConfigurationTest.php diff --git a/BigQuery/tests/snippets/DatasetTest.php b/BigQuery/tests/Snippet/DatasetTest.php similarity index 100% rename from BigQuery/tests/snippets/DatasetTest.php rename to BigQuery/tests/Snippet/DatasetTest.php diff --git a/BigQuery/tests/snippets/DateTest.php b/BigQuery/tests/Snippet/DateTest.php similarity index 100% rename from BigQuery/tests/snippets/DateTest.php rename to BigQuery/tests/Snippet/DateTest.php diff --git a/BigQuery/tests/snippets/ExtractJobConfigurationTest.php b/BigQuery/tests/Snippet/ExtractJobConfigurationTest.php similarity index 100% rename from BigQuery/tests/snippets/ExtractJobConfigurationTest.php rename to BigQuery/tests/Snippet/ExtractJobConfigurationTest.php diff --git a/BigQuery/tests/snippets/InsertResponseTest.php b/BigQuery/tests/Snippet/InsertResponseTest.php similarity index 100% rename from BigQuery/tests/snippets/InsertResponseTest.php rename to BigQuery/tests/Snippet/InsertResponseTest.php diff --git a/BigQuery/tests/snippets/JobTest.php b/BigQuery/tests/Snippet/JobTest.php similarity index 100% rename from BigQuery/tests/snippets/JobTest.php rename to BigQuery/tests/Snippet/JobTest.php diff --git a/BigQuery/tests/snippets/LoadJobConfigurationTest.php b/BigQuery/tests/Snippet/LoadJobConfigurationTest.php similarity index 100% rename from BigQuery/tests/snippets/LoadJobConfigurationTest.php rename to BigQuery/tests/Snippet/LoadJobConfigurationTest.php diff --git a/BigQuery/tests/snippets/QueryJobConfigurationTest.php b/BigQuery/tests/Snippet/QueryJobConfigurationTest.php similarity index 100% rename from BigQuery/tests/snippets/QueryJobConfigurationTest.php rename to BigQuery/tests/Snippet/QueryJobConfigurationTest.php diff --git a/BigQuery/tests/snippets/QueryResultsTest.php b/BigQuery/tests/Snippet/QueryResultsTest.php similarity index 100% rename from BigQuery/tests/snippets/QueryResultsTest.php rename to BigQuery/tests/Snippet/QueryResultsTest.php diff --git a/BigQuery/tests/snippets/TableTest.php b/BigQuery/tests/Snippet/TableTest.php similarity index 100% rename from BigQuery/tests/snippets/TableTest.php rename to BigQuery/tests/Snippet/TableTest.php diff --git a/BigQuery/tests/snippets/TimeTest.php b/BigQuery/tests/Snippet/TimeTest.php similarity index 100% rename from BigQuery/tests/snippets/TimeTest.php rename to BigQuery/tests/Snippet/TimeTest.php diff --git a/BigQuery/tests/snippets/TimestampTest.php b/BigQuery/tests/Snippet/TimestampTest.php similarity index 100% rename from BigQuery/tests/snippets/TimestampTest.php rename to BigQuery/tests/Snippet/TimestampTest.php diff --git a/BigQuery/tests/snippets/bootstrap.php b/BigQuery/tests/Snippet/bootstrap.php similarity index 100% rename from BigQuery/tests/snippets/bootstrap.php rename to BigQuery/tests/Snippet/bootstrap.php diff --git a/BigQuery/tests/snippets/keyfile-stub.json b/BigQuery/tests/Snippet/keyfile-stub.json similarity index 100% rename from BigQuery/tests/snippets/keyfile-stub.json rename to BigQuery/tests/Snippet/keyfile-stub.json diff --git a/BigQuery/tests/system/BigQueryTestCase.php b/BigQuery/tests/System/BigQueryTestCase.php similarity index 100% rename from BigQuery/tests/system/BigQueryTestCase.php rename to BigQuery/tests/System/BigQueryTestCase.php diff --git a/BigQuery/tests/system/LoadDataAndQueryTest.php b/BigQuery/tests/System/LoadDataAndQueryTest.php similarity index 100% rename from BigQuery/tests/system/LoadDataAndQueryTest.php rename to BigQuery/tests/System/LoadDataAndQueryTest.php diff --git a/BigQuery/tests/system/ManageDatasetsTest.php b/BigQuery/tests/System/ManageDatasetsTest.php similarity index 100% rename from BigQuery/tests/system/ManageDatasetsTest.php rename to BigQuery/tests/System/ManageDatasetsTest.php diff --git a/BigQuery/tests/system/ManageJobsTest.php b/BigQuery/tests/System/ManageJobsTest.php similarity index 100% rename from BigQuery/tests/system/ManageJobsTest.php rename to BigQuery/tests/System/ManageJobsTest.php diff --git a/BigQuery/tests/system/ManageTablesTest.php b/BigQuery/tests/System/ManageTablesTest.php similarity index 100% rename from BigQuery/tests/system/ManageTablesTest.php rename to BigQuery/tests/System/ManageTablesTest.php diff --git a/BigQuery/tests/system/README.md b/BigQuery/tests/System/README.md similarity index 100% rename from BigQuery/tests/system/README.md rename to BigQuery/tests/System/README.md diff --git a/BigQuery/tests/system/bootstrap.php b/BigQuery/tests/System/bootstrap.php similarity index 100% rename from BigQuery/tests/system/bootstrap.php rename to BigQuery/tests/System/bootstrap.php diff --git a/BigQuery/tests/system/data/table-data.json b/BigQuery/tests/System/data/table-data.json similarity index 100% rename from BigQuery/tests/system/data/table-data.json rename to BigQuery/tests/System/data/table-data.json diff --git a/BigQuery/tests/system/data/table-schema.json b/BigQuery/tests/System/data/table-schema.json similarity index 100% rename from BigQuery/tests/system/data/table-schema.json rename to BigQuery/tests/System/data/table-schema.json diff --git a/BigQuery/tests/unit/BigQueryClientTest.php b/BigQuery/tests/Unit/BigQueryClientTest.php similarity index 100% rename from BigQuery/tests/unit/BigQueryClientTest.php rename to BigQuery/tests/Unit/BigQueryClientTest.php diff --git a/BigQuery/tests/unit/BytesTest.php b/BigQuery/tests/Unit/BytesTest.php similarity index 100% rename from BigQuery/tests/unit/BytesTest.php rename to BigQuery/tests/Unit/BytesTest.php diff --git a/BigQuery/tests/unit/Connection/RestTest.php b/BigQuery/tests/Unit/Connection/RestTest.php similarity index 100% rename from BigQuery/tests/unit/Connection/RestTest.php rename to BigQuery/tests/Unit/Connection/RestTest.php diff --git a/BigQuery/tests/unit/CopyJobConfigurationTest.php b/BigQuery/tests/Unit/CopyJobConfigurationTest.php similarity index 100% rename from BigQuery/tests/unit/CopyJobConfigurationTest.php rename to BigQuery/tests/Unit/CopyJobConfigurationTest.php diff --git a/BigQuery/tests/unit/DatasetTest.php b/BigQuery/tests/Unit/DatasetTest.php similarity index 100% rename from BigQuery/tests/unit/DatasetTest.php rename to BigQuery/tests/Unit/DatasetTest.php diff --git a/BigQuery/tests/unit/DateTest.php b/BigQuery/tests/Unit/DateTest.php similarity index 100% rename from BigQuery/tests/unit/DateTest.php rename to BigQuery/tests/Unit/DateTest.php diff --git a/BigQuery/tests/unit/Exception/JobExceptionTest.php b/BigQuery/tests/Unit/Exception/JobExceptionTest.php similarity index 100% rename from BigQuery/tests/unit/Exception/JobExceptionTest.php rename to BigQuery/tests/Unit/Exception/JobExceptionTest.php diff --git a/BigQuery/tests/unit/ExtractJobConfigurationTest.php b/BigQuery/tests/Unit/ExtractJobConfigurationTest.php similarity index 100% rename from BigQuery/tests/unit/ExtractJobConfigurationTest.php rename to BigQuery/tests/Unit/ExtractJobConfigurationTest.php diff --git a/BigQuery/tests/unit/InsertResponseTest.php b/BigQuery/tests/Unit/InsertResponseTest.php similarity index 100% rename from BigQuery/tests/unit/InsertResponseTest.php rename to BigQuery/tests/Unit/InsertResponseTest.php diff --git a/BigQuery/tests/unit/JobConfigurationTraitTest.php b/BigQuery/tests/Unit/JobConfigurationTraitTest.php similarity index 100% rename from BigQuery/tests/unit/JobConfigurationTraitTest.php rename to BigQuery/tests/Unit/JobConfigurationTraitTest.php diff --git a/BigQuery/tests/unit/JobTest.php b/BigQuery/tests/Unit/JobTest.php similarity index 100% rename from BigQuery/tests/unit/JobTest.php rename to BigQuery/tests/Unit/JobTest.php diff --git a/BigQuery/tests/unit/JobWaitTraitTest.php b/BigQuery/tests/Unit/JobWaitTraitTest.php similarity index 100% rename from BigQuery/tests/unit/JobWaitTraitTest.php rename to BigQuery/tests/Unit/JobWaitTraitTest.php diff --git a/BigQuery/tests/unit/LoadJobConfigurationTest.php b/BigQuery/tests/Unit/LoadJobConfigurationTest.php similarity index 100% rename from BigQuery/tests/unit/LoadJobConfigurationTest.php rename to BigQuery/tests/Unit/LoadJobConfigurationTest.php diff --git a/BigQuery/tests/unit/QueryJobConfigurationTest.php b/BigQuery/tests/Unit/QueryJobConfigurationTest.php similarity index 100% rename from BigQuery/tests/unit/QueryJobConfigurationTest.php rename to BigQuery/tests/Unit/QueryJobConfigurationTest.php diff --git a/BigQuery/tests/unit/QueryResultsTest.php b/BigQuery/tests/Unit/QueryResultsTest.php similarity index 100% rename from BigQuery/tests/unit/QueryResultsTest.php rename to BigQuery/tests/Unit/QueryResultsTest.php diff --git a/BigQuery/tests/unit/TableTest.php b/BigQuery/tests/Unit/TableTest.php similarity index 100% rename from BigQuery/tests/unit/TableTest.php rename to BigQuery/tests/Unit/TableTest.php diff --git a/BigQuery/tests/unit/TimeTest.php b/BigQuery/tests/Unit/TimeTest.php similarity index 100% rename from BigQuery/tests/unit/TimeTest.php rename to BigQuery/tests/Unit/TimeTest.php diff --git a/BigQuery/tests/unit/TimestampTest.php b/BigQuery/tests/Unit/TimestampTest.php similarity index 100% rename from BigQuery/tests/unit/TimestampTest.php rename to BigQuery/tests/Unit/TimestampTest.php diff --git a/BigQuery/tests/unit/ValueMapperTest.php b/BigQuery/tests/Unit/ValueMapperTest.php similarity index 100% rename from BigQuery/tests/unit/ValueMapperTest.php rename to BigQuery/tests/Unit/ValueMapperTest.php diff --git a/BigQuery/tests/unit/bootstrap.php b/BigQuery/tests/Unit/bootstrap.php similarity index 100% rename from BigQuery/tests/unit/bootstrap.php rename to BigQuery/tests/Unit/bootstrap.php diff --git a/Bigtable/tests/snippets/bootstrap.php b/Bigtable/tests/Snippet/bootstrap.php similarity index 100% rename from Bigtable/tests/snippets/bootstrap.php rename to Bigtable/tests/Snippet/bootstrap.php diff --git a/Bigtable/tests/snippets/keyfile-stub.json b/Bigtable/tests/Snippet/keyfile-stub.json similarity index 100% rename from Bigtable/tests/snippets/keyfile-stub.json rename to Bigtable/tests/Snippet/keyfile-stub.json diff --git a/Bigtable/tests/system/BigtableInstanceAdminTest.php b/Bigtable/tests/System/BigtableInstanceAdminTest.php similarity index 100% rename from Bigtable/tests/system/BigtableInstanceAdminTest.php rename to Bigtable/tests/System/BigtableInstanceAdminTest.php diff --git a/Bigtable/tests/system/bootstrap.php b/Bigtable/tests/System/bootstrap.php similarity index 100% rename from Bigtable/tests/system/bootstrap.php rename to Bigtable/tests/System/bootstrap.php diff --git a/Bigtable/tests/unit/bootstrap.php b/Bigtable/tests/Unit/bootstrap.php similarity index 100% rename from Bigtable/tests/unit/bootstrap.php rename to Bigtable/tests/Unit/bootstrap.php diff --git a/Container/tests/snippets/bootstrap.php b/Container/tests/Snippet/bootstrap.php similarity index 100% rename from Container/tests/snippets/bootstrap.php rename to Container/tests/Snippet/bootstrap.php diff --git a/Container/tests/snippets/keyfile-stub.json b/Container/tests/Snippet/keyfile-stub.json similarity index 100% rename from Container/tests/snippets/keyfile-stub.json rename to Container/tests/Snippet/keyfile-stub.json diff --git a/Container/tests/system/ClusterManagerClientTest.php b/Container/tests/System/ClusterManagerClientTest.php similarity index 100% rename from Container/tests/system/ClusterManagerClientTest.php rename to Container/tests/System/ClusterManagerClientTest.php diff --git a/Container/tests/system/bootstrap.php b/Container/tests/System/bootstrap.php similarity index 100% rename from Container/tests/system/bootstrap.php rename to Container/tests/System/bootstrap.php diff --git a/Container/tests/unit/bootstrap.php b/Container/tests/Unit/bootstrap.php similarity index 100% rename from Container/tests/unit/bootstrap.php rename to Container/tests/Unit/bootstrap.php diff --git a/Core/tests/snippets/BlobTest.php b/Core/tests/Snippet/BlobTest.php similarity index 100% rename from Core/tests/snippets/BlobTest.php rename to Core/tests/Snippet/BlobTest.php diff --git a/Core/tests/snippets/Compute/MetadataTest.php b/Core/tests/Snippet/Compute/MetadataTest.php similarity index 100% rename from Core/tests/snippets/Compute/MetadataTest.php rename to Core/tests/Snippet/Compute/MetadataTest.php diff --git a/Core/tests/snippets/DurationTest.php b/Core/tests/Snippet/DurationTest.php similarity index 100% rename from Core/tests/snippets/DurationTest.php rename to Core/tests/Snippet/DurationTest.php diff --git a/Core/tests/snippets/GeoPointTest.php b/Core/tests/Snippet/GeoPointTest.php similarity index 100% rename from Core/tests/snippets/GeoPointTest.php rename to Core/tests/Snippet/GeoPointTest.php diff --git a/Core/tests/snippets/Iam/IamTest.php b/Core/tests/Snippet/Iam/IamTest.php similarity index 100% rename from Core/tests/snippets/Iam/IamTest.php rename to Core/tests/Snippet/Iam/IamTest.php diff --git a/Core/tests/snippets/Iam/PolicyBuilderTest.php b/Core/tests/Snippet/Iam/PolicyBuilderTest.php similarity index 100% rename from Core/tests/snippets/Iam/PolicyBuilderTest.php rename to Core/tests/Snippet/Iam/PolicyBuilderTest.php diff --git a/Core/tests/snippets/Int64Test.php b/Core/tests/Snippet/Int64Test.php similarity index 100% rename from Core/tests/snippets/Int64Test.php rename to Core/tests/Snippet/Int64Test.php diff --git a/Core/tests/snippets/LongRunning/LongRunningOperationTest.php b/Core/tests/Snippet/LongRunning/LongRunningOperationTest.php similarity index 100% rename from Core/tests/snippets/LongRunning/LongRunningOperationTest.php rename to Core/tests/Snippet/LongRunning/LongRunningOperationTest.php diff --git a/Core/tests/snippets/ServiceBuilderTest.php b/Core/tests/Snippet/ServiceBuilderTest.php similarity index 100% rename from Core/tests/snippets/ServiceBuilderTest.php rename to Core/tests/Snippet/ServiceBuilderTest.php diff --git a/Core/tests/snippets/Testing/Snippet/Parser/ParserTest.php b/Core/tests/Snippet/Testing/Snippet/Parser/ParserTest.php similarity index 100% rename from Core/tests/snippets/Testing/Snippet/Parser/ParserTest.php rename to Core/tests/Snippet/Testing/Snippet/Parser/ParserTest.php diff --git a/Core/tests/snippets/TimestampTest.php b/Core/tests/Snippet/TimestampTest.php similarity index 100% rename from Core/tests/snippets/TimestampTest.php rename to Core/tests/Snippet/TimestampTest.php diff --git a/Core/tests/snippets/bootstrap.php b/Core/tests/Snippet/bootstrap.php similarity index 100% rename from Core/tests/snippets/bootstrap.php rename to Core/tests/Snippet/bootstrap.php diff --git a/Core/tests/snippets/keyfile-stub.json b/Core/tests/Snippet/keyfile-stub.json similarity index 100% rename from Core/tests/snippets/keyfile-stub.json rename to Core/tests/Snippet/keyfile-stub.json diff --git a/Core/tests/system/Batch/BatchRunnerTest.php b/Core/tests/System/Batch/BatchRunnerTest.php similarity index 100% rename from Core/tests/system/Batch/BatchRunnerTest.php rename to Core/tests/System/Batch/BatchRunnerTest.php diff --git a/Core/tests/system/Batch/MyJob.php b/Core/tests/System/Batch/MyJob.php similarity index 100% rename from Core/tests/system/Batch/MyJob.php rename to Core/tests/System/Batch/MyJob.php diff --git a/Core/tests/system/bootstrap.php b/Core/tests/System/bootstrap.php similarity index 100% rename from Core/tests/system/bootstrap.php rename to Core/tests/System/bootstrap.php diff --git a/Core/tests/unit/AnonymousCredentialsTest.php b/Core/tests/Unit/AnonymousCredentialsTest.php similarity index 100% rename from Core/tests/unit/AnonymousCredentialsTest.php rename to Core/tests/Unit/AnonymousCredentialsTest.php diff --git a/Core/tests/unit/ArrayTraitTest.php b/Core/tests/Unit/ArrayTraitTest.php similarity index 100% rename from Core/tests/unit/ArrayTraitTest.php rename to Core/tests/Unit/ArrayTraitTest.php diff --git a/Core/tests/unit/Batch/BatchConfigTest.php b/Core/tests/Unit/Batch/BatchConfigTest.php similarity index 100% rename from Core/tests/unit/Batch/BatchConfigTest.php rename to Core/tests/Unit/Batch/BatchConfigTest.php diff --git a/Core/tests/unit/Batch/BatchDaemonTraitTest.php b/Core/tests/Unit/Batch/BatchDaemonTraitTest.php similarity index 100% rename from Core/tests/unit/Batch/BatchDaemonTraitTest.php rename to Core/tests/Unit/Batch/BatchDaemonTraitTest.php diff --git a/Core/tests/unit/Batch/BatchJobTest.php b/Core/tests/Unit/Batch/BatchJobTest.php similarity index 100% rename from Core/tests/unit/Batch/BatchJobTest.php rename to Core/tests/Unit/Batch/BatchJobTest.php diff --git a/Core/tests/unit/Batch/BatchRunnerTest.php b/Core/tests/Unit/Batch/BatchRunnerTest.php similarity index 100% rename from Core/tests/unit/Batch/BatchRunnerTest.php rename to Core/tests/Unit/Batch/BatchRunnerTest.php diff --git a/Core/tests/unit/Batch/BatchTraitTest.php b/Core/tests/Unit/Batch/BatchTraitTest.php similarity index 100% rename from Core/tests/unit/Batch/BatchTraitTest.php rename to Core/tests/Unit/Batch/BatchTraitTest.php diff --git a/Core/tests/unit/Batch/HandleFailureTraitTest.php b/Core/tests/Unit/Batch/HandleFailureTraitTest.php similarity index 100% rename from Core/tests/unit/Batch/HandleFailureTraitTest.php rename to Core/tests/Unit/Batch/HandleFailureTraitTest.php diff --git a/Core/tests/unit/Batch/InMemoryConfigStorageTest.php b/Core/tests/Unit/Batch/InMemoryConfigStorageTest.php similarity index 100% rename from Core/tests/unit/Batch/InMemoryConfigStorageTest.php rename to Core/tests/Unit/Batch/InMemoryConfigStorageTest.php diff --git a/Core/tests/unit/Batch/RetryTest.php b/Core/tests/Unit/Batch/RetryTest.php similarity index 100% rename from Core/tests/unit/Batch/RetryTest.php rename to Core/tests/Unit/Batch/RetryTest.php diff --git a/Core/tests/unit/Batch/SysvConfigStorageTest.php b/Core/tests/Unit/Batch/SysvConfigStorageTest.php similarity index 100% rename from Core/tests/unit/Batch/SysvConfigStorageTest.php rename to Core/tests/Unit/Batch/SysvConfigStorageTest.php diff --git a/Core/tests/unit/Batch/SysvProcessorTest.php b/Core/tests/Unit/Batch/SysvProcessorTest.php similarity index 100% rename from Core/tests/unit/Batch/SysvProcessorTest.php rename to Core/tests/Unit/Batch/SysvProcessorTest.php diff --git a/Core/tests/unit/CallTraitTest.php b/Core/tests/Unit/CallTraitTest.php similarity index 100% rename from Core/tests/unit/CallTraitTest.php rename to Core/tests/Unit/CallTraitTest.php diff --git a/Core/tests/unit/ClientTraitTest.php b/Core/tests/Unit/ClientTraitTest.php similarity index 100% rename from Core/tests/unit/ClientTraitTest.php rename to Core/tests/Unit/ClientTraitTest.php diff --git a/Core/tests/unit/Compute/MetadataTest.php b/Core/tests/Unit/Compute/MetadataTest.php similarity index 100% rename from Core/tests/unit/Compute/MetadataTest.php rename to Core/tests/Unit/Compute/MetadataTest.php diff --git a/Core/tests/unit/ConcurrencyControlTraitTest.php b/Core/tests/Unit/ConcurrencyControlTraitTest.php similarity index 100% rename from Core/tests/unit/ConcurrencyControlTraitTest.php rename to Core/tests/Unit/ConcurrencyControlTraitTest.php diff --git a/Core/tests/unit/DurationTest.php b/Core/tests/Unit/DurationTest.php similarity index 100% rename from Core/tests/unit/DurationTest.php rename to Core/tests/Unit/DurationTest.php diff --git a/Core/tests/unit/EmulatorTraitTest.php b/Core/tests/Unit/EmulatorTraitTest.php similarity index 100% rename from Core/tests/unit/EmulatorTraitTest.php rename to Core/tests/Unit/EmulatorTraitTest.php diff --git a/Core/tests/unit/Exception/NotFoundExceptionTest.php b/Core/tests/Unit/Exception/NotFoundExceptionTest.php similarity index 100% rename from Core/tests/unit/Exception/NotFoundExceptionTest.php rename to Core/tests/Unit/Exception/NotFoundExceptionTest.php diff --git a/Core/tests/unit/Exception/ServiceExceptionTest.php b/Core/tests/Unit/Exception/ServiceExceptionTest.php similarity index 100% rename from Core/tests/unit/Exception/ServiceExceptionTest.php rename to Core/tests/Unit/Exception/ServiceExceptionTest.php diff --git a/Core/tests/unit/ExponentialBackoffTest.php b/Core/tests/Unit/ExponentialBackoffTest.php similarity index 100% rename from Core/tests/unit/ExponentialBackoffTest.php rename to Core/tests/Unit/ExponentialBackoffTest.php diff --git a/Core/tests/unit/Fixtures.php b/Core/tests/Unit/Fixtures.php similarity index 100% rename from Core/tests/unit/Fixtures.php rename to Core/tests/Unit/Fixtures.php diff --git a/Core/tests/unit/GrpcRequestWrapperTest.php b/Core/tests/Unit/GrpcRequestWrapperTest.php similarity index 100% rename from Core/tests/unit/GrpcRequestWrapperTest.php rename to Core/tests/Unit/GrpcRequestWrapperTest.php diff --git a/Core/tests/unit/GrpcTraitTest.php b/Core/tests/Unit/GrpcTraitTest.php similarity index 100% rename from Core/tests/unit/GrpcTraitTest.php rename to Core/tests/Unit/GrpcTraitTest.php diff --git a/Core/tests/unit/Iam/IamTest.php b/Core/tests/Unit/Iam/IamTest.php similarity index 100% rename from Core/tests/unit/Iam/IamTest.php rename to Core/tests/Unit/Iam/IamTest.php diff --git a/Core/tests/unit/Iam/PolicyBuilderTest.php b/Core/tests/Unit/Iam/PolicyBuilderTest.php similarity index 100% rename from Core/tests/unit/Iam/PolicyBuilderTest.php rename to Core/tests/Unit/Iam/PolicyBuilderTest.php diff --git a/Core/tests/unit/Int64Test.php b/Core/tests/Unit/Int64Test.php similarity index 100% rename from Core/tests/unit/Int64Test.php rename to Core/tests/Unit/Int64Test.php diff --git a/Core/tests/unit/Iterator/ItemIteratorTest.php b/Core/tests/Unit/Iterator/ItemIteratorTest.php similarity index 100% rename from Core/tests/unit/Iterator/ItemIteratorTest.php rename to Core/tests/Unit/Iterator/ItemIteratorTest.php diff --git a/Core/tests/unit/Iterator/PageIteratorTest.php b/Core/tests/Unit/Iterator/PageIteratorTest.php similarity index 100% rename from Core/tests/unit/Iterator/PageIteratorTest.php rename to Core/tests/Unit/Iterator/PageIteratorTest.php diff --git a/Core/tests/unit/JsonTraitTest.php b/Core/tests/Unit/JsonTraitTest.php similarity index 100% rename from Core/tests/unit/JsonTraitTest.php rename to Core/tests/Unit/JsonTraitTest.php diff --git a/Core/tests/unit/Lock/CommonLockTrait.php b/Core/tests/Unit/Lock/CommonLockTrait.php similarity index 100% rename from Core/tests/unit/Lock/CommonLockTrait.php rename to Core/tests/Unit/Lock/CommonLockTrait.php diff --git a/Core/tests/unit/Lock/FlockLockTest.php b/Core/tests/Unit/Lock/FlockLockTest.php similarity index 100% rename from Core/tests/unit/Lock/FlockLockTest.php rename to Core/tests/Unit/Lock/FlockLockTest.php diff --git a/Core/tests/unit/Lock/SemaphoreLockTest.php b/Core/tests/Unit/Lock/SemaphoreLockTest.php similarity index 100% rename from Core/tests/unit/Lock/SemaphoreLockTest.php rename to Core/tests/Unit/Lock/SemaphoreLockTest.php diff --git a/Core/tests/unit/Logger/AppEngineFlexHandlerTest.php b/Core/tests/Unit/Logger/AppEngineFlexHandlerTest.php similarity index 100% rename from Core/tests/unit/Logger/AppEngineFlexHandlerTest.php rename to Core/tests/Unit/Logger/AppEngineFlexHandlerTest.php diff --git a/Core/tests/unit/Report/EmptyMetadataProviderTest.php b/Core/tests/Unit/Report/EmptyMetadataProviderTest.php similarity index 100% rename from Core/tests/unit/Report/EmptyMetadataProviderTest.php rename to Core/tests/Unit/Report/EmptyMetadataProviderTest.php diff --git a/Core/tests/unit/Report/GAEFlexMetadataProviderTest.php b/Core/tests/Unit/Report/GAEFlexMetadataProviderTest.php similarity index 100% rename from Core/tests/unit/Report/GAEFlexMetadataProviderTest.php rename to Core/tests/Unit/Report/GAEFlexMetadataProviderTest.php diff --git a/Core/tests/unit/Report/MetadataProviderUtilsTest.php b/Core/tests/Unit/Report/MetadataProviderUtilsTest.php similarity index 100% rename from Core/tests/unit/Report/MetadataProviderUtilsTest.php rename to Core/tests/Unit/Report/MetadataProviderUtilsTest.php diff --git a/Core/tests/unit/Report/SimpleMetadataProviderTest.php b/Core/tests/Unit/Report/SimpleMetadataProviderTest.php similarity index 100% rename from Core/tests/unit/Report/SimpleMetadataProviderTest.php rename to Core/tests/Unit/Report/SimpleMetadataProviderTest.php diff --git a/Core/tests/unit/RequestBuilderTest.php b/Core/tests/Unit/RequestBuilderTest.php similarity index 100% rename from Core/tests/unit/RequestBuilderTest.php rename to Core/tests/Unit/RequestBuilderTest.php diff --git a/Core/tests/unit/RequestWrapperTest.php b/Core/tests/Unit/RequestWrapperTest.php similarity index 100% rename from Core/tests/unit/RequestWrapperTest.php rename to Core/tests/Unit/RequestWrapperTest.php diff --git a/Core/tests/unit/RestTraitTest.php b/Core/tests/Unit/RestTraitTest.php similarity index 100% rename from Core/tests/unit/RestTraitTest.php rename to Core/tests/Unit/RestTraitTest.php diff --git a/Core/tests/unit/RetryDeciderTraitTest.php b/Core/tests/Unit/RetryDeciderTraitTest.php similarity index 100% rename from Core/tests/unit/RetryDeciderTraitTest.php rename to Core/tests/Unit/RetryDeciderTraitTest.php diff --git a/Core/tests/unit/ServiceBuilderTest.php b/Core/tests/Unit/ServiceBuilderTest.php similarity index 100% rename from Core/tests/unit/ServiceBuilderTest.php rename to Core/tests/Unit/ServiceBuilderTest.php diff --git a/Core/tests/unit/ServicesNotFoundTest.php b/Core/tests/Unit/ServicesNotFoundTest.php similarity index 100% rename from Core/tests/unit/ServicesNotFoundTest.php rename to Core/tests/Unit/ServicesNotFoundTest.php diff --git a/Core/tests/unit/SysvTraitTest.php b/Core/tests/Unit/SysvTraitTest.php similarity index 100% rename from Core/tests/unit/SysvTraitTest.php rename to Core/tests/Unit/SysvTraitTest.php diff --git a/Core/tests/unit/TimestampTest.php b/Core/tests/Unit/TimestampTest.php similarity index 100% rename from Core/tests/unit/TimestampTest.php rename to Core/tests/Unit/TimestampTest.php diff --git a/Core/tests/unit/Upload/MultipartUploaderTest.php b/Core/tests/Unit/Upload/MultipartUploaderTest.php similarity index 100% rename from Core/tests/unit/Upload/MultipartUploaderTest.php rename to Core/tests/Unit/Upload/MultipartUploaderTest.php diff --git a/Core/tests/unit/Upload/ResumableUploaderTest.php b/Core/tests/Unit/Upload/ResumableUploaderTest.php similarity index 100% rename from Core/tests/unit/Upload/ResumableUploaderTest.php rename to Core/tests/Unit/Upload/ResumableUploaderTest.php diff --git a/Core/tests/unit/Upload/SignedUrlUploaderTest.php b/Core/tests/Unit/Upload/SignedUrlUploaderTest.php similarity index 100% rename from Core/tests/unit/Upload/SignedUrlUploaderTest.php rename to Core/tests/Unit/Upload/SignedUrlUploaderTest.php diff --git a/Core/tests/unit/Upload/StreamableUploaderTest.php b/Core/tests/Unit/Upload/StreamableUploaderTest.php similarity index 100% rename from Core/tests/unit/Upload/StreamableUploaderTest.php rename to Core/tests/Unit/Upload/StreamableUploaderTest.php diff --git a/Core/tests/unit/UriTraitTest.php b/Core/tests/Unit/UriTraitTest.php similarity index 100% rename from Core/tests/unit/UriTraitTest.php rename to Core/tests/Unit/UriTraitTest.php diff --git a/Core/tests/unit/ValidateTraitTest.php b/Core/tests/Unit/ValidateTraitTest.php similarity index 100% rename from Core/tests/unit/ValidateTraitTest.php rename to Core/tests/Unit/ValidateTraitTest.php diff --git a/Core/tests/unit/WhitelistTraitTest.php b/Core/tests/Unit/WhitelistTraitTest.php similarity index 100% rename from Core/tests/unit/WhitelistTraitTest.php rename to Core/tests/Unit/WhitelistTraitTest.php diff --git a/Core/tests/unit/bootstrap.php b/Core/tests/Unit/bootstrap.php similarity index 100% rename from Core/tests/unit/bootstrap.php rename to Core/tests/Unit/bootstrap.php diff --git a/Core/tests/unit/fixtures/empty-json-key-fixture.json b/Core/tests/Unit/fixtures/empty-json-key-fixture.json similarity index 100% rename from Core/tests/unit/fixtures/empty-json-key-fixture.json rename to Core/tests/Unit/fixtures/empty-json-key-fixture.json diff --git a/Core/tests/unit/fixtures/json-key-fixture.json b/Core/tests/Unit/fixtures/json-key-fixture.json similarity index 100% rename from Core/tests/unit/fixtures/json-key-fixture.json rename to Core/tests/Unit/fixtures/json-key-fixture.json diff --git a/Core/tests/unit/fixtures/service-fixture.json b/Core/tests/Unit/fixtures/service-fixture.json similarity index 100% rename from Core/tests/unit/fixtures/service-fixture.json rename to Core/tests/Unit/fixtures/service-fixture.json diff --git a/Dataproc/tests/snippets/bootstrap.php b/Dataproc/tests/Snippet/bootstrap.php similarity index 100% rename from Dataproc/tests/snippets/bootstrap.php rename to Dataproc/tests/Snippet/bootstrap.php diff --git a/Dataproc/tests/snippets/keyfile-stub.json b/Dataproc/tests/Snippet/keyfile-stub.json similarity index 100% rename from Dataproc/tests/snippets/keyfile-stub.json rename to Dataproc/tests/Snippet/keyfile-stub.json diff --git a/Dataproc/tests/system/ClusterControllerClientTest.php b/Dataproc/tests/System/ClusterControllerClientTest.php similarity index 100% rename from Dataproc/tests/system/ClusterControllerClientTest.php rename to Dataproc/tests/System/ClusterControllerClientTest.php diff --git a/Dataproc/tests/system/bootstrap.php b/Dataproc/tests/System/bootstrap.php similarity index 100% rename from Dataproc/tests/system/bootstrap.php rename to Dataproc/tests/System/bootstrap.php diff --git a/Dataproc/tests/unit/bootstrap.php b/Dataproc/tests/Unit/bootstrap.php similarity index 100% rename from Dataproc/tests/unit/bootstrap.php rename to Dataproc/tests/Unit/bootstrap.php diff --git a/Datastore/tests/snippets/BlobTest.php b/Datastore/tests/Snippet/BlobTest.php similarity index 100% rename from Datastore/tests/snippets/BlobTest.php rename to Datastore/tests/Snippet/BlobTest.php diff --git a/Datastore/tests/snippets/DatastoreClientTest.php b/Datastore/tests/Snippet/DatastoreClientTest.php similarity index 100% rename from Datastore/tests/snippets/DatastoreClientTest.php rename to Datastore/tests/Snippet/DatastoreClientTest.php diff --git a/Datastore/tests/snippets/EntityTest.php b/Datastore/tests/Snippet/EntityTest.php similarity index 100% rename from Datastore/tests/snippets/EntityTest.php rename to Datastore/tests/Snippet/EntityTest.php diff --git a/Datastore/tests/snippets/GeoPointTest.php b/Datastore/tests/Snippet/GeoPointTest.php similarity index 100% rename from Datastore/tests/snippets/GeoPointTest.php rename to Datastore/tests/Snippet/GeoPointTest.php diff --git a/Datastore/tests/snippets/KeyTest.php b/Datastore/tests/Snippet/KeyTest.php similarity index 100% rename from Datastore/tests/snippets/KeyTest.php rename to Datastore/tests/Snippet/KeyTest.php diff --git a/Datastore/tests/snippets/Query/GqlQueryTest.php b/Datastore/tests/Snippet/Query/GqlQueryTest.php similarity index 100% rename from Datastore/tests/snippets/Query/GqlQueryTest.php rename to Datastore/tests/Snippet/Query/GqlQueryTest.php diff --git a/Datastore/tests/snippets/Query/QueryTest.php b/Datastore/tests/Snippet/Query/QueryTest.php similarity index 100% rename from Datastore/tests/snippets/Query/QueryTest.php rename to Datastore/tests/Snippet/Query/QueryTest.php diff --git a/Datastore/tests/snippets/ReadOnlyTransactionTest.php b/Datastore/tests/Snippet/ReadOnlyTransactionTest.php similarity index 100% rename from Datastore/tests/snippets/ReadOnlyTransactionTest.php rename to Datastore/tests/Snippet/ReadOnlyTransactionTest.php diff --git a/Datastore/tests/snippets/TransactionTest.php b/Datastore/tests/Snippet/TransactionTest.php similarity index 100% rename from Datastore/tests/snippets/TransactionTest.php rename to Datastore/tests/Snippet/TransactionTest.php diff --git a/Datastore/tests/snippets/bootstrap.php b/Datastore/tests/Snippet/bootstrap.php similarity index 100% rename from Datastore/tests/snippets/bootstrap.php rename to Datastore/tests/Snippet/bootstrap.php diff --git a/Datastore/tests/snippets/keyfile-stub.json b/Datastore/tests/Snippet/keyfile-stub.json similarity index 100% rename from Datastore/tests/snippets/keyfile-stub.json rename to Datastore/tests/Snippet/keyfile-stub.json diff --git a/Datastore/tests/system/AllocateKeyTest.php b/Datastore/tests/System/AllocateKeyTest.php similarity index 100% rename from Datastore/tests/system/AllocateKeyTest.php rename to Datastore/tests/System/AllocateKeyTest.php diff --git a/Datastore/tests/system/DatastoreTestCase.php b/Datastore/tests/System/DatastoreTestCase.php similarity index 100% rename from Datastore/tests/system/DatastoreTestCase.php rename to Datastore/tests/System/DatastoreTestCase.php diff --git a/Datastore/tests/system/RunQueryTest.php b/Datastore/tests/System/RunQueryTest.php similarity index 100% rename from Datastore/tests/system/RunQueryTest.php rename to Datastore/tests/System/RunQueryTest.php diff --git a/Datastore/tests/system/RunTransactionTest.php b/Datastore/tests/System/RunTransactionTest.php similarity index 100% rename from Datastore/tests/system/RunTransactionTest.php rename to Datastore/tests/System/RunTransactionTest.php diff --git a/Datastore/tests/system/SaveAndModifyTest.php b/Datastore/tests/System/SaveAndModifyTest.php similarity index 100% rename from Datastore/tests/system/SaveAndModifyTest.php rename to Datastore/tests/System/SaveAndModifyTest.php diff --git a/Datastore/tests/system/bootstrap.php b/Datastore/tests/System/bootstrap.php similarity index 100% rename from Datastore/tests/system/bootstrap.php rename to Datastore/tests/System/bootstrap.php diff --git a/Datastore/tests/unit/BlobTest.php b/Datastore/tests/Unit/BlobTest.php similarity index 100% rename from Datastore/tests/unit/BlobTest.php rename to Datastore/tests/Unit/BlobTest.php diff --git a/Datastore/tests/unit/Connection/RestTest.php b/Datastore/tests/Unit/Connection/RestTest.php similarity index 100% rename from Datastore/tests/unit/Connection/RestTest.php rename to Datastore/tests/Unit/Connection/RestTest.php diff --git a/Datastore/tests/unit/DatastoreClientTest.php b/Datastore/tests/Unit/DatastoreClientTest.php similarity index 100% rename from Datastore/tests/unit/DatastoreClientTest.php rename to Datastore/tests/Unit/DatastoreClientTest.php diff --git a/Datastore/tests/unit/DatastoreSessionHandlerTest.php b/Datastore/tests/Unit/DatastoreSessionHandlerTest.php similarity index 100% rename from Datastore/tests/unit/DatastoreSessionHandlerTest.php rename to Datastore/tests/Unit/DatastoreSessionHandlerTest.php diff --git a/Datastore/tests/unit/DatastoreTraitTest.php b/Datastore/tests/Unit/DatastoreTraitTest.php similarity index 100% rename from Datastore/tests/unit/DatastoreTraitTest.php rename to Datastore/tests/Unit/DatastoreTraitTest.php diff --git a/Datastore/tests/unit/EntityIteratorTest.php b/Datastore/tests/Unit/EntityIteratorTest.php similarity index 100% rename from Datastore/tests/unit/EntityIteratorTest.php rename to Datastore/tests/Unit/EntityIteratorTest.php diff --git a/Datastore/tests/unit/EntityMapperTest.php b/Datastore/tests/Unit/EntityMapperTest.php similarity index 100% rename from Datastore/tests/unit/EntityMapperTest.php rename to Datastore/tests/Unit/EntityMapperTest.php diff --git a/Datastore/tests/unit/EntityPageIteratorTest.php b/Datastore/tests/Unit/EntityPageIteratorTest.php similarity index 100% rename from Datastore/tests/unit/EntityPageIteratorTest.php rename to Datastore/tests/Unit/EntityPageIteratorTest.php diff --git a/Datastore/tests/unit/EntityTest.php b/Datastore/tests/Unit/EntityTest.php similarity index 100% rename from Datastore/tests/unit/EntityTest.php rename to Datastore/tests/Unit/EntityTest.php diff --git a/Datastore/tests/unit/Fixtures.php b/Datastore/tests/Unit/Fixtures.php similarity index 100% rename from Datastore/tests/unit/Fixtures.php rename to Datastore/tests/Unit/Fixtures.php diff --git a/Datastore/tests/unit/GeoPointTest.php b/Datastore/tests/Unit/GeoPointTest.php similarity index 100% rename from Datastore/tests/unit/GeoPointTest.php rename to Datastore/tests/Unit/GeoPointTest.php diff --git a/Datastore/tests/unit/KeyTest.php b/Datastore/tests/Unit/KeyTest.php similarity index 100% rename from Datastore/tests/unit/KeyTest.php rename to Datastore/tests/Unit/KeyTest.php diff --git a/Datastore/tests/unit/OperationTest.php b/Datastore/tests/Unit/OperationTest.php similarity index 100% rename from Datastore/tests/unit/OperationTest.php rename to Datastore/tests/Unit/OperationTest.php diff --git a/Datastore/tests/unit/Query/GqlQueryTest.php b/Datastore/tests/Unit/Query/GqlQueryTest.php similarity index 100% rename from Datastore/tests/unit/Query/GqlQueryTest.php rename to Datastore/tests/Unit/Query/GqlQueryTest.php diff --git a/Datastore/tests/unit/Query/QueryTest.php b/Datastore/tests/Unit/Query/QueryTest.php similarity index 100% rename from Datastore/tests/unit/Query/QueryTest.php rename to Datastore/tests/Unit/Query/QueryTest.php diff --git a/Datastore/tests/unit/TransactionTest.php b/Datastore/tests/Unit/TransactionTest.php similarity index 100% rename from Datastore/tests/unit/TransactionTest.php rename to Datastore/tests/Unit/TransactionTest.php diff --git a/Datastore/tests/unit/bootstrap.php b/Datastore/tests/Unit/bootstrap.php similarity index 100% rename from Datastore/tests/unit/bootstrap.php rename to Datastore/tests/Unit/bootstrap.php diff --git a/Datastore/tests/unit/fixtures/entity-batch-lookup.json b/Datastore/tests/Unit/fixtures/entity-batch-lookup.json similarity index 100% rename from Datastore/tests/unit/fixtures/entity-batch-lookup.json rename to Datastore/tests/Unit/fixtures/entity-batch-lookup.json diff --git a/Datastore/tests/unit/fixtures/entity-lookup-bigsort.json b/Datastore/tests/Unit/fixtures/entity-lookup-bigsort.json similarity index 100% rename from Datastore/tests/unit/fixtures/entity-lookup-bigsort.json rename to Datastore/tests/Unit/fixtures/entity-lookup-bigsort.json diff --git a/Datastore/tests/unit/fixtures/entity-result-no-properties.json b/Datastore/tests/Unit/fixtures/entity-result-no-properties.json similarity index 100% rename from Datastore/tests/unit/fixtures/entity-result-no-properties.json rename to Datastore/tests/Unit/fixtures/entity-result-no-properties.json diff --git a/Datastore/tests/unit/fixtures/entity-result.json b/Datastore/tests/Unit/fixtures/entity-result.json similarity index 100% rename from Datastore/tests/unit/fixtures/entity-result.json rename to Datastore/tests/Unit/fixtures/entity-result.json diff --git a/Datastore/tests/unit/fixtures/query-results.json b/Datastore/tests/Unit/fixtures/query-results.json similarity index 100% rename from Datastore/tests/unit/fixtures/query-results.json rename to Datastore/tests/Unit/fixtures/query-results.json diff --git a/Debugger/tests/snippets/AgentTest.php b/Debugger/tests/Snippet/AgentTest.php similarity index 100% rename from Debugger/tests/snippets/AgentTest.php rename to Debugger/tests/Snippet/AgentTest.php diff --git a/Debugger/tests/snippets/AliasContextTest.php b/Debugger/tests/Snippet/AliasContextTest.php similarity index 100% rename from Debugger/tests/snippets/AliasContextTest.php rename to Debugger/tests/Snippet/AliasContextTest.php diff --git a/Debugger/tests/snippets/BreakpointTest.php b/Debugger/tests/Snippet/BreakpointTest.php similarity index 100% rename from Debugger/tests/snippets/BreakpointTest.php rename to Debugger/tests/Snippet/BreakpointTest.php diff --git a/Debugger/tests/snippets/CloudRepoSourceContextTest.php b/Debugger/tests/Snippet/CloudRepoSourceContextTest.php similarity index 100% rename from Debugger/tests/snippets/CloudRepoSourceContextTest.php rename to Debugger/tests/Snippet/CloudRepoSourceContextTest.php diff --git a/Debugger/tests/snippets/CloudWorkspaceIdTest.php b/Debugger/tests/Snippet/CloudWorkspaceIdTest.php similarity index 100% rename from Debugger/tests/snippets/CloudWorkspaceIdTest.php rename to Debugger/tests/Snippet/CloudWorkspaceIdTest.php diff --git a/Debugger/tests/snippets/CloudWorkspaceSourceContextTest.php b/Debugger/tests/Snippet/CloudWorkspaceSourceContextTest.php similarity index 100% rename from Debugger/tests/snippets/CloudWorkspaceSourceContextTest.php rename to Debugger/tests/Snippet/CloudWorkspaceSourceContextTest.php diff --git a/Debugger/tests/snippets/DaemonTest.php b/Debugger/tests/Snippet/DaemonTest.php similarity index 100% rename from Debugger/tests/snippets/DaemonTest.php rename to Debugger/tests/Snippet/DaemonTest.php diff --git a/Debugger/tests/snippets/DebuggeeTest.php b/Debugger/tests/Snippet/DebuggeeTest.php similarity index 100% rename from Debugger/tests/snippets/DebuggeeTest.php rename to Debugger/tests/Snippet/DebuggeeTest.php diff --git a/Debugger/tests/snippets/DebuggerClientTest.php b/Debugger/tests/Snippet/DebuggerClientTest.php similarity index 100% rename from Debugger/tests/snippets/DebuggerClientTest.php rename to Debugger/tests/Snippet/DebuggerClientTest.php diff --git a/Debugger/tests/snippets/ExtendedSourceContextTest.php b/Debugger/tests/Snippet/ExtendedSourceContextTest.php similarity index 100% rename from Debugger/tests/snippets/ExtendedSourceContextTest.php rename to Debugger/tests/Snippet/ExtendedSourceContextTest.php diff --git a/Debugger/tests/snippets/FormatMessageTest.php b/Debugger/tests/Snippet/FormatMessageTest.php similarity index 100% rename from Debugger/tests/snippets/FormatMessageTest.php rename to Debugger/tests/Snippet/FormatMessageTest.php diff --git a/Debugger/tests/snippets/GerritSourceContextTest.php b/Debugger/tests/Snippet/GerritSourceContextTest.php similarity index 100% rename from Debugger/tests/snippets/GerritSourceContextTest.php rename to Debugger/tests/Snippet/GerritSourceContextTest.php diff --git a/Debugger/tests/snippets/GitSourceContextTest.php b/Debugger/tests/Snippet/GitSourceContextTest.php similarity index 100% rename from Debugger/tests/snippets/GitSourceContextTest.php rename to Debugger/tests/Snippet/GitSourceContextTest.php diff --git a/Debugger/tests/snippets/MatchingFileIteratorTest.php b/Debugger/tests/Snippet/MatchingFileIteratorTest.php similarity index 100% rename from Debugger/tests/snippets/MatchingFileIteratorTest.php rename to Debugger/tests/Snippet/MatchingFileIteratorTest.php diff --git a/Debugger/tests/snippets/ProjectRepoIdTest.php b/Debugger/tests/Snippet/ProjectRepoIdTest.php similarity index 100% rename from Debugger/tests/snippets/ProjectRepoIdTest.php rename to Debugger/tests/Snippet/ProjectRepoIdTest.php diff --git a/Debugger/tests/snippets/RepoIdTest.php b/Debugger/tests/Snippet/RepoIdTest.php similarity index 100% rename from Debugger/tests/snippets/RepoIdTest.php rename to Debugger/tests/Snippet/RepoIdTest.php diff --git a/Debugger/tests/snippets/SourceLocationResolverTest.php b/Debugger/tests/Snippet/SourceLocationResolverTest.php similarity index 100% rename from Debugger/tests/snippets/SourceLocationResolverTest.php rename to Debugger/tests/Snippet/SourceLocationResolverTest.php diff --git a/Debugger/tests/snippets/SourceLocationTest.php b/Debugger/tests/Snippet/SourceLocationTest.php similarity index 100% rename from Debugger/tests/snippets/SourceLocationTest.php rename to Debugger/tests/Snippet/SourceLocationTest.php diff --git a/Debugger/tests/snippets/StackFrameTest.php b/Debugger/tests/Snippet/StackFrameTest.php similarity index 100% rename from Debugger/tests/snippets/StackFrameTest.php rename to Debugger/tests/Snippet/StackFrameTest.php diff --git a/Debugger/tests/snippets/StatusMessageTest.php b/Debugger/tests/Snippet/StatusMessageTest.php similarity index 100% rename from Debugger/tests/snippets/StatusMessageTest.php rename to Debugger/tests/Snippet/StatusMessageTest.php diff --git a/Debugger/tests/snippets/VariableTableTest.php b/Debugger/tests/Snippet/VariableTableTest.php similarity index 100% rename from Debugger/tests/snippets/VariableTableTest.php rename to Debugger/tests/Snippet/VariableTableTest.php diff --git a/Debugger/tests/snippets/VariableTest.php b/Debugger/tests/Snippet/VariableTest.php similarity index 100% rename from Debugger/tests/snippets/VariableTest.php rename to Debugger/tests/Snippet/VariableTest.php diff --git a/Debugger/tests/snippets/bootstrap.php b/Debugger/tests/Snippet/bootstrap.php similarity index 100% rename from Debugger/tests/snippets/bootstrap.php rename to Debugger/tests/Snippet/bootstrap.php diff --git a/Debugger/tests/snippets/keyfile-stub.json b/Debugger/tests/Snippet/keyfile-stub.json similarity index 100% rename from Debugger/tests/snippets/keyfile-stub.json rename to Debugger/tests/Snippet/keyfile-stub.json diff --git a/Debugger/tests/system/BasicTest.php b/Debugger/tests/System/BasicTest.php similarity index 100% rename from Debugger/tests/system/BasicTest.php rename to Debugger/tests/System/BasicTest.php diff --git a/Debugger/tests/system/E2ETest.php b/Debugger/tests/System/E2ETest.php similarity index 100% rename from Debugger/tests/system/E2ETest.php rename to Debugger/tests/System/E2ETest.php diff --git a/Debugger/tests/system/app/.gitignore b/Debugger/tests/System/app/.gitignore similarity index 100% rename from Debugger/tests/system/app/.gitignore rename to Debugger/tests/System/app/.gitignore diff --git a/Debugger/tests/system/app/additional-supervisord.conf b/Debugger/tests/System/app/additional-supervisord.conf similarity index 100% rename from Debugger/tests/system/app/additional-supervisord.conf rename to Debugger/tests/System/app/additional-supervisord.conf diff --git a/Debugger/tests/system/app/app.yaml b/Debugger/tests/System/app/app.yaml similarity index 100% rename from Debugger/tests/system/app/app.yaml rename to Debugger/tests/System/app/app.yaml diff --git a/Debugger/tests/system/app/web/app.php b/Debugger/tests/System/app/web/app.php similarity index 100% rename from Debugger/tests/system/app/web/app.php rename to Debugger/tests/System/app/web/app.php diff --git a/Debugger/tests/system/app/web/index.php b/Debugger/tests/System/app/web/index.php similarity index 100% rename from Debugger/tests/system/app/web/index.php rename to Debugger/tests/System/app/web/index.php diff --git a/Debugger/tests/system/bootstrap.php b/Debugger/tests/System/bootstrap.php similarity index 100% rename from Debugger/tests/system/bootstrap.php rename to Debugger/tests/System/bootstrap.php diff --git a/Debugger/tests/unit/AgentTest.php b/Debugger/tests/Unit/AgentTest.php similarity index 100% rename from Debugger/tests/unit/AgentTest.php rename to Debugger/tests/Unit/AgentTest.php diff --git a/Debugger/tests/unit/AliasContextTest.php b/Debugger/tests/Unit/AliasContextTest.php similarity index 100% rename from Debugger/tests/unit/AliasContextTest.php rename to Debugger/tests/Unit/AliasContextTest.php diff --git a/Debugger/tests/unit/BreakpointStorage/SysvBreakpointStorageTest.php b/Debugger/tests/Unit/BreakpointStorage/SysvBreakpointStorageTest.php similarity index 100% rename from Debugger/tests/unit/BreakpointStorage/SysvBreakpointStorageTest.php rename to Debugger/tests/Unit/BreakpointStorage/SysvBreakpointStorageTest.php diff --git a/Debugger/tests/unit/BreakpointTest.php b/Debugger/tests/Unit/BreakpointTest.php similarity index 100% rename from Debugger/tests/unit/BreakpointTest.php rename to Debugger/tests/Unit/BreakpointTest.php diff --git a/Debugger/tests/unit/BreakpointValidationTest.php b/Debugger/tests/Unit/BreakpointValidationTest.php similarity index 100% rename from Debugger/tests/unit/BreakpointValidationTest.php rename to Debugger/tests/Unit/BreakpointValidationTest.php diff --git a/Debugger/tests/unit/CloudRepoSourceContextTest.php b/Debugger/tests/Unit/CloudRepoSourceContextTest.php similarity index 100% rename from Debugger/tests/unit/CloudRepoSourceContextTest.php rename to Debugger/tests/Unit/CloudRepoSourceContextTest.php diff --git a/Debugger/tests/unit/CloudWorkspaceIdTest.php b/Debugger/tests/Unit/CloudWorkspaceIdTest.php similarity index 100% rename from Debugger/tests/unit/CloudWorkspaceIdTest.php rename to Debugger/tests/Unit/CloudWorkspaceIdTest.php diff --git a/Debugger/tests/unit/CloudWorkspaceSourceContextTest.php b/Debugger/tests/Unit/CloudWorkspaceSourceContextTest.php similarity index 100% rename from Debugger/tests/unit/CloudWorkspaceSourceContextTest.php rename to Debugger/tests/Unit/CloudWorkspaceSourceContextTest.php diff --git a/Debugger/tests/unit/Connection/RestTest.php b/Debugger/tests/Unit/Connection/RestTest.php similarity index 100% rename from Debugger/tests/unit/Connection/RestTest.php rename to Debugger/tests/Unit/Connection/RestTest.php diff --git a/Debugger/tests/unit/DaemonTest.php b/Debugger/tests/Unit/DaemonTest.php similarity index 100% rename from Debugger/tests/unit/DaemonTest.php rename to Debugger/tests/Unit/DaemonTest.php diff --git a/Debugger/tests/unit/DebuggeeTest.php b/Debugger/tests/Unit/DebuggeeTest.php similarity index 100% rename from Debugger/tests/unit/DebuggeeTest.php rename to Debugger/tests/Unit/DebuggeeTest.php diff --git a/Debugger/tests/unit/DebuggerClientTest.php b/Debugger/tests/Unit/DebuggerClientTest.php similarity index 100% rename from Debugger/tests/unit/DebuggerClientTest.php rename to Debugger/tests/Unit/DebuggerClientTest.php diff --git a/Debugger/tests/unit/ExtendedSourceContextTest.php b/Debugger/tests/Unit/ExtendedSourceContextTest.php similarity index 100% rename from Debugger/tests/unit/ExtendedSourceContextTest.php rename to Debugger/tests/Unit/ExtendedSourceContextTest.php diff --git a/Debugger/tests/unit/FormatMessageTest.php b/Debugger/tests/Unit/FormatMessageTest.php similarity index 100% rename from Debugger/tests/unit/FormatMessageTest.php rename to Debugger/tests/Unit/FormatMessageTest.php diff --git a/Debugger/tests/unit/GerritSourceContextTest.php b/Debugger/tests/Unit/GerritSourceContextTest.php similarity index 100% rename from Debugger/tests/unit/GerritSourceContextTest.php rename to Debugger/tests/Unit/GerritSourceContextTest.php diff --git a/Debugger/tests/unit/GitSourceContextTest.php b/Debugger/tests/Unit/GitSourceContextTest.php similarity index 100% rename from Debugger/tests/unit/GitSourceContextTest.php rename to Debugger/tests/Unit/GitSourceContextTest.php diff --git a/Debugger/tests/unit/JsonTestTrait.php b/Debugger/tests/Unit/JsonTestTrait.php similarity index 100% rename from Debugger/tests/unit/JsonTestTrait.php rename to Debugger/tests/Unit/JsonTestTrait.php diff --git a/Debugger/tests/unit/MatchingFileIteratorTest.php b/Debugger/tests/Unit/MatchingFileIteratorTest.php similarity index 100% rename from Debugger/tests/unit/MatchingFileIteratorTest.php rename to Debugger/tests/Unit/MatchingFileIteratorTest.php diff --git a/Debugger/tests/unit/ProjectRepoIdTest.php b/Debugger/tests/Unit/ProjectRepoIdTest.php similarity index 100% rename from Debugger/tests/unit/ProjectRepoIdTest.php rename to Debugger/tests/Unit/ProjectRepoIdTest.php diff --git a/Debugger/tests/unit/RepoIdTest.php b/Debugger/tests/Unit/RepoIdTest.php similarity index 100% rename from Debugger/tests/unit/RepoIdTest.php rename to Debugger/tests/Unit/RepoIdTest.php diff --git a/Debugger/tests/unit/SourceLocationResolverTest.php b/Debugger/tests/Unit/SourceLocationResolverTest.php similarity index 100% rename from Debugger/tests/unit/SourceLocationResolverTest.php rename to Debugger/tests/Unit/SourceLocationResolverTest.php diff --git a/Debugger/tests/unit/SourceLocationTest.php b/Debugger/tests/Unit/SourceLocationTest.php similarity index 100% rename from Debugger/tests/unit/SourceLocationTest.php rename to Debugger/tests/Unit/SourceLocationTest.php diff --git a/Debugger/tests/unit/StackFrameTest.php b/Debugger/tests/Unit/StackFrameTest.php similarity index 100% rename from Debugger/tests/unit/StackFrameTest.php rename to Debugger/tests/Unit/StackFrameTest.php diff --git a/Debugger/tests/unit/StatusMessageTest.php b/Debugger/tests/Unit/StatusMessageTest.php similarity index 100% rename from Debugger/tests/unit/StatusMessageTest.php rename to Debugger/tests/Unit/StatusMessageTest.php diff --git a/Debugger/tests/unit/VariableTableTest.php b/Debugger/tests/Unit/VariableTableTest.php similarity index 100% rename from Debugger/tests/unit/VariableTableTest.php rename to Debugger/tests/Unit/VariableTableTest.php diff --git a/Debugger/tests/unit/VariableTest.php b/Debugger/tests/Unit/VariableTest.php similarity index 100% rename from Debugger/tests/unit/VariableTest.php rename to Debugger/tests/Unit/VariableTest.php diff --git a/Debugger/tests/unit/bootstrap.php b/Debugger/tests/Unit/bootstrap.php similarity index 100% rename from Debugger/tests/unit/bootstrap.php rename to Debugger/tests/Unit/bootstrap.php diff --git a/Debugger/tests/unit/data/file.php b/Debugger/tests/Unit/data/file.php similarity index 100% rename from Debugger/tests/unit/data/file.php rename to Debugger/tests/Unit/data/file.php diff --git a/Debugger/tests/unit/data/nested/folder/file2.php b/Debugger/tests/Unit/data/nested/folder/file2.php similarity index 100% rename from Debugger/tests/unit/data/nested/folder/file2.php rename to Debugger/tests/Unit/data/nested/folder/file2.php diff --git a/Debugger/tests/unit/data/source-context.json b/Debugger/tests/Unit/data/source-context.json similarity index 100% rename from Debugger/tests/unit/data/source-context.json rename to Debugger/tests/Unit/data/source-context.json diff --git a/Dlp/tests/snippets/bootstrap.php b/Dlp/tests/Snippet/bootstrap.php similarity index 100% rename from Dlp/tests/snippets/bootstrap.php rename to Dlp/tests/Snippet/bootstrap.php diff --git a/Dlp/tests/snippets/keyfile-stub.json b/Dlp/tests/Snippet/keyfile-stub.json similarity index 100% rename from Dlp/tests/snippets/keyfile-stub.json rename to Dlp/tests/Snippet/keyfile-stub.json diff --git a/Dlp/tests/system/bootstrap.php b/Dlp/tests/System/bootstrap.php similarity index 100% rename from Dlp/tests/system/bootstrap.php rename to Dlp/tests/System/bootstrap.php diff --git a/Dlp/tests/unit/bootstrap.php b/Dlp/tests/Unit/bootstrap.php similarity index 100% rename from Dlp/tests/unit/bootstrap.php rename to Dlp/tests/Unit/bootstrap.php diff --git a/ErrorReporting/tests/snippets/bootstrap.php b/ErrorReporting/tests/Snippet/bootstrap.php similarity index 100% rename from ErrorReporting/tests/snippets/bootstrap.php rename to ErrorReporting/tests/Snippet/bootstrap.php diff --git a/ErrorReporting/tests/snippets/keyfile-stub.json b/ErrorReporting/tests/Snippet/keyfile-stub.json similarity index 100% rename from ErrorReporting/tests/snippets/keyfile-stub.json rename to ErrorReporting/tests/Snippet/keyfile-stub.json diff --git a/ErrorReporting/tests/system/bootstrap.php b/ErrorReporting/tests/System/bootstrap.php similarity index 100% rename from ErrorReporting/tests/system/bootstrap.php rename to ErrorReporting/tests/System/bootstrap.php diff --git a/ErrorReporting/tests/unit/BootstrapTest.php b/ErrorReporting/tests/Unit/BootstrapTest.php similarity index 100% rename from ErrorReporting/tests/unit/BootstrapTest.php rename to ErrorReporting/tests/Unit/BootstrapTest.php diff --git a/ErrorReporting/tests/unit/bootstrap.php b/ErrorReporting/tests/Unit/bootstrap.php similarity index 100% rename from ErrorReporting/tests/unit/bootstrap.php rename to ErrorReporting/tests/Unit/bootstrap.php diff --git a/ErrorReporting/tests/unit/fakeGlobalFunctions.php b/ErrorReporting/tests/Unit/fakeGlobalFunctions.php similarity index 100% rename from ErrorReporting/tests/unit/fakeGlobalFunctions.php rename to ErrorReporting/tests/Unit/fakeGlobalFunctions.php diff --git a/Firestore/tests/snippets/CollectionReferenceTest.php b/Firestore/tests/Snippet/CollectionReferenceTest.php similarity index 100% rename from Firestore/tests/snippets/CollectionReferenceTest.php rename to Firestore/tests/Snippet/CollectionReferenceTest.php diff --git a/Firestore/tests/snippets/DocumentReferenceTest.php b/Firestore/tests/Snippet/DocumentReferenceTest.php similarity index 100% rename from Firestore/tests/snippets/DocumentReferenceTest.php rename to Firestore/tests/Snippet/DocumentReferenceTest.php diff --git a/Firestore/tests/snippets/DocumentSnapshotTest.php b/Firestore/tests/Snippet/DocumentSnapshotTest.php similarity index 100% rename from Firestore/tests/snippets/DocumentSnapshotTest.php rename to Firestore/tests/Snippet/DocumentSnapshotTest.php diff --git a/Firestore/tests/snippets/FieldPathTest.php b/Firestore/tests/Snippet/FieldPathTest.php similarity index 100% rename from Firestore/tests/snippets/FieldPathTest.php rename to Firestore/tests/Snippet/FieldPathTest.php diff --git a/Firestore/tests/snippets/FieldValueTest.php b/Firestore/tests/Snippet/FieldValueTest.php similarity index 100% rename from Firestore/tests/snippets/FieldValueTest.php rename to Firestore/tests/Snippet/FieldValueTest.php diff --git a/Firestore/tests/snippets/FirestoreClientTest.php b/Firestore/tests/Snippet/FirestoreClientTest.php similarity index 100% rename from Firestore/tests/snippets/FirestoreClientTest.php rename to Firestore/tests/Snippet/FirestoreClientTest.php diff --git a/Firestore/tests/snippets/QuerySnapshotTest.php b/Firestore/tests/Snippet/QuerySnapshotTest.php similarity index 100% rename from Firestore/tests/snippets/QuerySnapshotTest.php rename to Firestore/tests/Snippet/QuerySnapshotTest.php diff --git a/Firestore/tests/snippets/QueryTest.php b/Firestore/tests/Snippet/QueryTest.php similarity index 100% rename from Firestore/tests/snippets/QueryTest.php rename to Firestore/tests/Snippet/QueryTest.php diff --git a/Firestore/tests/snippets/TransactionTest.php b/Firestore/tests/Snippet/TransactionTest.php similarity index 100% rename from Firestore/tests/snippets/TransactionTest.php rename to Firestore/tests/Snippet/TransactionTest.php diff --git a/Firestore/tests/snippets/WriteBatchTest.php b/Firestore/tests/Snippet/WriteBatchTest.php similarity index 100% rename from Firestore/tests/snippets/WriteBatchTest.php rename to Firestore/tests/Snippet/WriteBatchTest.php diff --git a/Firestore/tests/snippets/bootstrap.php b/Firestore/tests/Snippet/bootstrap.php similarity index 100% rename from Firestore/tests/snippets/bootstrap.php rename to Firestore/tests/Snippet/bootstrap.php diff --git a/Firestore/tests/snippets/keyfile-stub.json b/Firestore/tests/Snippet/keyfile-stub.json similarity index 100% rename from Firestore/tests/snippets/keyfile-stub.json rename to Firestore/tests/Snippet/keyfile-stub.json diff --git a/Firestore/tests/system/DocumentAndCollectionTest.php b/Firestore/tests/System/DocumentAndCollectionTest.php similarity index 100% rename from Firestore/tests/system/DocumentAndCollectionTest.php rename to Firestore/tests/System/DocumentAndCollectionTest.php diff --git a/Firestore/tests/system/FirestoreTestCase.php b/Firestore/tests/System/FirestoreTestCase.php similarity index 100% rename from Firestore/tests/system/FirestoreTestCase.php rename to Firestore/tests/System/FirestoreTestCase.php diff --git a/Firestore/tests/system/QueryTest.php b/Firestore/tests/System/QueryTest.php similarity index 100% rename from Firestore/tests/system/QueryTest.php rename to Firestore/tests/System/QueryTest.php diff --git a/Firestore/tests/system/TransactionTest.php b/Firestore/tests/System/TransactionTest.php similarity index 100% rename from Firestore/tests/system/TransactionTest.php rename to Firestore/tests/System/TransactionTest.php diff --git a/Firestore/tests/system/ValueMapperTest.php b/Firestore/tests/System/ValueMapperTest.php similarity index 100% rename from Firestore/tests/system/ValueMapperTest.php rename to Firestore/tests/System/ValueMapperTest.php diff --git a/Firestore/tests/system/bootstrap.php b/Firestore/tests/System/bootstrap.php similarity index 100% rename from Firestore/tests/system/bootstrap.php rename to Firestore/tests/System/bootstrap.php diff --git a/Firestore/tests/unit/CollectionReferenceTest.php b/Firestore/tests/Unit/CollectionReferenceTest.php similarity index 100% rename from Firestore/tests/unit/CollectionReferenceTest.php rename to Firestore/tests/Unit/CollectionReferenceTest.php diff --git a/Firestore/tests/unit/Connection/GrpcTest.php b/Firestore/tests/Unit/Connection/GrpcTest.php similarity index 100% rename from Firestore/tests/unit/Connection/GrpcTest.php rename to Firestore/tests/Unit/Connection/GrpcTest.php diff --git a/Firestore/tests/unit/DocumentReferenceTest.php b/Firestore/tests/Unit/DocumentReferenceTest.php similarity index 100% rename from Firestore/tests/unit/DocumentReferenceTest.php rename to Firestore/tests/Unit/DocumentReferenceTest.php diff --git a/Firestore/tests/unit/DocumentSnapshotTest.php b/Firestore/tests/Unit/DocumentSnapshotTest.php similarity index 100% rename from Firestore/tests/unit/DocumentSnapshotTest.php rename to Firestore/tests/Unit/DocumentSnapshotTest.php diff --git a/Firestore/tests/unit/FieldPathTest.php b/Firestore/tests/Unit/FieldPathTest.php similarity index 100% rename from Firestore/tests/unit/FieldPathTest.php rename to Firestore/tests/Unit/FieldPathTest.php diff --git a/Firestore/tests/unit/FirestoreClientTest.php b/Firestore/tests/Unit/FirestoreClientTest.php similarity index 100% rename from Firestore/tests/unit/FirestoreClientTest.php rename to Firestore/tests/Unit/FirestoreClientTest.php diff --git a/Firestore/tests/unit/PathTraitTest.php b/Firestore/tests/Unit/PathTraitTest.php similarity index 100% rename from Firestore/tests/unit/PathTraitTest.php rename to Firestore/tests/Unit/PathTraitTest.php diff --git a/Firestore/tests/unit/QuerySnapshotTest.php b/Firestore/tests/Unit/QuerySnapshotTest.php similarity index 100% rename from Firestore/tests/unit/QuerySnapshotTest.php rename to Firestore/tests/Unit/QuerySnapshotTest.php diff --git a/Firestore/tests/unit/QueryTest.php b/Firestore/tests/Unit/QueryTest.php similarity index 100% rename from Firestore/tests/unit/QueryTest.php rename to Firestore/tests/Unit/QueryTest.php diff --git a/Firestore/tests/unit/SnapshotTraitTest.php b/Firestore/tests/Unit/SnapshotTraitTest.php similarity index 100% rename from Firestore/tests/unit/SnapshotTraitTest.php rename to Firestore/tests/Unit/SnapshotTraitTest.php diff --git a/Firestore/tests/unit/TransactionTest.php b/Firestore/tests/Unit/TransactionTest.php similarity index 100% rename from Firestore/tests/unit/TransactionTest.php rename to Firestore/tests/Unit/TransactionTest.php diff --git a/Firestore/tests/unit/ValueMapperTest.php b/Firestore/tests/Unit/ValueMapperTest.php similarity index 100% rename from Firestore/tests/unit/ValueMapperTest.php rename to Firestore/tests/Unit/ValueMapperTest.php diff --git a/Firestore/tests/unit/WriteBatchTest.php b/Firestore/tests/Unit/WriteBatchTest.php similarity index 100% rename from Firestore/tests/unit/WriteBatchTest.php rename to Firestore/tests/Unit/WriteBatchTest.php diff --git a/Firestore/tests/unit/bootstrap.php b/Firestore/tests/Unit/bootstrap.php similarity index 100% rename from Firestore/tests/unit/bootstrap.php rename to Firestore/tests/Unit/bootstrap.php diff --git a/Language/tests/snippets/AnnotationTest.php b/Language/tests/Snippet/AnnotationTest.php similarity index 100% rename from Language/tests/snippets/AnnotationTest.php rename to Language/tests/Snippet/AnnotationTest.php diff --git a/Language/tests/snippets/LanguageClientTest.php b/Language/tests/Snippet/LanguageClientTest.php similarity index 100% rename from Language/tests/snippets/LanguageClientTest.php rename to Language/tests/Snippet/LanguageClientTest.php diff --git a/Language/tests/snippets/bootstrap.php b/Language/tests/Snippet/bootstrap.php similarity index 100% rename from Language/tests/snippets/bootstrap.php rename to Language/tests/Snippet/bootstrap.php diff --git a/Language/tests/snippets/keyfile-stub.json b/Language/tests/Snippet/keyfile-stub.json similarity index 100% rename from Language/tests/snippets/keyfile-stub.json rename to Language/tests/Snippet/keyfile-stub.json diff --git a/Language/tests/system/AnalyzeTest.php b/Language/tests/System/AnalyzeTest.php similarity index 100% rename from Language/tests/system/AnalyzeTest.php rename to Language/tests/System/AnalyzeTest.php diff --git a/Language/tests/system/LanguageTestCase.php b/Language/tests/System/LanguageTestCase.php similarity index 100% rename from Language/tests/system/LanguageTestCase.php rename to Language/tests/System/LanguageTestCase.php diff --git a/Language/tests/system/bootstrap.php b/Language/tests/System/bootstrap.php similarity index 100% rename from Language/tests/system/bootstrap.php rename to Language/tests/System/bootstrap.php diff --git a/Language/tests/unit/AnnotationTest.php b/Language/tests/Unit/AnnotationTest.php similarity index 100% rename from Language/tests/unit/AnnotationTest.php rename to Language/tests/Unit/AnnotationTest.php diff --git a/Language/tests/unit/Connection/RestTest.php b/Language/tests/Unit/Connection/RestTest.php similarity index 100% rename from Language/tests/unit/Connection/RestTest.php rename to Language/tests/Unit/Connection/RestTest.php diff --git a/Language/tests/unit/LanguageClientTest.php b/Language/tests/Unit/LanguageClientTest.php similarity index 100% rename from Language/tests/unit/LanguageClientTest.php rename to Language/tests/Unit/LanguageClientTest.php diff --git a/Language/tests/unit/bootstrap.php b/Language/tests/Unit/bootstrap.php similarity index 100% rename from Language/tests/unit/bootstrap.php rename to Language/tests/Unit/bootstrap.php diff --git a/Logging/tests/snippets/EntryTest.php b/Logging/tests/Snippet/EntryTest.php similarity index 100% rename from Logging/tests/snippets/EntryTest.php rename to Logging/tests/Snippet/EntryTest.php diff --git a/Logging/tests/snippets/LoggerTest.php b/Logging/tests/Snippet/LoggerTest.php similarity index 100% rename from Logging/tests/snippets/LoggerTest.php rename to Logging/tests/Snippet/LoggerTest.php diff --git a/Logging/tests/snippets/LoggingClientTest.php b/Logging/tests/Snippet/LoggingClientTest.php similarity index 100% rename from Logging/tests/snippets/LoggingClientTest.php rename to Logging/tests/Snippet/LoggingClientTest.php diff --git a/Logging/tests/snippets/MetricTest.php b/Logging/tests/Snippet/MetricTest.php similarity index 100% rename from Logging/tests/snippets/MetricTest.php rename to Logging/tests/Snippet/MetricTest.php diff --git a/Logging/tests/snippets/PsrLoggerTest.php b/Logging/tests/Snippet/PsrLoggerTest.php similarity index 100% rename from Logging/tests/snippets/PsrLoggerTest.php rename to Logging/tests/Snippet/PsrLoggerTest.php diff --git a/Logging/tests/snippets/SinkTest.php b/Logging/tests/Snippet/SinkTest.php similarity index 100% rename from Logging/tests/snippets/SinkTest.php rename to Logging/tests/Snippet/SinkTest.php diff --git a/Logging/tests/snippets/bootstrap.php b/Logging/tests/Snippet/bootstrap.php similarity index 100% rename from Logging/tests/snippets/bootstrap.php rename to Logging/tests/Snippet/bootstrap.php diff --git a/Logging/tests/snippets/keyfile-stub.json b/Logging/tests/Snippet/keyfile-stub.json similarity index 100% rename from Logging/tests/snippets/keyfile-stub.json rename to Logging/tests/Snippet/keyfile-stub.json diff --git a/Logging/tests/system/LoggingTestCase.php b/Logging/tests/System/LoggingTestCase.php similarity index 100% rename from Logging/tests/system/LoggingTestCase.php rename to Logging/tests/System/LoggingTestCase.php diff --git a/Logging/tests/system/ManageMetricsTest.php b/Logging/tests/System/ManageMetricsTest.php similarity index 100% rename from Logging/tests/system/ManageMetricsTest.php rename to Logging/tests/System/ManageMetricsTest.php diff --git a/Logging/tests/system/ManageSinksTest.php b/Logging/tests/System/ManageSinksTest.php similarity index 100% rename from Logging/tests/system/ManageSinksTest.php rename to Logging/tests/System/ManageSinksTest.php diff --git a/Logging/tests/system/WriteAndListEntryTest.php b/Logging/tests/System/WriteAndListEntryTest.php similarity index 100% rename from Logging/tests/system/WriteAndListEntryTest.php rename to Logging/tests/System/WriteAndListEntryTest.php diff --git a/Logging/tests/system/bootstrap.php b/Logging/tests/System/bootstrap.php similarity index 100% rename from Logging/tests/system/bootstrap.php rename to Logging/tests/System/bootstrap.php diff --git a/Logging/tests/unit/Connection/GrpcTest.php b/Logging/tests/Unit/Connection/GrpcTest.php similarity index 100% rename from Logging/tests/unit/Connection/GrpcTest.php rename to Logging/tests/Unit/Connection/GrpcTest.php diff --git a/Logging/tests/unit/Connection/RestTest.php b/Logging/tests/Unit/Connection/RestTest.php similarity index 100% rename from Logging/tests/unit/Connection/RestTest.php rename to Logging/tests/Unit/Connection/RestTest.php diff --git a/Logging/tests/unit/LoggerTest.php b/Logging/tests/Unit/LoggerTest.php similarity index 100% rename from Logging/tests/unit/LoggerTest.php rename to Logging/tests/Unit/LoggerTest.php diff --git a/Logging/tests/unit/LoggingClientTest.php b/Logging/tests/Unit/LoggingClientTest.php similarity index 100% rename from Logging/tests/unit/LoggingClientTest.php rename to Logging/tests/Unit/LoggingClientTest.php diff --git a/Logging/tests/unit/MetricTest.php b/Logging/tests/Unit/MetricTest.php similarity index 100% rename from Logging/tests/unit/MetricTest.php rename to Logging/tests/Unit/MetricTest.php diff --git a/Logging/tests/unit/PsrLoggerBatchTest.php b/Logging/tests/Unit/PsrLoggerBatchTest.php similarity index 100% rename from Logging/tests/unit/PsrLoggerBatchTest.php rename to Logging/tests/Unit/PsrLoggerBatchTest.php diff --git a/Logging/tests/unit/PsrLoggerCompatibilityTest.php b/Logging/tests/Unit/PsrLoggerCompatibilityTest.php similarity index 100% rename from Logging/tests/unit/PsrLoggerCompatibilityTest.php rename to Logging/tests/Unit/PsrLoggerCompatibilityTest.php diff --git a/Logging/tests/unit/PsrLoggerTest.php b/Logging/tests/Unit/PsrLoggerTest.php similarity index 100% rename from Logging/tests/unit/PsrLoggerTest.php rename to Logging/tests/Unit/PsrLoggerTest.php diff --git a/Logging/tests/unit/SinkTest.php b/Logging/tests/Unit/SinkTest.php similarity index 100% rename from Logging/tests/unit/SinkTest.php rename to Logging/tests/Unit/SinkTest.php diff --git a/Logging/tests/unit/bootstrap.php b/Logging/tests/Unit/bootstrap.php similarity index 100% rename from Logging/tests/unit/bootstrap.php rename to Logging/tests/Unit/bootstrap.php diff --git a/Monitoring/tests/snippets/bootstrap.php b/Monitoring/tests/Snippet/bootstrap.php similarity index 100% rename from Monitoring/tests/snippets/bootstrap.php rename to Monitoring/tests/Snippet/bootstrap.php diff --git a/Monitoring/tests/snippets/keyfile-stub.json b/Monitoring/tests/Snippet/keyfile-stub.json similarity index 100% rename from Monitoring/tests/snippets/keyfile-stub.json rename to Monitoring/tests/Snippet/keyfile-stub.json diff --git a/Monitoring/tests/system/bootstrap.php b/Monitoring/tests/System/bootstrap.php similarity index 100% rename from Monitoring/tests/system/bootstrap.php rename to Monitoring/tests/System/bootstrap.php diff --git a/Monitoring/tests/unit/bootstrap.php b/Monitoring/tests/Unit/bootstrap.php similarity index 100% rename from Monitoring/tests/unit/bootstrap.php rename to Monitoring/tests/Unit/bootstrap.php diff --git a/OsLogin/tests/snippets/bootstrap.php b/OsLogin/tests/Snippet/bootstrap.php similarity index 100% rename from OsLogin/tests/snippets/bootstrap.php rename to OsLogin/tests/Snippet/bootstrap.php diff --git a/OsLogin/tests/snippets/keyfile-stub.json b/OsLogin/tests/Snippet/keyfile-stub.json similarity index 100% rename from OsLogin/tests/snippets/keyfile-stub.json rename to OsLogin/tests/Snippet/keyfile-stub.json diff --git a/OsLogin/tests/system/OsLoginServiceClientTest.php b/OsLogin/tests/System/OsLoginServiceClientTest.php similarity index 100% rename from OsLogin/tests/system/OsLoginServiceClientTest.php rename to OsLogin/tests/System/OsLoginServiceClientTest.php diff --git a/OsLogin/tests/system/bootstrap.php b/OsLogin/tests/System/bootstrap.php similarity index 100% rename from OsLogin/tests/system/bootstrap.php rename to OsLogin/tests/System/bootstrap.php diff --git a/OsLogin/tests/unit/bootstrap.php b/OsLogin/tests/Unit/bootstrap.php similarity index 100% rename from OsLogin/tests/unit/bootstrap.php rename to OsLogin/tests/Unit/bootstrap.php diff --git a/PubSub/tests/snippets/BatchPublisherTest.php b/PubSub/tests/Snippet/BatchPublisherTest.php similarity index 100% rename from PubSub/tests/snippets/BatchPublisherTest.php rename to PubSub/tests/Snippet/BatchPublisherTest.php diff --git a/PubSub/tests/snippets/MessageTest.php b/PubSub/tests/Snippet/MessageTest.php similarity index 100% rename from PubSub/tests/snippets/MessageTest.php rename to PubSub/tests/Snippet/MessageTest.php diff --git a/PubSub/tests/snippets/PubSubClientTest.php b/PubSub/tests/Snippet/PubSubClientTest.php similarity index 100% rename from PubSub/tests/snippets/PubSubClientTest.php rename to PubSub/tests/Snippet/PubSubClientTest.php diff --git a/PubSub/tests/snippets/SnapshotTest.php b/PubSub/tests/Snippet/SnapshotTest.php similarity index 100% rename from PubSub/tests/snippets/SnapshotTest.php rename to PubSub/tests/Snippet/SnapshotTest.php diff --git a/PubSub/tests/snippets/SubscriptionTest.php b/PubSub/tests/Snippet/SubscriptionTest.php similarity index 100% rename from PubSub/tests/snippets/SubscriptionTest.php rename to PubSub/tests/Snippet/SubscriptionTest.php diff --git a/PubSub/tests/snippets/TopicTest.php b/PubSub/tests/Snippet/TopicTest.php similarity index 100% rename from PubSub/tests/snippets/TopicTest.php rename to PubSub/tests/Snippet/TopicTest.php diff --git a/PubSub/tests/snippets/bootstrap.php b/PubSub/tests/Snippet/bootstrap.php similarity index 100% rename from PubSub/tests/snippets/bootstrap.php rename to PubSub/tests/Snippet/bootstrap.php diff --git a/PubSub/tests/snippets/keyfile-stub.json b/PubSub/tests/Snippet/keyfile-stub.json similarity index 100% rename from PubSub/tests/snippets/keyfile-stub.json rename to PubSub/tests/Snippet/keyfile-stub.json diff --git a/PubSub/tests/system/ManageIAMPoliciesTest.php b/PubSub/tests/System/ManageIAMPoliciesTest.php similarity index 100% rename from PubSub/tests/system/ManageIAMPoliciesTest.php rename to PubSub/tests/System/ManageIAMPoliciesTest.php diff --git a/PubSub/tests/system/ManageSubscriptionsTest.php b/PubSub/tests/System/ManageSubscriptionsTest.php similarity index 100% rename from PubSub/tests/system/ManageSubscriptionsTest.php rename to PubSub/tests/System/ManageSubscriptionsTest.php diff --git a/PubSub/tests/system/ManageTopicsTest.php b/PubSub/tests/System/ManageTopicsTest.php similarity index 100% rename from PubSub/tests/system/ManageTopicsTest.php rename to PubSub/tests/System/ManageTopicsTest.php diff --git a/PubSub/tests/system/PubSubTestCase.php b/PubSub/tests/System/PubSubTestCase.php similarity index 100% rename from PubSub/tests/system/PubSubTestCase.php rename to PubSub/tests/System/PubSubTestCase.php diff --git a/PubSub/tests/system/PublishAndPullTest.php b/PubSub/tests/System/PublishAndPullTest.php similarity index 100% rename from PubSub/tests/system/PublishAndPullTest.php rename to PubSub/tests/System/PublishAndPullTest.php diff --git a/PubSub/tests/system/bootstrap.php b/PubSub/tests/System/bootstrap.php similarity index 100% rename from PubSub/tests/system/bootstrap.php rename to PubSub/tests/System/bootstrap.php diff --git a/PubSub/tests/unit/BatchPublisherTest.php b/PubSub/tests/Unit/BatchPublisherTest.php similarity index 100% rename from PubSub/tests/unit/BatchPublisherTest.php rename to PubSub/tests/Unit/BatchPublisherTest.php diff --git a/PubSub/tests/unit/Connection/GrpcTest.php b/PubSub/tests/Unit/Connection/GrpcTest.php similarity index 100% rename from PubSub/tests/unit/Connection/GrpcTest.php rename to PubSub/tests/Unit/Connection/GrpcTest.php diff --git a/PubSub/tests/unit/Connection/IamSubscriptionTest.php b/PubSub/tests/Unit/Connection/IamSubscriptionTest.php similarity index 100% rename from PubSub/tests/unit/Connection/IamSubscriptionTest.php rename to PubSub/tests/Unit/Connection/IamSubscriptionTest.php diff --git a/PubSub/tests/unit/Connection/IamTopicTest.php b/PubSub/tests/Unit/Connection/IamTopicTest.php similarity index 100% rename from PubSub/tests/unit/Connection/IamTopicTest.php rename to PubSub/tests/Unit/Connection/IamTopicTest.php diff --git a/PubSub/tests/unit/Connection/RestTest.php b/PubSub/tests/Unit/Connection/RestTest.php similarity index 100% rename from PubSub/tests/unit/Connection/RestTest.php rename to PubSub/tests/Unit/Connection/RestTest.php diff --git a/PubSub/tests/unit/IncomingMessageTraitTest.php b/PubSub/tests/Unit/IncomingMessageTraitTest.php similarity index 100% rename from PubSub/tests/unit/IncomingMessageTraitTest.php rename to PubSub/tests/Unit/IncomingMessageTraitTest.php diff --git a/PubSub/tests/unit/MessageTest.php b/PubSub/tests/Unit/MessageTest.php similarity index 100% rename from PubSub/tests/unit/MessageTest.php rename to PubSub/tests/Unit/MessageTest.php diff --git a/PubSub/tests/unit/PubSubClientTest.php b/PubSub/tests/Unit/PubSubClientTest.php similarity index 100% rename from PubSub/tests/unit/PubSubClientTest.php rename to PubSub/tests/Unit/PubSubClientTest.php diff --git a/PubSub/tests/unit/ResourceNameTraitTest.php b/PubSub/tests/Unit/ResourceNameTraitTest.php similarity index 100% rename from PubSub/tests/unit/ResourceNameTraitTest.php rename to PubSub/tests/Unit/ResourceNameTraitTest.php diff --git a/PubSub/tests/unit/SnapshotTest.php b/PubSub/tests/Unit/SnapshotTest.php similarity index 100% rename from PubSub/tests/unit/SnapshotTest.php rename to PubSub/tests/Unit/SnapshotTest.php diff --git a/PubSub/tests/unit/SubscriptionTest.php b/PubSub/tests/Unit/SubscriptionTest.php similarity index 100% rename from PubSub/tests/unit/SubscriptionTest.php rename to PubSub/tests/Unit/SubscriptionTest.php diff --git a/PubSub/tests/unit/TopicTest.php b/PubSub/tests/Unit/TopicTest.php similarity index 100% rename from PubSub/tests/unit/TopicTest.php rename to PubSub/tests/Unit/TopicTest.php diff --git a/PubSub/tests/unit/bootstrap.php b/PubSub/tests/Unit/bootstrap.php similarity index 100% rename from PubSub/tests/unit/bootstrap.php rename to PubSub/tests/Unit/bootstrap.php diff --git a/Spanner/tests/snippets/BytesTest.php b/Spanner/tests/Snippet/BytesTest.php similarity index 100% rename from Spanner/tests/snippets/BytesTest.php rename to Spanner/tests/Snippet/BytesTest.php diff --git a/Spanner/tests/snippets/DatabaseTest.php b/Spanner/tests/Snippet/DatabaseTest.php similarity index 100% rename from Spanner/tests/snippets/DatabaseTest.php rename to Spanner/tests/Snippet/DatabaseTest.php diff --git a/Spanner/tests/snippets/DateTest.php b/Spanner/tests/Snippet/DateTest.php similarity index 100% rename from Spanner/tests/snippets/DateTest.php rename to Spanner/tests/Snippet/DateTest.php diff --git a/Spanner/tests/snippets/DurationTest.php b/Spanner/tests/Snippet/DurationTest.php similarity index 100% rename from Spanner/tests/snippets/DurationTest.php rename to Spanner/tests/Snippet/DurationTest.php diff --git a/Spanner/tests/snippets/InstanceConfigurationTest.php b/Spanner/tests/Snippet/InstanceConfigurationTest.php similarity index 100% rename from Spanner/tests/snippets/InstanceConfigurationTest.php rename to Spanner/tests/Snippet/InstanceConfigurationTest.php diff --git a/Spanner/tests/snippets/InstanceTest.php b/Spanner/tests/Snippet/InstanceTest.php similarity index 100% rename from Spanner/tests/snippets/InstanceTest.php rename to Spanner/tests/Snippet/InstanceTest.php diff --git a/Spanner/tests/snippets/KeyRangeTest.php b/Spanner/tests/Snippet/KeyRangeTest.php similarity index 100% rename from Spanner/tests/snippets/KeyRangeTest.php rename to Spanner/tests/Snippet/KeyRangeTest.php diff --git a/Spanner/tests/snippets/KeySetTest.php b/Spanner/tests/Snippet/KeySetTest.php similarity index 100% rename from Spanner/tests/snippets/KeySetTest.php rename to Spanner/tests/Snippet/KeySetTest.php diff --git a/Spanner/tests/snippets/ResultTest.php b/Spanner/tests/Snippet/ResultTest.php similarity index 100% rename from Spanner/tests/snippets/ResultTest.php rename to Spanner/tests/Snippet/ResultTest.php diff --git a/Spanner/tests/snippets/Session/CacheSessionPoolTest.php b/Spanner/tests/Snippet/Session/CacheSessionPoolTest.php similarity index 100% rename from Spanner/tests/snippets/Session/CacheSessionPoolTest.php rename to Spanner/tests/Snippet/Session/CacheSessionPoolTest.php diff --git a/Spanner/tests/snippets/SnapshotTest.php b/Spanner/tests/Snippet/SnapshotTest.php similarity index 100% rename from Spanner/tests/snippets/SnapshotTest.php rename to Spanner/tests/Snippet/SnapshotTest.php diff --git a/Spanner/tests/snippets/SpannerClientTest.php b/Spanner/tests/Snippet/SpannerClientTest.php similarity index 100% rename from Spanner/tests/snippets/SpannerClientTest.php rename to Spanner/tests/Snippet/SpannerClientTest.php diff --git a/Spanner/tests/snippets/TimestampTest.php b/Spanner/tests/Snippet/TimestampTest.php similarity index 100% rename from Spanner/tests/snippets/TimestampTest.php rename to Spanner/tests/Snippet/TimestampTest.php diff --git a/Spanner/tests/snippets/TransactionTest.php b/Spanner/tests/Snippet/TransactionTest.php similarity index 100% rename from Spanner/tests/snippets/TransactionTest.php rename to Spanner/tests/Snippet/TransactionTest.php diff --git a/Spanner/tests/snippets/bootstrap.php b/Spanner/tests/Snippet/bootstrap.php similarity index 100% rename from Spanner/tests/snippets/bootstrap.php rename to Spanner/tests/Snippet/bootstrap.php diff --git a/Spanner/tests/snippets/keyfile-stub.json b/Spanner/tests/Snippet/keyfile-stub.json similarity index 100% rename from Spanner/tests/snippets/keyfile-stub.json rename to Spanner/tests/Snippet/keyfile-stub.json diff --git a/Spanner/tests/system/AdminTest.php b/Spanner/tests/System/AdminTest.php similarity index 100% rename from Spanner/tests/system/AdminTest.php rename to Spanner/tests/System/AdminTest.php diff --git a/Spanner/tests/system/LargeReadTest.php b/Spanner/tests/System/LargeReadTest.php similarity index 100% rename from Spanner/tests/system/LargeReadTest.php rename to Spanner/tests/System/LargeReadTest.php diff --git a/Spanner/tests/system/OperationsTest.php b/Spanner/tests/System/OperationsTest.php similarity index 100% rename from Spanner/tests/system/OperationsTest.php rename to Spanner/tests/System/OperationsTest.php diff --git a/Spanner/tests/system/QueryTest.php b/Spanner/tests/System/QueryTest.php similarity index 100% rename from Spanner/tests/system/QueryTest.php rename to Spanner/tests/System/QueryTest.php diff --git a/Spanner/tests/system/ReadTest.php b/Spanner/tests/System/ReadTest.php similarity index 100% rename from Spanner/tests/system/ReadTest.php rename to Spanner/tests/System/ReadTest.php diff --git a/Spanner/tests/system/SnapshotTest.php b/Spanner/tests/System/SnapshotTest.php similarity index 100% rename from Spanner/tests/system/SnapshotTest.php rename to Spanner/tests/System/SnapshotTest.php diff --git a/Spanner/tests/system/SpannerTestCase.php b/Spanner/tests/System/SpannerTestCase.php similarity index 100% rename from Spanner/tests/system/SpannerTestCase.php rename to Spanner/tests/System/SpannerTestCase.php diff --git a/Spanner/tests/system/TransactionTest.php b/Spanner/tests/System/TransactionTest.php similarity index 100% rename from Spanner/tests/system/TransactionTest.php rename to Spanner/tests/System/TransactionTest.php diff --git a/Spanner/tests/system/WriteTest.php b/Spanner/tests/System/WriteTest.php similarity index 100% rename from Spanner/tests/system/WriteTest.php rename to Spanner/tests/System/WriteTest.php diff --git a/Spanner/tests/system/bootstrap.php b/Spanner/tests/System/bootstrap.php similarity index 100% rename from Spanner/tests/system/bootstrap.php rename to Spanner/tests/System/bootstrap.php diff --git a/Spanner/tests/system/pcntl/AbortedErrorCausesRetry.php b/Spanner/tests/System/pcntl/AbortedErrorCausesRetry.php similarity index 100% rename from Spanner/tests/system/pcntl/AbortedErrorCausesRetry.php rename to Spanner/tests/System/pcntl/AbortedErrorCausesRetry.php diff --git a/Spanner/tests/system/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php b/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php similarity index 100% rename from Spanner/tests/system/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php rename to Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php diff --git a/Spanner/tests/system/pcntl/ConcurrentTransactionsIncrementValueWithRead.php b/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithRead.php similarity index 100% rename from Spanner/tests/system/pcntl/ConcurrentTransactionsIncrementValueWithRead.php rename to Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithRead.php diff --git a/Spanner/tests/system/pcntl/forked-process-test.php b/Spanner/tests/System/pcntl/forked-process-test.php similarity index 100% rename from Spanner/tests/system/pcntl/forked-process-test.php rename to Spanner/tests/System/pcntl/forked-process-test.php diff --git a/Spanner/tests/unit/BytesTest.php b/Spanner/tests/Unit/BytesTest.php similarity index 100% rename from Spanner/tests/unit/BytesTest.php rename to Spanner/tests/Unit/BytesTest.php diff --git a/Spanner/tests/unit/Connection/GrpcTest.php b/Spanner/tests/Unit/Connection/GrpcTest.php similarity index 100% rename from Spanner/tests/unit/Connection/GrpcTest.php rename to Spanner/tests/Unit/Connection/GrpcTest.php diff --git a/Spanner/tests/unit/Connection/IamDatabaseTest.php b/Spanner/tests/Unit/Connection/IamDatabaseTest.php similarity index 100% rename from Spanner/tests/unit/Connection/IamDatabaseTest.php rename to Spanner/tests/Unit/Connection/IamDatabaseTest.php diff --git a/Spanner/tests/unit/Connection/IamInstanceTest.php b/Spanner/tests/Unit/Connection/IamInstanceTest.php similarity index 100% rename from Spanner/tests/unit/Connection/IamInstanceTest.php rename to Spanner/tests/Unit/Connection/IamInstanceTest.php diff --git a/Spanner/tests/unit/Connection/LongRunningConnectionTest.php b/Spanner/tests/Unit/Connection/LongRunningConnectionTest.php similarity index 100% rename from Spanner/tests/unit/Connection/LongRunningConnectionTest.php rename to Spanner/tests/Unit/Connection/LongRunningConnectionTest.php diff --git a/Spanner/tests/unit/DatabaseTest.php b/Spanner/tests/Unit/DatabaseTest.php similarity index 100% rename from Spanner/tests/unit/DatabaseTest.php rename to Spanner/tests/Unit/DatabaseTest.php diff --git a/Spanner/tests/unit/DateTest.php b/Spanner/tests/Unit/DateTest.php similarity index 100% rename from Spanner/tests/unit/DateTest.php rename to Spanner/tests/Unit/DateTest.php diff --git a/Spanner/tests/unit/DurationTest.php b/Spanner/tests/Unit/DurationTest.php similarity index 100% rename from Spanner/tests/unit/DurationTest.php rename to Spanner/tests/Unit/DurationTest.php diff --git a/Spanner/tests/unit/Fixtures.php b/Spanner/tests/Unit/Fixtures.php similarity index 100% rename from Spanner/tests/unit/Fixtures.php rename to Spanner/tests/Unit/Fixtures.php diff --git a/Spanner/tests/unit/InstanceConfigurationTest.php b/Spanner/tests/Unit/InstanceConfigurationTest.php similarity index 100% rename from Spanner/tests/unit/InstanceConfigurationTest.php rename to Spanner/tests/Unit/InstanceConfigurationTest.php diff --git a/Spanner/tests/unit/InstanceTest.php b/Spanner/tests/Unit/InstanceTest.php similarity index 100% rename from Spanner/tests/unit/InstanceTest.php rename to Spanner/tests/Unit/InstanceTest.php diff --git a/Spanner/tests/unit/KeyRangeTest.php b/Spanner/tests/Unit/KeyRangeTest.php similarity index 100% rename from Spanner/tests/unit/KeyRangeTest.php rename to Spanner/tests/Unit/KeyRangeTest.php diff --git a/Spanner/tests/unit/KeySetTest.php b/Spanner/tests/Unit/KeySetTest.php similarity index 100% rename from Spanner/tests/unit/KeySetTest.php rename to Spanner/tests/Unit/KeySetTest.php diff --git a/Spanner/tests/unit/OperationTest.php b/Spanner/tests/Unit/OperationTest.php similarity index 100% rename from Spanner/tests/unit/OperationTest.php rename to Spanner/tests/Unit/OperationTest.php diff --git a/Spanner/tests/unit/ResultTest.php b/Spanner/tests/Unit/ResultTest.php similarity index 100% rename from Spanner/tests/unit/ResultTest.php rename to Spanner/tests/Unit/ResultTest.php diff --git a/Spanner/tests/unit/ResultTestTrait.php b/Spanner/tests/Unit/ResultTestTrait.php similarity index 100% rename from Spanner/tests/unit/ResultTestTrait.php rename to Spanner/tests/Unit/ResultTestTrait.php diff --git a/Spanner/tests/unit/Session/CacheSessionPoolTest.php b/Spanner/tests/Unit/Session/CacheSessionPoolTest.php similarity index 100% rename from Spanner/tests/unit/Session/CacheSessionPoolTest.php rename to Spanner/tests/Unit/Session/CacheSessionPoolTest.php diff --git a/Spanner/tests/unit/SnapshotTest.php b/Spanner/tests/Unit/SnapshotTest.php similarity index 100% rename from Spanner/tests/unit/SnapshotTest.php rename to Spanner/tests/Unit/SnapshotTest.php diff --git a/Spanner/tests/unit/SpannerClientTest.php b/Spanner/tests/Unit/SpannerClientTest.php similarity index 100% rename from Spanner/tests/unit/SpannerClientTest.php rename to Spanner/tests/Unit/SpannerClientTest.php diff --git a/Spanner/tests/unit/TimestampTest.php b/Spanner/tests/Unit/TimestampTest.php similarity index 100% rename from Spanner/tests/unit/TimestampTest.php rename to Spanner/tests/Unit/TimestampTest.php diff --git a/Spanner/tests/unit/TransactionConfigurationTraitTest.php b/Spanner/tests/Unit/TransactionConfigurationTraitTest.php similarity index 100% rename from Spanner/tests/unit/TransactionConfigurationTraitTest.php rename to Spanner/tests/Unit/TransactionConfigurationTraitTest.php diff --git a/Spanner/tests/unit/TransactionTest.php b/Spanner/tests/Unit/TransactionTest.php similarity index 100% rename from Spanner/tests/unit/TransactionTest.php rename to Spanner/tests/Unit/TransactionTest.php diff --git a/Spanner/tests/unit/TransactionTypeTest.php b/Spanner/tests/Unit/TransactionTypeTest.php similarity index 100% rename from Spanner/tests/unit/TransactionTypeTest.php rename to Spanner/tests/Unit/TransactionTypeTest.php diff --git a/Spanner/tests/unit/ValueMapperTest.php b/Spanner/tests/Unit/ValueMapperTest.php similarity index 100% rename from Spanner/tests/unit/ValueMapperTest.php rename to Spanner/tests/Unit/ValueMapperTest.php diff --git a/Spanner/tests/unit/bootstrap.php b/Spanner/tests/Unit/bootstrap.php similarity index 100% rename from Spanner/tests/unit/bootstrap.php rename to Spanner/tests/Unit/bootstrap.php diff --git a/Spanner/tests/unit/fixtures/instance.json b/Spanner/tests/Unit/fixtures/instance.json similarity index 100% rename from Spanner/tests/unit/fixtures/instance.json rename to Spanner/tests/Unit/fixtures/instance.json diff --git a/Spanner/tests/unit/fixtures/streaming-read-acceptance-test.json b/Spanner/tests/Unit/fixtures/streaming-read-acceptance-test.json similarity index 100% rename from Spanner/tests/unit/fixtures/streaming-read-acceptance-test.json rename to Spanner/tests/Unit/fixtures/streaming-read-acceptance-test.json diff --git a/Speech/tests/snippets/OperationTest.php b/Speech/tests/Snippet/OperationTest.php similarity index 100% rename from Speech/tests/snippets/OperationTest.php rename to Speech/tests/Snippet/OperationTest.php diff --git a/Speech/tests/snippets/ResultTest.php b/Speech/tests/Snippet/ResultTest.php similarity index 100% rename from Speech/tests/snippets/ResultTest.php rename to Speech/tests/Snippet/ResultTest.php diff --git a/Speech/tests/snippets/SpeechClientTest.php b/Speech/tests/Snippet/SpeechClientTest.php similarity index 100% rename from Speech/tests/snippets/SpeechClientTest.php rename to Speech/tests/Snippet/SpeechClientTest.php diff --git a/Speech/tests/snippets/bootstrap.php b/Speech/tests/Snippet/bootstrap.php similarity index 100% rename from Speech/tests/snippets/bootstrap.php rename to Speech/tests/Snippet/bootstrap.php diff --git a/Speech/tests/snippets/fixtures/demo.flac b/Speech/tests/Snippet/fixtures/demo.flac similarity index 100% rename from Speech/tests/snippets/fixtures/demo.flac rename to Speech/tests/Snippet/fixtures/demo.flac diff --git a/Speech/tests/snippets/keyfile-stub.json b/Speech/tests/Snippet/keyfile-stub.json similarity index 100% rename from Speech/tests/snippets/keyfile-stub.json rename to Speech/tests/Snippet/keyfile-stub.json diff --git a/Speech/tests/system/bootstrap.php b/Speech/tests/System/bootstrap.php similarity index 100% rename from Speech/tests/system/bootstrap.php rename to Speech/tests/System/bootstrap.php diff --git a/Speech/tests/unit/Connection/RestTest.php b/Speech/tests/Unit/Connection/RestTest.php similarity index 100% rename from Speech/tests/unit/Connection/RestTest.php rename to Speech/tests/Unit/Connection/RestTest.php diff --git a/Speech/tests/unit/OperationTest.php b/Speech/tests/Unit/OperationTest.php similarity index 100% rename from Speech/tests/unit/OperationTest.php rename to Speech/tests/Unit/OperationTest.php diff --git a/Speech/tests/unit/ResultTest.php b/Speech/tests/Unit/ResultTest.php similarity index 100% rename from Speech/tests/unit/ResultTest.php rename to Speech/tests/Unit/ResultTest.php diff --git a/Speech/tests/unit/SpeechClientTest.php b/Speech/tests/Unit/SpeechClientTest.php similarity index 100% rename from Speech/tests/unit/SpeechClientTest.php rename to Speech/tests/Unit/SpeechClientTest.php diff --git a/Speech/tests/unit/bootstrap.php b/Speech/tests/Unit/bootstrap.php similarity index 100% rename from Speech/tests/unit/bootstrap.php rename to Speech/tests/Unit/bootstrap.php diff --git a/Speech/tests/unit/data/brooklyn.flac b/Speech/tests/Unit/data/brooklyn.flac similarity index 100% rename from Speech/tests/unit/data/brooklyn.flac rename to Speech/tests/Unit/data/brooklyn.flac diff --git a/Storage/tests/snippets/AclTest.php b/Storage/tests/Snippet/AclTest.php similarity index 100% rename from Storage/tests/snippets/AclTest.php rename to Storage/tests/Snippet/AclTest.php diff --git a/Storage/tests/snippets/BucketTest.php b/Storage/tests/Snippet/BucketTest.php similarity index 100% rename from Storage/tests/snippets/BucketTest.php rename to Storage/tests/Snippet/BucketTest.php diff --git a/Storage/tests/snippets/NotificationTest.php b/Storage/tests/Snippet/NotificationTest.php similarity index 100% rename from Storage/tests/snippets/NotificationTest.php rename to Storage/tests/Snippet/NotificationTest.php diff --git a/Storage/tests/snippets/StorageClientTest.php b/Storage/tests/Snippet/StorageClientTest.php similarity index 100% rename from Storage/tests/snippets/StorageClientTest.php rename to Storage/tests/Snippet/StorageClientTest.php diff --git a/Storage/tests/snippets/StorageObjectTest.php b/Storage/tests/Snippet/StorageObjectTest.php similarity index 100% rename from Storage/tests/snippets/StorageObjectTest.php rename to Storage/tests/Snippet/StorageObjectTest.php diff --git a/Storage/tests/snippets/bootstrap.php b/Storage/tests/Snippet/bootstrap.php similarity index 100% rename from Storage/tests/snippets/bootstrap.php rename to Storage/tests/Snippet/bootstrap.php diff --git a/Storage/tests/snippets/keyfile-stub.json b/Storage/tests/Snippet/keyfile-stub.json similarity index 100% rename from Storage/tests/snippets/keyfile-stub.json rename to Storage/tests/Snippet/keyfile-stub.json diff --git a/Storage/tests/system/ManageAclTest.php b/Storage/tests/System/ManageAclTest.php similarity index 100% rename from Storage/tests/system/ManageAclTest.php rename to Storage/tests/System/ManageAclTest.php diff --git a/Storage/tests/system/ManageBucketsTest.php b/Storage/tests/System/ManageBucketsTest.php similarity index 100% rename from Storage/tests/system/ManageBucketsTest.php rename to Storage/tests/System/ManageBucketsTest.php diff --git a/Storage/tests/system/ManageNotificationsTest.php b/Storage/tests/System/ManageNotificationsTest.php similarity index 100% rename from Storage/tests/system/ManageNotificationsTest.php rename to Storage/tests/System/ManageNotificationsTest.php diff --git a/Storage/tests/system/ManageObjectsTest.php b/Storage/tests/System/ManageObjectsTest.php similarity index 100% rename from Storage/tests/system/ManageObjectsTest.php rename to Storage/tests/System/ManageObjectsTest.php diff --git a/Storage/tests/system/README.md b/Storage/tests/System/README.md similarity index 100% rename from Storage/tests/system/README.md rename to Storage/tests/System/README.md diff --git a/Storage/tests/system/RequesterPaysTest.php b/Storage/tests/System/RequesterPaysTest.php similarity index 100% rename from Storage/tests/system/RequesterPaysTest.php rename to Storage/tests/System/RequesterPaysTest.php diff --git a/Storage/tests/system/SignedUrlTest.php b/Storage/tests/System/SignedUrlTest.php similarity index 100% rename from Storage/tests/system/SignedUrlTest.php rename to Storage/tests/System/SignedUrlTest.php diff --git a/Storage/tests/system/StorageTestCase.php b/Storage/tests/System/StorageTestCase.php similarity index 100% rename from Storage/tests/system/StorageTestCase.php rename to Storage/tests/System/StorageTestCase.php diff --git a/Storage/tests/system/StreamWrapper/DirectoryTest.php b/Storage/tests/System/StreamWrapper/DirectoryTest.php similarity index 100% rename from Storage/tests/system/StreamWrapper/DirectoryTest.php rename to Storage/tests/System/StreamWrapper/DirectoryTest.php diff --git a/Storage/tests/system/StreamWrapper/ImageTest.php b/Storage/tests/System/StreamWrapper/ImageTest.php similarity index 100% rename from Storage/tests/system/StreamWrapper/ImageTest.php rename to Storage/tests/System/StreamWrapper/ImageTest.php diff --git a/Storage/tests/system/StreamWrapper/ReadTest.php b/Storage/tests/System/StreamWrapper/ReadTest.php similarity index 100% rename from Storage/tests/system/StreamWrapper/ReadTest.php rename to Storage/tests/System/StreamWrapper/ReadTest.php diff --git a/Storage/tests/system/StreamWrapper/RenameTest.php b/Storage/tests/System/StreamWrapper/RenameTest.php similarity index 100% rename from Storage/tests/system/StreamWrapper/RenameTest.php rename to Storage/tests/System/StreamWrapper/RenameTest.php diff --git a/Storage/tests/system/StreamWrapper/StreamWrapperTestCase.php b/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php similarity index 100% rename from Storage/tests/system/StreamWrapper/StreamWrapperTestCase.php rename to Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php diff --git a/Storage/tests/system/StreamWrapper/UrlStatTest.php b/Storage/tests/System/StreamWrapper/UrlStatTest.php similarity index 100% rename from Storage/tests/system/StreamWrapper/UrlStatTest.php rename to Storage/tests/System/StreamWrapper/UrlStatTest.php diff --git a/Storage/tests/system/StreamWrapper/WriteTest.php b/Storage/tests/System/StreamWrapper/WriteTest.php similarity index 100% rename from Storage/tests/system/StreamWrapper/WriteTest.php rename to Storage/tests/System/StreamWrapper/WriteTest.php diff --git a/Storage/tests/system/UploadObjectsTest.php b/Storage/tests/System/UploadObjectsTest.php similarity index 100% rename from Storage/tests/system/UploadObjectsTest.php rename to Storage/tests/System/UploadObjectsTest.php diff --git a/Storage/tests/system/bootstrap.php b/Storage/tests/System/bootstrap.php similarity index 100% rename from Storage/tests/system/bootstrap.php rename to Storage/tests/System/bootstrap.php diff --git a/Storage/tests/system/data/5mb.txt b/Storage/tests/System/data/5mb.txt similarity index 100% rename from Storage/tests/system/data/5mb.txt rename to Storage/tests/System/data/5mb.txt diff --git a/Storage/tests/system/data/CloudPlatform_128px_Retina.png b/Storage/tests/System/data/CloudPlatform_128px_Retina.png similarity index 100% rename from Storage/tests/system/data/CloudPlatform_128px_Retina.png rename to Storage/tests/System/data/CloudPlatform_128px_Retina.png diff --git a/Storage/tests/unit/AclTest.php b/Storage/tests/Unit/AclTest.php similarity index 100% rename from Storage/tests/unit/AclTest.php rename to Storage/tests/Unit/AclTest.php diff --git a/Storage/tests/unit/BucketTest.php b/Storage/tests/Unit/BucketTest.php similarity index 100% rename from Storage/tests/unit/BucketTest.php rename to Storage/tests/Unit/BucketTest.php diff --git a/Storage/tests/unit/Connection/IamBucketTest.php b/Storage/tests/Unit/Connection/IamBucketTest.php similarity index 100% rename from Storage/tests/unit/Connection/IamBucketTest.php rename to Storage/tests/Unit/Connection/IamBucketTest.php diff --git a/Storage/tests/unit/Connection/RestTest.php b/Storage/tests/Unit/Connection/RestTest.php similarity index 100% rename from Storage/tests/unit/Connection/RestTest.php rename to Storage/tests/Unit/Connection/RestTest.php diff --git a/Storage/tests/unit/EncryptionTraitTest.php b/Storage/tests/Unit/EncryptionTraitTest.php similarity index 100% rename from Storage/tests/unit/EncryptionTraitTest.php rename to Storage/tests/Unit/EncryptionTraitTest.php diff --git a/Storage/tests/unit/NotificationTest.php b/Storage/tests/Unit/NotificationTest.php similarity index 100% rename from Storage/tests/unit/NotificationTest.php rename to Storage/tests/Unit/NotificationTest.php diff --git a/Storage/tests/unit/ObjectIteratorTest.php b/Storage/tests/Unit/ObjectIteratorTest.php similarity index 100% rename from Storage/tests/unit/ObjectIteratorTest.php rename to Storage/tests/Unit/ObjectIteratorTest.php diff --git a/Storage/tests/unit/ObjectPageIteratorTest.php b/Storage/tests/Unit/ObjectPageIteratorTest.php similarity index 100% rename from Storage/tests/unit/ObjectPageIteratorTest.php rename to Storage/tests/Unit/ObjectPageIteratorTest.php diff --git a/Storage/tests/unit/ReadStreamTest.php b/Storage/tests/Unit/ReadStreamTest.php similarity index 100% rename from Storage/tests/unit/ReadStreamTest.php rename to Storage/tests/Unit/ReadStreamTest.php diff --git a/Storage/tests/unit/RequesterPaysTest.php b/Storage/tests/Unit/RequesterPaysTest.php similarity index 100% rename from Storage/tests/unit/RequesterPaysTest.php rename to Storage/tests/Unit/RequesterPaysTest.php diff --git a/Storage/tests/unit/StorageClientTest.php b/Storage/tests/Unit/StorageClientTest.php similarity index 100% rename from Storage/tests/unit/StorageClientTest.php rename to Storage/tests/Unit/StorageClientTest.php diff --git a/Storage/tests/unit/StorageObjectTest.php b/Storage/tests/Unit/StorageObjectTest.php similarity index 100% rename from Storage/tests/unit/StorageObjectTest.php rename to Storage/tests/Unit/StorageObjectTest.php diff --git a/Storage/tests/unit/StreamWrapperTest.php b/Storage/tests/Unit/StreamWrapperTest.php similarity index 100% rename from Storage/tests/unit/StreamWrapperTest.php rename to Storage/tests/Unit/StreamWrapperTest.php diff --git a/Storage/tests/unit/WriteStreamTest.php b/Storage/tests/Unit/WriteStreamTest.php similarity index 100% rename from Storage/tests/unit/WriteStreamTest.php rename to Storage/tests/Unit/WriteStreamTest.php diff --git a/Storage/tests/unit/bootstrap.php b/Storage/tests/Unit/bootstrap.php similarity index 100% rename from Storage/tests/unit/bootstrap.php rename to Storage/tests/Unit/bootstrap.php diff --git a/Storage/tests/unit/data/logo.svg b/Storage/tests/Unit/data/logo.svg similarity index 100% rename from Storage/tests/unit/data/logo.svg rename to Storage/tests/Unit/data/logo.svg diff --git a/Trace/tests/snippets/AnnotationTest.php b/Trace/tests/Snippet/AnnotationTest.php similarity index 100% rename from Trace/tests/snippets/AnnotationTest.php rename to Trace/tests/Snippet/AnnotationTest.php diff --git a/Trace/tests/snippets/AttributesTest.php b/Trace/tests/Snippet/AttributesTest.php similarity index 100% rename from Trace/tests/snippets/AttributesTest.php rename to Trace/tests/Snippet/AttributesTest.php diff --git a/Trace/tests/snippets/LinkTest.php b/Trace/tests/Snippet/LinkTest.php similarity index 100% rename from Trace/tests/snippets/LinkTest.php rename to Trace/tests/Snippet/LinkTest.php diff --git a/Trace/tests/snippets/MessageEventTest.php b/Trace/tests/Snippet/MessageEventTest.php similarity index 100% rename from Trace/tests/snippets/MessageEventTest.php rename to Trace/tests/Snippet/MessageEventTest.php diff --git a/Trace/tests/snippets/SpanTest.php b/Trace/tests/Snippet/SpanTest.php similarity index 100% rename from Trace/tests/snippets/SpanTest.php rename to Trace/tests/Snippet/SpanTest.php diff --git a/Trace/tests/snippets/StackTraceTest.php b/Trace/tests/Snippet/StackTraceTest.php similarity index 100% rename from Trace/tests/snippets/StackTraceTest.php rename to Trace/tests/Snippet/StackTraceTest.php diff --git a/Trace/tests/snippets/StatusTest.php b/Trace/tests/Snippet/StatusTest.php similarity index 100% rename from Trace/tests/snippets/StatusTest.php rename to Trace/tests/Snippet/StatusTest.php diff --git a/Trace/tests/snippets/TraceClientTest.php b/Trace/tests/Snippet/TraceClientTest.php similarity index 100% rename from Trace/tests/snippets/TraceClientTest.php rename to Trace/tests/Snippet/TraceClientTest.php diff --git a/Trace/tests/snippets/TraceTest.php b/Trace/tests/Snippet/TraceTest.php similarity index 100% rename from Trace/tests/snippets/TraceTest.php rename to Trace/tests/Snippet/TraceTest.php diff --git a/Trace/tests/snippets/bootstrap.php b/Trace/tests/Snippet/bootstrap.php similarity index 100% rename from Trace/tests/snippets/bootstrap.php rename to Trace/tests/Snippet/bootstrap.php diff --git a/Trace/tests/snippets/keyfile-stub.json b/Trace/tests/Snippet/keyfile-stub.json similarity index 100% rename from Trace/tests/snippets/keyfile-stub.json rename to Trace/tests/Snippet/keyfile-stub.json diff --git a/Trace/tests/system/BasicTest.php b/Trace/tests/System/BasicTest.php similarity index 100% rename from Trace/tests/system/BasicTest.php rename to Trace/tests/System/BasicTest.php diff --git a/Trace/tests/system/bootstrap.php b/Trace/tests/System/bootstrap.php similarity index 100% rename from Trace/tests/system/bootstrap.php rename to Trace/tests/System/bootstrap.php diff --git a/Trace/tests/unit/AnnotationTest.php b/Trace/tests/Unit/AnnotationTest.php similarity index 100% rename from Trace/tests/unit/AnnotationTest.php rename to Trace/tests/Unit/AnnotationTest.php diff --git a/Trace/tests/unit/AttributeTraitTest.php b/Trace/tests/Unit/AttributeTraitTest.php similarity index 100% rename from Trace/tests/unit/AttributeTraitTest.php rename to Trace/tests/Unit/AttributeTraitTest.php diff --git a/Trace/tests/unit/AttributesTest.php b/Trace/tests/Unit/AttributesTest.php similarity index 100% rename from Trace/tests/unit/AttributesTest.php rename to Trace/tests/Unit/AttributesTest.php diff --git a/Trace/tests/unit/Connection/RestTest.php b/Trace/tests/Unit/Connection/RestTest.php similarity index 100% rename from Trace/tests/unit/Connection/RestTest.php rename to Trace/tests/Unit/Connection/RestTest.php diff --git a/Trace/tests/unit/LinkTest.php b/Trace/tests/Unit/LinkTest.php similarity index 100% rename from Trace/tests/unit/LinkTest.php rename to Trace/tests/Unit/LinkTest.php diff --git a/Trace/tests/unit/MessageEventTest.php b/Trace/tests/Unit/MessageEventTest.php similarity index 100% rename from Trace/tests/unit/MessageEventTest.php rename to Trace/tests/Unit/MessageEventTest.php diff --git a/Trace/tests/unit/SpanTest.php b/Trace/tests/Unit/SpanTest.php similarity index 100% rename from Trace/tests/unit/SpanTest.php rename to Trace/tests/Unit/SpanTest.php diff --git a/Trace/tests/unit/StackTraceTest.php b/Trace/tests/Unit/StackTraceTest.php similarity index 100% rename from Trace/tests/unit/StackTraceTest.php rename to Trace/tests/Unit/StackTraceTest.php diff --git a/Trace/tests/unit/StatusTest.php b/Trace/tests/Unit/StatusTest.php similarity index 100% rename from Trace/tests/unit/StatusTest.php rename to Trace/tests/Unit/StatusTest.php diff --git a/Trace/tests/unit/TimestampTraitTest.php b/Trace/tests/Unit/TimestampTraitTest.php similarity index 100% rename from Trace/tests/unit/TimestampTraitTest.php rename to Trace/tests/Unit/TimestampTraitTest.php diff --git a/Trace/tests/unit/TraceClientTest.php b/Trace/tests/Unit/TraceClientTest.php similarity index 100% rename from Trace/tests/unit/TraceClientTest.php rename to Trace/tests/Unit/TraceClientTest.php diff --git a/Trace/tests/unit/TraceTest.php b/Trace/tests/Unit/TraceTest.php similarity index 100% rename from Trace/tests/unit/TraceTest.php rename to Trace/tests/Unit/TraceTest.php diff --git a/Trace/tests/unit/bootstrap.php b/Trace/tests/Unit/bootstrap.php similarity index 100% rename from Trace/tests/unit/bootstrap.php rename to Trace/tests/Unit/bootstrap.php diff --git a/Translate/tests/snippets/TranslateClientTest.php b/Translate/tests/Snippet/TranslateClientTest.php similarity index 100% rename from Translate/tests/snippets/TranslateClientTest.php rename to Translate/tests/Snippet/TranslateClientTest.php diff --git a/Translate/tests/snippets/bootstrap.php b/Translate/tests/Snippet/bootstrap.php similarity index 100% rename from Translate/tests/snippets/bootstrap.php rename to Translate/tests/Snippet/bootstrap.php diff --git a/Translate/tests/snippets/keyfile-stub.json b/Translate/tests/Snippet/keyfile-stub.json similarity index 100% rename from Translate/tests/snippets/keyfile-stub.json rename to Translate/tests/Snippet/keyfile-stub.json diff --git a/Translate/tests/system/TranslateTest.php b/Translate/tests/System/TranslateTest.php similarity index 100% rename from Translate/tests/system/TranslateTest.php rename to Translate/tests/System/TranslateTest.php diff --git a/Translate/tests/system/TranslateTestCase.php b/Translate/tests/System/TranslateTestCase.php similarity index 100% rename from Translate/tests/system/TranslateTestCase.php rename to Translate/tests/System/TranslateTestCase.php diff --git a/Translate/tests/system/bootstrap.php b/Translate/tests/System/bootstrap.php similarity index 100% rename from Translate/tests/system/bootstrap.php rename to Translate/tests/System/bootstrap.php diff --git a/Translate/tests/unit/Connection/RestTest.php b/Translate/tests/Unit/Connection/RestTest.php similarity index 100% rename from Translate/tests/unit/Connection/RestTest.php rename to Translate/tests/Unit/Connection/RestTest.php diff --git a/Translate/tests/unit/TranslateClientTest.php b/Translate/tests/Unit/TranslateClientTest.php similarity index 100% rename from Translate/tests/unit/TranslateClientTest.php rename to Translate/tests/Unit/TranslateClientTest.php diff --git a/Translate/tests/unit/bootstrap.php b/Translate/tests/Unit/bootstrap.php similarity index 100% rename from Translate/tests/unit/bootstrap.php rename to Translate/tests/Unit/bootstrap.php diff --git a/VideoIntelligence/tests/snippets/bootstrap.php b/VideoIntelligence/tests/Snippet/bootstrap.php similarity index 100% rename from VideoIntelligence/tests/snippets/bootstrap.php rename to VideoIntelligence/tests/Snippet/bootstrap.php diff --git a/VideoIntelligence/tests/snippets/keyfile-stub.json b/VideoIntelligence/tests/Snippet/keyfile-stub.json similarity index 100% rename from VideoIntelligence/tests/snippets/keyfile-stub.json rename to VideoIntelligence/tests/Snippet/keyfile-stub.json diff --git a/VideoIntelligence/tests/system/bootstrap.php b/VideoIntelligence/tests/System/bootstrap.php similarity index 100% rename from VideoIntelligence/tests/system/bootstrap.php rename to VideoIntelligence/tests/System/bootstrap.php diff --git a/VideoIntelligence/tests/unit/bootstrap.php b/VideoIntelligence/tests/Unit/bootstrap.php similarity index 100% rename from VideoIntelligence/tests/unit/bootstrap.php rename to VideoIntelligence/tests/Unit/bootstrap.php diff --git a/Vision/tests/snippets/Annotation/AbstractFeatureTest.php b/Vision/tests/Snippet/Annotation/AbstractFeatureTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/AbstractFeatureTest.php rename to Vision/tests/Snippet/Annotation/AbstractFeatureTest.php diff --git a/Vision/tests/snippets/Annotation/CropHintTest.php b/Vision/tests/Snippet/Annotation/CropHintTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/CropHintTest.php rename to Vision/tests/Snippet/Annotation/CropHintTest.php diff --git a/Vision/tests/snippets/Annotation/DocumentTest.php b/Vision/tests/Snippet/Annotation/DocumentTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/DocumentTest.php rename to Vision/tests/Snippet/Annotation/DocumentTest.php diff --git a/Vision/tests/snippets/Annotation/EntityTest.php b/Vision/tests/Snippet/Annotation/EntityTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/EntityTest.php rename to Vision/tests/Snippet/Annotation/EntityTest.php diff --git a/Vision/tests/snippets/Annotation/Face/LandmarksTest.php b/Vision/tests/Snippet/Annotation/Face/LandmarksTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/Face/LandmarksTest.php rename to Vision/tests/Snippet/Annotation/Face/LandmarksTest.php diff --git a/Vision/tests/snippets/Annotation/FaceTest.php b/Vision/tests/Snippet/Annotation/FaceTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/FaceTest.php rename to Vision/tests/Snippet/Annotation/FaceTest.php diff --git a/Vision/tests/snippets/Annotation/ImagePropertiesTest.php b/Vision/tests/Snippet/Annotation/ImagePropertiesTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/ImagePropertiesTest.php rename to Vision/tests/Snippet/Annotation/ImagePropertiesTest.php diff --git a/Vision/tests/snippets/Annotation/SafeSearchTest.php b/Vision/tests/Snippet/Annotation/SafeSearchTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/SafeSearchTest.php rename to Vision/tests/Snippet/Annotation/SafeSearchTest.php diff --git a/Vision/tests/snippets/Annotation/Web/WebEntityTest.php b/Vision/tests/Snippet/Annotation/Web/WebEntityTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/Web/WebEntityTest.php rename to Vision/tests/Snippet/Annotation/Web/WebEntityTest.php diff --git a/Vision/tests/snippets/Annotation/Web/WebImageTest.php b/Vision/tests/Snippet/Annotation/Web/WebImageTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/Web/WebImageTest.php rename to Vision/tests/Snippet/Annotation/Web/WebImageTest.php diff --git a/Vision/tests/snippets/Annotation/Web/WebPageTest.php b/Vision/tests/Snippet/Annotation/Web/WebPageTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/Web/WebPageTest.php rename to Vision/tests/Snippet/Annotation/Web/WebPageTest.php diff --git a/Vision/tests/snippets/Annotation/WebTest.php b/Vision/tests/Snippet/Annotation/WebTest.php similarity index 100% rename from Vision/tests/snippets/Annotation/WebTest.php rename to Vision/tests/Snippet/Annotation/WebTest.php diff --git a/Vision/tests/snippets/AnnotationTest.php b/Vision/tests/Snippet/AnnotationTest.php similarity index 100% rename from Vision/tests/snippets/AnnotationTest.php rename to Vision/tests/Snippet/AnnotationTest.php diff --git a/Vision/tests/snippets/ImageTest.php b/Vision/tests/Snippet/ImageTest.php similarity index 100% rename from Vision/tests/snippets/ImageTest.php rename to Vision/tests/Snippet/ImageTest.php diff --git a/Vision/tests/snippets/VisionClientTest.php b/Vision/tests/Snippet/VisionClientTest.php similarity index 100% rename from Vision/tests/snippets/VisionClientTest.php rename to Vision/tests/Snippet/VisionClientTest.php diff --git a/Vision/tests/snippets/bootstrap.php b/Vision/tests/Snippet/bootstrap.php similarity index 100% rename from Vision/tests/snippets/bootstrap.php rename to Vision/tests/Snippet/bootstrap.php diff --git a/Vision/tests/snippets/keyfile-stub.json b/Vision/tests/Snippet/keyfile-stub.json similarity index 100% rename from Vision/tests/snippets/keyfile-stub.json rename to Vision/tests/Snippet/keyfile-stub.json diff --git a/Vision/tests/system/AnnotationsTest.php b/Vision/tests/System/AnnotationsTest.php similarity index 100% rename from Vision/tests/system/AnnotationsTest.php rename to Vision/tests/System/AnnotationsTest.php diff --git a/Vision/tests/system/VisionTestCase.php b/Vision/tests/System/VisionTestCase.php similarity index 100% rename from Vision/tests/system/VisionTestCase.php rename to Vision/tests/System/VisionTestCase.php diff --git a/Vision/tests/system/bootstrap.php b/Vision/tests/System/bootstrap.php similarity index 100% rename from Vision/tests/system/bootstrap.php rename to Vision/tests/System/bootstrap.php diff --git a/Vision/tests/system/fixtures/google.jpg b/Vision/tests/System/fixtures/google.jpg similarity index 100% rename from Vision/tests/system/fixtures/google.jpg rename to Vision/tests/System/fixtures/google.jpg diff --git a/Vision/tests/system/fixtures/landmark.jpg b/Vision/tests/System/fixtures/landmark.jpg similarity index 100% rename from Vision/tests/system/fixtures/landmark.jpg rename to Vision/tests/System/fixtures/landmark.jpg diff --git a/Vision/tests/system/fixtures/obama.jpg b/Vision/tests/System/fixtures/obama.jpg similarity index 100% rename from Vision/tests/system/fixtures/obama.jpg rename to Vision/tests/System/fixtures/obama.jpg diff --git a/Vision/tests/system/fixtures/text.jpg b/Vision/tests/System/fixtures/text.jpg similarity index 100% rename from Vision/tests/system/fixtures/text.jpg rename to Vision/tests/System/fixtures/text.jpg diff --git a/Vision/tests/unit/Annotation/CropHintTest.php b/Vision/tests/Unit/Annotation/CropHintTest.php similarity index 100% rename from Vision/tests/unit/Annotation/CropHintTest.php rename to Vision/tests/Unit/Annotation/CropHintTest.php diff --git a/Vision/tests/unit/Annotation/DocumentTest.php b/Vision/tests/Unit/Annotation/DocumentTest.php similarity index 100% rename from Vision/tests/unit/Annotation/DocumentTest.php rename to Vision/tests/Unit/Annotation/DocumentTest.php diff --git a/Vision/tests/unit/Annotation/EntityTest.php b/Vision/tests/Unit/Annotation/EntityTest.php similarity index 100% rename from Vision/tests/unit/Annotation/EntityTest.php rename to Vision/tests/Unit/Annotation/EntityTest.php diff --git a/Vision/tests/unit/Annotation/Face/LandmarksTest.php b/Vision/tests/Unit/Annotation/Face/LandmarksTest.php similarity index 100% rename from Vision/tests/unit/Annotation/Face/LandmarksTest.php rename to Vision/tests/Unit/Annotation/Face/LandmarksTest.php diff --git a/Vision/tests/unit/Annotation/FaceTest.php b/Vision/tests/Unit/Annotation/FaceTest.php similarity index 100% rename from Vision/tests/unit/Annotation/FaceTest.php rename to Vision/tests/Unit/Annotation/FaceTest.php diff --git a/Vision/tests/unit/Annotation/LikelihoodTraitTest.php b/Vision/tests/Unit/Annotation/LikelihoodTraitTest.php similarity index 100% rename from Vision/tests/unit/Annotation/LikelihoodTraitTest.php rename to Vision/tests/Unit/Annotation/LikelihoodTraitTest.php diff --git a/Vision/tests/unit/Annotation/SafeSearchTest.php b/Vision/tests/Unit/Annotation/SafeSearchTest.php similarity index 100% rename from Vision/tests/unit/Annotation/SafeSearchTest.php rename to Vision/tests/Unit/Annotation/SafeSearchTest.php diff --git a/Vision/tests/unit/Annotation/Web/WebEntityTest.php b/Vision/tests/Unit/Annotation/Web/WebEntityTest.php similarity index 100% rename from Vision/tests/unit/Annotation/Web/WebEntityTest.php rename to Vision/tests/Unit/Annotation/Web/WebEntityTest.php diff --git a/Vision/tests/unit/Annotation/Web/WebImageTest.php b/Vision/tests/Unit/Annotation/Web/WebImageTest.php similarity index 100% rename from Vision/tests/unit/Annotation/Web/WebImageTest.php rename to Vision/tests/Unit/Annotation/Web/WebImageTest.php diff --git a/Vision/tests/unit/Annotation/Web/WebPageTest.php b/Vision/tests/Unit/Annotation/Web/WebPageTest.php similarity index 100% rename from Vision/tests/unit/Annotation/Web/WebPageTest.php rename to Vision/tests/Unit/Annotation/Web/WebPageTest.php diff --git a/Vision/tests/unit/Annotation/WebTest.php b/Vision/tests/Unit/Annotation/WebTest.php similarity index 100% rename from Vision/tests/unit/Annotation/WebTest.php rename to Vision/tests/Unit/Annotation/WebTest.php diff --git a/Vision/tests/unit/AnnotationTest.php b/Vision/tests/Unit/AnnotationTest.php similarity index 100% rename from Vision/tests/unit/AnnotationTest.php rename to Vision/tests/Unit/AnnotationTest.php diff --git a/Vision/tests/unit/Connection/RestTest.php b/Vision/tests/Unit/Connection/RestTest.php similarity index 100% rename from Vision/tests/unit/Connection/RestTest.php rename to Vision/tests/Unit/Connection/RestTest.php diff --git a/Vision/tests/unit/Fixtures.php b/Vision/tests/Unit/Fixtures.php similarity index 100% rename from Vision/tests/unit/Fixtures.php rename to Vision/tests/Unit/Fixtures.php diff --git a/Vision/tests/unit/ImageTest.php b/Vision/tests/Unit/ImageTest.php similarity index 100% rename from Vision/tests/unit/ImageTest.php rename to Vision/tests/Unit/ImageTest.php diff --git a/Vision/tests/unit/VisionClientTest.php b/Vision/tests/Unit/VisionClientTest.php similarity index 100% rename from Vision/tests/unit/VisionClientTest.php rename to Vision/tests/Unit/VisionClientTest.php diff --git a/Vision/tests/unit/bootstrap.php b/Vision/tests/Unit/bootstrap.php similarity index 100% rename from Vision/tests/unit/bootstrap.php rename to Vision/tests/Unit/bootstrap.php diff --git a/Vision/tests/unit/fixtures/eiffel-tower.jpg b/Vision/tests/Unit/fixtures/eiffel-tower.jpg similarity index 100% rename from Vision/tests/unit/fixtures/eiffel-tower.jpg rename to Vision/tests/Unit/fixtures/eiffel-tower.jpg diff --git a/Vision/tests/unit/fixtures/face-landmarks.json b/Vision/tests/Unit/fixtures/face-landmarks.json similarity index 100% rename from Vision/tests/unit/fixtures/face-landmarks.json rename to Vision/tests/Unit/fixtures/face-landmarks.json From 9f43d7da11f498dfb3c4d61df9f2f782dfcfd602 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Mon, 5 Feb 2018 14:04:39 -0800 Subject: [PATCH 25/59] Move tests and update namespaces --- BigQuery/composer.json | 4 +- BigQuery/tests/System/BigQueryTestCase.php | 2 +- .../tests/System/LoadDataAndQueryTest.php | 2 +- BigQuery/tests/System/ManageDatasetsTest.php | 2 +- BigQuery/tests/System/ManageJobsTest.php | 2 +- BigQuery/tests/System/ManageTablesTest.php | 2 +- BigQuery/tests/Unit/BigQueryClientTest.php | 2 +- BigQuery/tests/Unit/BytesTest.php | 2 +- BigQuery/tests/Unit/Connection/RestTest.php | 2 +- .../tests/Unit/CopyJobConfigurationTest.php | 2 +- BigQuery/tests/Unit/DatasetTest.php | 2 +- BigQuery/tests/Unit/DateTest.php | 2 +- .../tests/Unit/Exception/JobExceptionTest.php | 2 +- .../Unit/ExtractJobConfigurationTest.php | 2 +- BigQuery/tests/Unit/InsertResponseTest.php | 2 +- .../tests/Unit/JobConfigurationTraitTest.php | 2 +- BigQuery/tests/Unit/JobTest.php | 2 +- BigQuery/tests/Unit/JobWaitTraitTest.php | 2 +- .../tests/Unit/LoadJobConfigurationTest.php | 2 +- .../tests/Unit/QueryJobConfigurationTest.php | 2 +- BigQuery/tests/Unit/QueryResultsTest.php | 2 +- BigQuery/tests/Unit/TableTest.php | 2 +- BigQuery/tests/Unit/TimeTest.php | 2 +- BigQuery/tests/Unit/TimestampTest.php | 2 +- BigQuery/tests/Unit/ValueMapperTest.php | 2 +- .../System/BigtableInstanceAdminTest.php | 2 +- .../tests/System/ClusterManagerClientTest.php | 2 +- Core/tests/System/Batch/BatchRunnerTest.php | 2 +- Core/tests/System/Batch/MyJob.php | 2 +- Core/tests/Unit/ArrayTraitTest.php | 2 +- Core/tests/Unit/Batch/BatchConfigTest.php | 2 +- .../tests/Unit/Batch/BatchDaemonTraitTest.php | 2 +- Core/tests/Unit/Batch/BatchJobTest.php | 2 +- Core/tests/Unit/Batch/BatchRunnerTest.php | 2 +- Core/tests/Unit/Batch/BatchTraitTest.php | 2 +- .../Unit/Batch/HandleFailureTraitTest.php | 2 +- .../Unit/Batch/InMemoryConfigStorageTest.php | 2 +- Core/tests/Unit/Batch/RetryTest.php | 2 +- .../Unit/Batch/SysvConfigStorageTest.php | 2 +- Core/tests/Unit/Batch/SysvProcessorTest.php | 2 +- Core/tests/Unit/CallTraitTest.php | 2 +- Core/tests/Unit/ClientTraitTest.php | 2 +- Core/tests/Unit/Compute/MetadataTest.php | 2 +- .../Unit/ConcurrencyControlTraitTest.php | 2 +- Core/tests/Unit/EmulatorTraitTest.php | 2 +- .../Unit/Exception/NotFoundExceptionTest.php | 2 +- .../Unit/Exception/ServiceExceptionTest.php | 2 +- Core/tests/Unit/ExponentialBackoffTest.php | 2 +- Core/tests/Unit/Fixtures.php | 2 +- Core/tests/Unit/GrpcRequestWrapperTest.php | 2 +- Core/tests/Unit/GrpcTraitTest.php | 2 +- Core/tests/Unit/Iam/IamTest.php | 2 +- Core/tests/Unit/Iam/PolicyBuilderTest.php | 2 +- Core/tests/Unit/Int64Test.php | 2 +- Core/tests/Unit/Iterator/ItemIteratorTest.php | 2 +- Core/tests/Unit/Iterator/PageIteratorTest.php | 2 +- Core/tests/Unit/JsonTraitTest.php | 2 +- Core/tests/Unit/Lock/CommonLockTrait.php | 2 +- Core/tests/Unit/Lock/FlockLockTest.php | 2 +- Core/tests/Unit/Lock/SemaphoreLockTest.php | 2 +- .../Unit/Logger/AppEngineFlexHandlerTest.php | 2 +- .../Unit/Report/EmptyMetadataProviderTest.php | 2 +- .../Report/GAEFlexMetadataProviderTest.php | 2 +- .../Unit/Report/MetadataProviderUtilsTest.php | 2 +- .../Report/SimpleMetadataProviderTest.php | 2 +- Core/tests/Unit/RequestBuilderTest.php | 2 +- Core/tests/Unit/RequestWrapperTest.php | 2 +- Core/tests/Unit/RestTraitTest.php | 2 +- Core/tests/Unit/RetryDeciderTraitTest.php | 2 +- Core/tests/Unit/ServiceBuilderTest.php | 2 +- Core/tests/Unit/ServicesNotFoundTest.php | 2 +- Core/tests/Unit/SysvTraitTest.php | 2 +- .../Unit/Upload/MultipartUploaderTest.php | 2 +- .../Unit/Upload/ResumableUploaderTest.php | 2 +- .../Unit/Upload/SignedUrlUploaderTest.php | 2 +- .../Unit/Upload/StreamableUploaderTest.php | 2 +- Core/tests/Unit/UriTraitTest.php | 2 +- Core/tests/Unit/ValidateTraitTest.php | 2 +- Core/tests/Unit/WhitelistTraitTest.php | 2 +- .../System/ClusterControllerClientTest.php | 2 +- Datastore/tests/System/AllocateKeyTest.php | 2 +- Datastore/tests/System/DatastoreTestCase.php | 2 +- Datastore/tests/System/RunQueryTest.php | 2 +- Datastore/tests/System/RunTransactionTest.php | 2 +- Datastore/tests/System/SaveAndModifyTest.php | 2 +- Datastore/tests/Unit/BlobTest.php | 2 +- Datastore/tests/Unit/Connection/RestTest.php | 2 +- Datastore/tests/Unit/DatastoreClientTest.php | 2 +- .../Unit/DatastoreSessionHandlerTest.php | 2 +- Datastore/tests/Unit/DatastoreTraitTest.php | 2 +- Datastore/tests/Unit/EntityIteratorTest.php | 2 +- Datastore/tests/Unit/EntityMapperTest.php | 2 +- .../tests/Unit/EntityPageIteratorTest.php | 2 +- Datastore/tests/Unit/EntityTest.php | 2 +- Datastore/tests/Unit/Fixtures.php | 2 +- Datastore/tests/Unit/GeoPointTest.php | 2 +- Datastore/tests/Unit/KeyTest.php | 2 +- Datastore/tests/Unit/OperationTest.php | 2 +- Datastore/tests/Unit/Query/GqlQueryTest.php | 2 +- Datastore/tests/Unit/Query/QueryTest.php | 2 +- Datastore/tests/Unit/TransactionTest.php | 2 +- Debugger/tests/System/BasicTest.php | 2 +- Debugger/tests/System/E2ETest.php | 2 +- Debugger/tests/Unit/AgentTest.php | 2 +- Debugger/tests/Unit/AliasContextTest.php | 2 +- .../SysvBreakpointStorageTest.php | 2 +- Debugger/tests/Unit/BreakpointTest.php | 2 +- .../tests/Unit/BreakpointValidationTest.php | 2 +- .../tests/Unit/CloudRepoSourceContextTest.php | 2 +- Debugger/tests/Unit/CloudWorkspaceIdTest.php | 2 +- .../Unit/CloudWorkspaceSourceContextTest.php | 2 +- Debugger/tests/Unit/Connection/RestTest.php | 2 +- Debugger/tests/Unit/DaemonTest.php | 2 +- Debugger/tests/Unit/DebuggeeTest.php | 2 +- Debugger/tests/Unit/DebuggerClientTest.php | 2 +- .../tests/Unit/ExtendedSourceContextTest.php | 2 +- Debugger/tests/Unit/FormatMessageTest.php | 2 +- .../tests/Unit/GerritSourceContextTest.php | 2 +- Debugger/tests/Unit/GitSourceContextTest.php | 2 +- Debugger/tests/Unit/JsonTestTrait.php | 2 +- .../tests/Unit/MatchingFileIteratorTest.php | 2 +- Debugger/tests/Unit/ProjectRepoIdTest.php | 2 +- Debugger/tests/Unit/RepoIdTest.php | 2 +- .../tests/Unit/SourceLocationResolverTest.php | 2 +- Debugger/tests/Unit/SourceLocationTest.php | 2 +- Debugger/tests/Unit/StackFrameTest.php | 2 +- Debugger/tests/Unit/StatusMessageTest.php | 2 +- Debugger/tests/Unit/VariableTableTest.php | 2 +- Debugger/tests/Unit/VariableTest.php | 2 +- ErrorReporting/tests/Unit/BootstrapTest.php | 2 +- .../System/DocumentAndCollectionTest.php | 2 +- Firestore/tests/System/FirestoreTestCase.php | 2 +- Firestore/tests/System/QueryTest.php | 2 +- Firestore/tests/System/TransactionTest.php | 2 +- Firestore/tests/System/ValueMapperTest.php | 2 +- .../tests/Unit/CollectionReferenceTest.php | 2 +- Firestore/tests/Unit/Connection/GrpcTest.php | 2 +- .../tests/Unit/DocumentReferenceTest.php | 2 +- Firestore/tests/Unit/DocumentSnapshotTest.php | 2 +- Firestore/tests/Unit/FieldPathTest.php | 2 +- Firestore/tests/Unit/FirestoreClientTest.php | 2 +- Firestore/tests/Unit/PathTraitTest.php | 2 +- Firestore/tests/Unit/QuerySnapshotTest.php | 2 +- Firestore/tests/Unit/QueryTest.php | 2 +- Firestore/tests/Unit/SnapshotTraitTest.php | 2 +- Firestore/tests/Unit/TransactionTest.php | 2 +- Firestore/tests/Unit/ValueMapperTest.php | 2 +- Firestore/tests/Unit/WriteBatchTest.php | 2 +- Language/tests/System/AnalyzeTest.php | 2 +- Language/tests/System/LanguageTestCase.php | 2 +- Language/tests/Unit/AnnotationTest.php | 2 +- Language/tests/Unit/Connection/RestTest.php | 2 +- Language/tests/Unit/LanguageClientTest.php | 2 +- Logging/tests/System/LoggingTestCase.php | 2 +- Logging/tests/System/ManageMetricsTest.php | 2 +- Logging/tests/System/ManageSinksTest.php | 2 +- .../tests/System/WriteAndListEntryTest.php | 2 +- Logging/tests/Unit/Connection/GrpcTest.php | 2 +- Logging/tests/Unit/Connection/RestTest.php | 2 +- Logging/tests/Unit/LoggerTest.php | 2 +- Logging/tests/Unit/LoggingClientTest.php | 2 +- Logging/tests/Unit/MetricTest.php | 2 +- Logging/tests/Unit/PsrLoggerBatchTest.php | 2 +- .../tests/Unit/PsrLoggerCompatibilityTest.php | 2 +- Logging/tests/Unit/PsrLoggerTest.php | 2 +- Logging/tests/Unit/SinkTest.php | 2 +- .../tests/System/OsLoginServiceClientTest.php | 2 +- PubSub/tests/System/ManageIAMPoliciesTest.php | 2 +- .../tests/System/ManageSubscriptionsTest.php | 2 +- PubSub/tests/System/ManageTopicsTest.php | 2 +- PubSub/tests/System/PubSubTestCase.php | 2 +- PubSub/tests/System/PublishAndPullTest.php | 2 +- PubSub/tests/Unit/BatchPublisherTest.php | 2 +- PubSub/tests/Unit/Connection/GrpcTest.php | 2 +- .../Unit/Connection/IamSubscriptionTest.php | 2 +- PubSub/tests/Unit/Connection/IamTopicTest.php | 2 +- PubSub/tests/Unit/Connection/RestTest.php | 2 +- .../tests/Unit/IncomingMessageTraitTest.php | 2 +- PubSub/tests/Unit/MessageTest.php | 2 +- PubSub/tests/Unit/PubSubClientTest.php | 2 +- PubSub/tests/Unit/ResourceNameTraitTest.php | 2 +- PubSub/tests/Unit/SubscriptionTest.php | 2 +- PubSub/tests/Unit/TopicTest.php | 2 +- Spanner/tests/System/AdminTest.php | 2 +- Spanner/tests/System/LargeReadTest.php | 2 +- Spanner/tests/System/OperationsTest.php | 2 +- Spanner/tests/System/QueryTest.php | 2 +- Spanner/tests/System/ReadTest.php | 2 +- Spanner/tests/System/SnapshotTest.php | 2 +- Spanner/tests/System/SpannerTestCase.php | 2 +- Spanner/tests/System/TransactionTest.php | 2 +- Spanner/tests/System/WriteTest.php | 2 +- .../System/pcntl/AbortedErrorCausesRetry.php | 2 +- ...tTransactionsIncrementValueWithExecute.php | 2 +- ...rentTransactionsIncrementValueWithRead.php | 2 +- Spanner/tests/Unit/BytesTest.php | 2 +- Spanner/tests/Unit/Connection/GrpcTest.php | 2 +- .../tests/Unit/Connection/IamDatabaseTest.php | 2 +- .../tests/Unit/Connection/IamInstanceTest.php | 2 +- .../Connection/LongRunningConnectionTest.php | 2 +- Spanner/tests/Unit/DatabaseTest.php | 2 +- Spanner/tests/Unit/DateTest.php | 2 +- Spanner/tests/Unit/DurationTest.php | 2 +- Spanner/tests/Unit/Fixtures.php | 2 +- .../tests/Unit/InstanceConfigurationTest.php | 2 +- Spanner/tests/Unit/InstanceTest.php | 2 +- Spanner/tests/Unit/KeyRangeTest.php | 2 +- Spanner/tests/Unit/KeySetTest.php | 2 +- Spanner/tests/Unit/OperationTest.php | 2 +- Spanner/tests/Unit/ResultTest.php | 2 +- Spanner/tests/Unit/ResultTestTrait.php | 2 +- .../Unit/Session/CacheSessionPoolTest.php | 2 +- Spanner/tests/Unit/SnapshotTest.php | 2 +- Spanner/tests/Unit/SpannerClientTest.php | 2 +- Spanner/tests/Unit/TimestampTest.php | 2 +- .../TransactionConfigurationTraitTest.php | 2 +- Spanner/tests/Unit/TransactionTest.php | 2 +- Spanner/tests/Unit/TransactionTypeTest.php | 2 +- Spanner/tests/Unit/ValueMapperTest.php | 2 +- Speech/tests/Unit/Connection/RestTest.php | 2 +- Speech/tests/Unit/OperationTest.php | 2 +- Speech/tests/Unit/ResultTest.php | 2 +- Speech/tests/Unit/SpeechClientTest.php | 2 +- Storage/tests/System/ManageAclTest.php | 2 +- Storage/tests/System/ManageBucketsTest.php | 2 +- .../tests/System/ManageNotificationsTest.php | 2 +- Storage/tests/System/ManageObjectsTest.php | 2 +- Storage/tests/System/RequesterPaysTest.php | 2 +- Storage/tests/System/SignedUrlTest.php | 2 +- Storage/tests/System/StorageTestCase.php | 2 +- .../System/StreamWrapper/DirectoryTest.php | 2 +- .../tests/System/StreamWrapper/ImageTest.php | 2 +- .../tests/System/StreamWrapper/ReadTest.php | 2 +- .../tests/System/StreamWrapper/RenameTest.php | 2 +- .../StreamWrapper/StreamWrapperTestCase.php | 4 +- .../System/StreamWrapper/UrlStatTest.php | 2 +- .../tests/System/StreamWrapper/WriteTest.php | 2 +- Storage/tests/System/UploadObjectsTest.php | 2 +- Storage/tests/Unit/AclTest.php | 2 +- Storage/tests/Unit/BucketTest.php | 2 +- .../tests/Unit/Connection/IamBucketTest.php | 2 +- Storage/tests/Unit/Connection/RestTest.php | 2 +- Storage/tests/Unit/EncryptionTraitTest.php | 2 +- Storage/tests/Unit/NotificationTest.php | 2 +- Storage/tests/Unit/ObjectIteratorTest.php | 2 +- Storage/tests/Unit/ObjectPageIteratorTest.php | 2 +- Storage/tests/Unit/RequesterPaysTest.php | 2 +- Storage/tests/Unit/StorageClientTest.php | 2 +- Storage/tests/Unit/StorageObjectTest.php | 2 +- Trace/tests/System/BasicTest.php | 2 +- Trace/tests/Unit/AnnotationTest.php | 2 +- Trace/tests/Unit/AttributeTraitTest.php | 2 +- Trace/tests/Unit/AttributesTest.php | 2 +- Trace/tests/Unit/Connection/RestTest.php | 2 +- Trace/tests/Unit/LinkTest.php | 2 +- Trace/tests/Unit/MessageEventTest.php | 2 +- Trace/tests/Unit/SpanTest.php | 2 +- Trace/tests/Unit/StackTraceTest.php | 2 +- Trace/tests/Unit/StatusTest.php | 2 +- Trace/tests/Unit/TimestampTraitTest.php | 2 +- Trace/tests/Unit/TraceClientTest.php | 2 +- Trace/tests/Unit/TraceTest.php | 2 +- Translate/tests/System/TranslateTest.php | 2 +- Translate/tests/System/TranslateTestCase.php | 2 +- Translate/tests/Unit/Connection/RestTest.php | 2 +- Translate/tests/Unit/TranslateClientTest.php | 2 +- Vision/tests/System/AnnotationsTest.php | 2 +- Vision/tests/System/VisionTestCase.php | 2 +- Vision/tests/Unit/Annotation/EntityTest.php | 2 +- .../Unit/Annotation/Face/LandmarksTest.php | 4 +- Vision/tests/Unit/Annotation/FaceTest.php | 2 +- .../Unit/Annotation/LikelihoodTraitTest.php | 2 +- .../tests/Unit/Annotation/SafeSearchTest.php | 2 +- Vision/tests/Unit/AnnotationTest.php | 2 +- Vision/tests/Unit/Connection/RestTest.php | 2 +- Vision/tests/Unit/Fixtures.php | 2 +- Vision/tests/Unit/ImageTest.php | 2 +- Vision/tests/Unit/VisionClientTest.php | 2 +- composer.json | 72 ++++++------------- phpunit-snippets.xml.dist | 4 +- phpunit.xml.dist | 4 +- tests/{perf => Perf}/BigQueryTest.php | 0 tests/{perf => Perf}/LoggingPerfTest.php | 0 tests/{perf => Perf}/README.md | 0 tests/{perf => Perf}/bootstrap.php | 0 tests/{perf => Perf}/fixtures/bigquery.json | 0 tests/{snippets => Snippet}/bootstrap.php | 0 tests/{snippets => Snippet}/keyfile-stub.json | 0 .../ServiceWhitelist/WhitelistTest.php | 0 tests/{system => System}/bootstrap.php | 0 tests/{unit => Unit}/JsonFileTest.php | 0 tests/{unit => Unit}/bootstrap.php | 0 .../fixtures/schema/composer.json.schema | 0 .../fixtures/schema/manifest.json.schema | 0 .../fixtures/schema/toc.json.schema | 0 295 files changed, 307 insertions(+), 335 deletions(-) rename tests/{perf => Perf}/BigQueryTest.php (100%) rename tests/{perf => Perf}/LoggingPerfTest.php (100%) rename tests/{perf => Perf}/README.md (100%) rename tests/{perf => Perf}/bootstrap.php (100%) rename tests/{perf => Perf}/fixtures/bigquery.json (100%) rename tests/{snippets => Snippet}/bootstrap.php (100%) rename tests/{snippets => Snippet}/keyfile-stub.json (100%) rename tests/{system => System}/ServiceWhitelist/WhitelistTest.php (100%) rename tests/{system => System}/bootstrap.php (100%) rename tests/{unit => Unit}/JsonFileTest.php (100%) rename tests/{unit => Unit}/bootstrap.php (100%) rename tests/{unit => Unit}/fixtures/schema/composer.json.schema (100%) rename tests/{unit => Unit}/fixtures/schema/manifest.json.schema (100%) rename tests/{unit => Unit}/fixtures/schema/toc.json.schema (100%) diff --git a/BigQuery/composer.json b/BigQuery/composer.json index e53dc142e2cc..4a6f1e06def9 100644 --- a/BigQuery/composer.json +++ b/BigQuery/composer.json @@ -34,9 +34,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\BigQuery\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\BigQuery\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\BigQuery\\": "tests/system" + "Google\\Cloud\\BigQuery\\Tests\\": "tests" } }, "repositories": [{ diff --git a/BigQuery/tests/System/BigQueryTestCase.php b/BigQuery/tests/System/BigQueryTestCase.php index 64f036148e6f..09d6721e1269 100644 --- a/BigQuery/tests/System/BigQueryTestCase.php +++ b/BigQuery/tests/System/BigQueryTestCase.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\BigQuery; +namespace Google\Cloud\BigQuery\Tests\System; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\Storage\StorageClient; diff --git a/BigQuery/tests/System/LoadDataAndQueryTest.php b/BigQuery/tests/System/LoadDataAndQueryTest.php index da97b6f85ab9..8879e98bfab7 100644 --- a/BigQuery/tests/System/LoadDataAndQueryTest.php +++ b/BigQuery/tests/System/LoadDataAndQueryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\BigQuery; +namespace Google\Cloud\BigQuery\Tests\System; use Google\Cloud\BigQuery\Bytes; use Google\Cloud\BigQuery\Date; diff --git a/BigQuery/tests/System/ManageDatasetsTest.php b/BigQuery/tests/System/ManageDatasetsTest.php index f6b1ffe1276b..f7ac6c85592a 100644 --- a/BigQuery/tests/System/ManageDatasetsTest.php +++ b/BigQuery/tests/System/ManageDatasetsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\BigQuery; +namespace Google\Cloud\BigQuery\Tests\System; /** * @group bigquery diff --git a/BigQuery/tests/System/ManageJobsTest.php b/BigQuery/tests/System/ManageJobsTest.php index bd4622694690..a41e5e87aeb2 100644 --- a/BigQuery/tests/System/ManageJobsTest.php +++ b/BigQuery/tests/System/ManageJobsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\BigQuery; +namespace Google\Cloud\BigQuery\Tests\System; use Google\Cloud\BigQuery\Job; diff --git a/BigQuery/tests/System/ManageTablesTest.php b/BigQuery/tests/System/ManageTablesTest.php index 4e53cbc466ca..289b5261a391 100644 --- a/BigQuery/tests/System/ManageTablesTest.php +++ b/BigQuery/tests/System/ManageTablesTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\BigQuery; +namespace Google\Cloud\BigQuery\Tests\System; use Google\Cloud\Core\ExponentialBackoff; diff --git a/BigQuery/tests/Unit/BigQueryClientTest.php b/BigQuery/tests/Unit/BigQueryClientTest.php index 9f6232d81b7b..74c60961ac6b 100644 --- a/BigQuery/tests/Unit/BigQueryClientTest.php +++ b/BigQuery/tests/Unit/BigQueryClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\BigQuery\Bytes; diff --git a/BigQuery/tests/Unit/BytesTest.php b/BigQuery/tests/Unit/BytesTest.php index 13cd77c5ff20..4e31efc85e31 100644 --- a/BigQuery/tests/Unit/BytesTest.php +++ b/BigQuery/tests/Unit/BytesTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Bytes; use GuzzleHttp\Psr7; diff --git a/BigQuery/tests/Unit/Connection/RestTest.php b/BigQuery/tests/Unit/Connection/RestTest.php index ed2bc5f9ec12..9cd73eb11d37 100644 --- a/BigQuery/tests/Unit/Connection/RestTest.php +++ b/BigQuery/tests/Unit/Connection/RestTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery\Connection; +namespace Google\Cloud\BigQuery\Tests\Unit\Connection; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\BigQuery\Connection\Rest; diff --git a/BigQuery/tests/Unit/CopyJobConfigurationTest.php b/BigQuery/tests/Unit/CopyJobConfigurationTest.php index 555d8b46d003..dea77fb18a9f 100644 --- a/BigQuery/tests/Unit/CopyJobConfigurationTest.php +++ b/BigQuery/tests/Unit/CopyJobConfigurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Dataset; use Google\Cloud\BigQuery\CopyJobConfiguration; diff --git a/BigQuery/tests/Unit/DatasetTest.php b/BigQuery/tests/Unit/DatasetTest.php index a890070d425f..bd66499c26f4 100644 --- a/BigQuery/tests/Unit/DatasetTest.php +++ b/BigQuery/tests/Unit/DatasetTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Connection\ConnectionInterface; use Google\Cloud\BigQuery\Dataset; diff --git a/BigQuery/tests/Unit/DateTest.php b/BigQuery/tests/Unit/DateTest.php index 20e5dcfbe2c8..c086b29b39f9 100644 --- a/BigQuery/tests/Unit/DateTest.php +++ b/BigQuery/tests/Unit/DateTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Date; use PHPUnit\Framework\TestCase; diff --git a/BigQuery/tests/Unit/Exception/JobExceptionTest.php b/BigQuery/tests/Unit/Exception/JobExceptionTest.php index 7d71afda0256..8f774991b8e6 100644 --- a/BigQuery/tests/Unit/Exception/JobExceptionTest.php +++ b/BigQuery/tests/Unit/Exception/JobExceptionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery\Exception; +namespace Google\Cloud\BigQuery\Tests\Unit\Exception; use Google\Cloud\BigQuery\Exception\JobException; use Google\Cloud\BigQuery\Job; diff --git a/BigQuery/tests/Unit/ExtractJobConfigurationTest.php b/BigQuery/tests/Unit/ExtractJobConfigurationTest.php index d5ebb9f0c74d..744ed6903b90 100644 --- a/BigQuery/tests/Unit/ExtractJobConfigurationTest.php +++ b/BigQuery/tests/Unit/ExtractJobConfigurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Dataset; use Google\Cloud\BigQuery\ExtractJobConfiguration; diff --git a/BigQuery/tests/Unit/InsertResponseTest.php b/BigQuery/tests/Unit/InsertResponseTest.php index bbc355e6f7f5..5cf98fdc1cbf 100644 --- a/BigQuery/tests/Unit/InsertResponseTest.php +++ b/BigQuery/tests/Unit/InsertResponseTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\InsertResponse; use Prophecy\Argument; diff --git a/BigQuery/tests/Unit/JobConfigurationTraitTest.php b/BigQuery/tests/Unit/JobConfigurationTraitTest.php index f196596df764..d059d7bcfc8d 100644 --- a/BigQuery/tests/Unit/JobConfigurationTraitTest.php +++ b/BigQuery/tests/Unit/JobConfigurationTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\JobConfigurationTrait; use Ramsey\Uuid\Uuid; diff --git a/BigQuery/tests/Unit/JobTest.php b/BigQuery/tests/Unit/JobTest.php index 7c38147acbed..41c25974445e 100644 --- a/BigQuery/tests/Unit/JobTest.php +++ b/BigQuery/tests/Unit/JobTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Connection\ConnectionInterface; use Google\Cloud\BigQuery\Job; diff --git a/BigQuery/tests/Unit/JobWaitTraitTest.php b/BigQuery/tests/Unit/JobWaitTraitTest.php index cb98d736e201..922a41b4ba4d 100644 --- a/BigQuery/tests/Unit/JobWaitTraitTest.php +++ b/BigQuery/tests/Unit/JobWaitTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Job; use Google\Cloud\BigQuery\JobWaitTrait; diff --git a/BigQuery/tests/Unit/LoadJobConfigurationTest.php b/BigQuery/tests/Unit/LoadJobConfigurationTest.php index 24c35421c243..a0cc427e15ee 100644 --- a/BigQuery/tests/Unit/LoadJobConfigurationTest.php +++ b/BigQuery/tests/Unit/LoadJobConfigurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\LoadJobConfiguration; use Google\Cloud\BigQuery\Table; diff --git a/BigQuery/tests/Unit/QueryJobConfigurationTest.php b/BigQuery/tests/Unit/QueryJobConfigurationTest.php index 1177e2f7d6dd..6f1a16cd4139 100644 --- a/BigQuery/tests/Unit/QueryJobConfigurationTest.php +++ b/BigQuery/tests/Unit/QueryJobConfigurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Dataset; use Google\Cloud\BigQuery\QueryJobConfiguration; diff --git a/BigQuery/tests/Unit/QueryResultsTest.php b/BigQuery/tests/Unit/QueryResultsTest.php index 660e31834735..5c944170a7d6 100644 --- a/BigQuery/tests/Unit/QueryResultsTest.php +++ b/BigQuery/tests/Unit/QueryResultsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Connection\ConnectionInterface; use Google\Cloud\BigQuery\Job; diff --git a/BigQuery/tests/Unit/TableTest.php b/BigQuery/tests/Unit/TableTest.php index ad59cd5a838e..2f0f372ac9a4 100644 --- a/BigQuery/tests/Unit/TableTest.php +++ b/BigQuery/tests/Unit/TableTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Connection\ConnectionInterface; use Google\Cloud\BigQuery\CopyJobConfiguration; diff --git a/BigQuery/tests/Unit/TimeTest.php b/BigQuery/tests/Unit/TimeTest.php index bea95abfa259..051285fa378a 100644 --- a/BigQuery/tests/Unit/TimeTest.php +++ b/BigQuery/tests/Unit/TimeTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Time; use PHPUnit\Framework\TestCase; diff --git a/BigQuery/tests/Unit/TimestampTest.php b/BigQuery/tests/Unit/TimestampTest.php index 23bae49f3824..5390c7af9cda 100644 --- a/BigQuery/tests/Unit/TimestampTest.php +++ b/BigQuery/tests/Unit/TimestampTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Timestamp; use PHPUnit\Framework\TestCase; diff --git a/BigQuery/tests/Unit/ValueMapperTest.php b/BigQuery/tests/Unit/ValueMapperTest.php index 62f370db287a..0a7c73d5badb 100644 --- a/BigQuery/tests/Unit/ValueMapperTest.php +++ b/BigQuery/tests/Unit/ValueMapperTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Unit; use Google\Cloud\BigQuery\Bytes; use Google\Cloud\BigQuery\Date; diff --git a/Bigtable/tests/System/BigtableInstanceAdminTest.php b/Bigtable/tests/System/BigtableInstanceAdminTest.php index 687b084574c9..7f02622ee8f5 100644 --- a/Bigtable/tests/System/BigtableInstanceAdminTest.php +++ b/Bigtable/tests/System/BigtableInstanceAdminTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Bigtable; +namespace Google\Cloud\Bigtable\Tests\System; use Google\Auth\CredentialsLoader; use Google\Cloud\Bigtable\Admin\V2\BigtableInstanceAdminClient; diff --git a/Container/tests/System/ClusterManagerClientTest.php b/Container/tests/System/ClusterManagerClientTest.php index ef18a29e5d35..c61d64473d54 100644 --- a/Container/tests/System/ClusterManagerClientTest.php +++ b/Container/tests/System/ClusterManagerClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Container; +namespace Google\Cloud\Container\Tests\System; use Google\Auth\CredentialsLoader; use Google\Cloud\Container\V1\ClusterManagerClient; diff --git a/Core/tests/System/Batch/BatchRunnerTest.php b/Core/tests/System/Batch/BatchRunnerTest.php index 2fdc12b3b477..579266fb65b5 100644 --- a/Core/tests/System/Batch/BatchRunnerTest.php +++ b/Core/tests/System/Batch/BatchRunnerTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Core\Batch; +namespace Google\Cloud\Core\Tests\System\Batch; use Google\Cloud\Core\Batch\BatchRunner; use Google\Cloud\Core\Batch\Retry; diff --git a/Core/tests/System/Batch/MyJob.php b/Core/tests/System/Batch/MyJob.php index 7be1b5ba9104..bfaca5a9ffcc 100644 --- a/Core/tests/System/Batch/MyJob.php +++ b/Core/tests/System/Batch/MyJob.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Core\Batch; +namespace Google\Cloud\Core\Tests\System\Batch; class MyJob { diff --git a/Core/tests/Unit/ArrayTraitTest.php b/Core/tests/Unit/ArrayTraitTest.php index 1aa38ce3004d..94facab388e0 100644 --- a/Core/tests/Unit/ArrayTraitTest.php +++ b/Core/tests/Unit/ArrayTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\ArrayTrait; use Prophecy\Argument; diff --git a/Core/tests/Unit/Batch/BatchConfigTest.php b/Core/tests/Unit/Batch/BatchConfigTest.php index 14a44f19f315..9363102218bf 100644 --- a/Core/tests/Unit/Batch/BatchConfigTest.php +++ b/Core/tests/Unit/Batch/BatchConfigTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\BatchConfig; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Batch/BatchDaemonTraitTest.php b/Core/tests/Unit/Batch/BatchDaemonTraitTest.php index 3ffa0bc1cb6c..c983ed7c3c88 100644 --- a/Core/tests/Unit/Batch/BatchDaemonTraitTest.php +++ b/Core/tests/Unit/Batch/BatchDaemonTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\BatchDaemonTrait; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Batch/BatchJobTest.php b/Core/tests/Unit/Batch/BatchJobTest.php index e778df3e2574..4360a94e3a94 100644 --- a/Core/tests/Unit/Batch/BatchJobTest.php +++ b/Core/tests/Unit/Batch/BatchJobTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\BatchJob; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Batch/BatchRunnerTest.php b/Core/tests/Unit/Batch/BatchRunnerTest.php index b8655367382c..024c0fa97eca 100644 --- a/Core/tests/Unit/Batch/BatchRunnerTest.php +++ b/Core/tests/Unit/Batch/BatchRunnerTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\JobConfig; use Google\Cloud\Core\Batch\BatchJob; diff --git a/Core/tests/Unit/Batch/BatchTraitTest.php b/Core/tests/Unit/Batch/BatchTraitTest.php index 4f51d95a6516..2f36e8c5fe0c 100644 --- a/Core/tests/Unit/Batch/BatchTraitTest.php +++ b/Core/tests/Unit/Batch/BatchTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\BatchJob; use Google\Cloud\Core\Batch\BatchRunner; diff --git a/Core/tests/Unit/Batch/HandleFailureTraitTest.php b/Core/tests/Unit/Batch/HandleFailureTraitTest.php index 700f2036a354..17e23fc47036 100644 --- a/Core/tests/Unit/Batch/HandleFailureTraitTest.php +++ b/Core/tests/Unit/Batch/HandleFailureTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\HandleFailureTrait; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Batch/InMemoryConfigStorageTest.php b/Core/tests/Unit/Batch/InMemoryConfigStorageTest.php index ec21ac028ecd..af1f86fc0d6f 100644 --- a/Core/tests/Unit/Batch/InMemoryConfigStorageTest.php +++ b/Core/tests/Unit/Batch/InMemoryConfigStorageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\BatchJob; use Google\Cloud\Core\Batch\JobConfig; diff --git a/Core/tests/Unit/Batch/RetryTest.php b/Core/tests/Unit/Batch/RetryTest.php index d960a25be979..4736e87fb0dd 100644 --- a/Core/tests/Unit/Batch/RetryTest.php +++ b/Core/tests/Unit/Batch/RetryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\BatchJob; use Google\Cloud\Core\Batch\BatchRunner; diff --git a/Core/tests/Unit/Batch/SysvConfigStorageTest.php b/Core/tests/Unit/Batch/SysvConfigStorageTest.php index f2e4e545db45..c993a282ae4a 100644 --- a/Core/tests/Unit/Batch/SysvConfigStorageTest.php +++ b/Core/tests/Unit/Batch/SysvConfigStorageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\BatchJob; use Google\Cloud\Core\Batch\JobConfig; diff --git a/Core/tests/Unit/Batch/SysvProcessorTest.php b/Core/tests/Unit/Batch/SysvProcessorTest.php index 6bd7e60a2497..aa8eaccbf058 100644 --- a/Core/tests/Unit/Batch/SysvProcessorTest.php +++ b/Core/tests/Unit/Batch/SysvProcessorTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\BatchDaemonTrait; use Google\Cloud\Core\Batch\SysvProcessor; diff --git a/Core/tests/Unit/CallTraitTest.php b/Core/tests/Unit/CallTraitTest.php index 8a8437331e34..45ff7e9af6d1 100644 --- a/Core/tests/Unit/CallTraitTest.php +++ b/Core/tests/Unit/CallTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\CallTrait; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/ClientTraitTest.php b/Core/tests/Unit/ClientTraitTest.php index e527f2fe3d9e..7fdcccc5d856 100644 --- a/Core/tests/Unit/ClientTraitTest.php +++ b/Core/tests/Unit/ClientTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\ClientTrait; use Google\Cloud\Core\Compute\Metadata; diff --git a/Core/tests/Unit/Compute/MetadataTest.php b/Core/tests/Unit/Compute/MetadataTest.php index 0579e340fc1c..6291ceea2c91 100644 --- a/Core/tests/Unit/Compute/MetadataTest.php +++ b/Core/tests/Unit/Compute/MetadataTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Compute; +namespace Google\Cloud\Core\Tests\Unit\Compute; use Google\Cloud\Core\Compute\Metadata; use Google\Cloud\Core\Compute\Metadata\Readers\StreamReader; diff --git a/Core/tests/Unit/ConcurrencyControlTraitTest.php b/Core/tests/Unit/ConcurrencyControlTraitTest.php index bda7250178a5..03e98e57784c 100644 --- a/Core/tests/Unit/ConcurrencyControlTraitTest.php +++ b/Core/tests/Unit/ConcurrencyControlTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\ConcurrencyControlTrait; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/EmulatorTraitTest.php b/Core/tests/Unit/EmulatorTraitTest.php index e1efdadcbb58..f1c41223631f 100644 --- a/Core/tests/Unit/EmulatorTraitTest.php +++ b/Core/tests/Unit/EmulatorTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\EmulatorTrait; use Prophecy\Argument; diff --git a/Core/tests/Unit/Exception/NotFoundExceptionTest.php b/Core/tests/Unit/Exception/NotFoundExceptionTest.php index ec8d2a5a86e0..d67ff9b1ff23 100644 --- a/Core/tests/Unit/Exception/NotFoundExceptionTest.php +++ b/Core/tests/Unit/Exception/NotFoundExceptionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Exception; +namespace Google\Cloud\Core\Tests\Unit\Exception; use Google\Cloud\Core\Exception\NotFoundException; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Exception/ServiceExceptionTest.php b/Core/tests/Unit/Exception/ServiceExceptionTest.php index 5bc11b50b2a2..673bf96180cd 100644 --- a/Core/tests/Unit/Exception/ServiceExceptionTest.php +++ b/Core/tests/Unit/Exception/ServiceExceptionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Exception; +namespace Google\Cloud\Core\Tests\Unit\Exception; use Google\Cloud\Core\Exception\ServiceException; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/ExponentialBackoffTest.php b/Core/tests/Unit/ExponentialBackoffTest.php index 6d7c6fb32d20..05dd5ef71d46 100644 --- a/Core/tests/Unit/ExponentialBackoffTest.php +++ b/Core/tests/Unit/ExponentialBackoffTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\ExponentialBackoff; use Prophecy\Argument; diff --git a/Core/tests/Unit/Fixtures.php b/Core/tests/Unit/Fixtures.php index 93f278230d0d..960ef4e781f5 100644 --- a/Core/tests/Unit/Fixtures.php +++ b/Core/tests/Unit/Fixtures.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; class Fixtures { diff --git a/Core/tests/Unit/GrpcRequestWrapperTest.php b/Core/tests/Unit/GrpcRequestWrapperTest.php index b9fa442eb9ee..5726700fab29 100644 --- a/Core/tests/Unit/GrpcRequestWrapperTest.php +++ b/Core/tests/Unit/GrpcRequestWrapperTest.php @@ -16,7 +16,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Api\Http; use Google\Auth\FetchAuthTokenInterface; diff --git a/Core/tests/Unit/GrpcTraitTest.php b/Core/tests/Unit/GrpcTraitTest.php index 4d04325f7cc7..b5ad11c48272 100644 --- a/Core/tests/Unit/GrpcTraitTest.php +++ b/Core/tests/Unit/GrpcTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Auth\Cache\MemoryCacheItemPool; use Google\Auth\FetchAuthTokenCache; diff --git a/Core/tests/Unit/Iam/IamTest.php b/Core/tests/Unit/Iam/IamTest.php index 9c671e88350f..5786203bc445 100644 --- a/Core/tests/Unit/Iam/IamTest.php +++ b/Core/tests/Unit/Iam/IamTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Iam; +namespace Google\Cloud\Core\Tests\Unit\Iam; use Google\Cloud\Core\Iam\Iam; use Google\Cloud\Core\Iam\IamConnectionInterface; diff --git a/Core/tests/Unit/Iam/PolicyBuilderTest.php b/Core/tests/Unit/Iam/PolicyBuilderTest.php index ec98210155c2..88e1b1300bd3 100644 --- a/Core/tests/Unit/Iam/PolicyBuilderTest.php +++ b/Core/tests/Unit/Iam/PolicyBuilderTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Iam; +namespace Google\Cloud\Core\Tests\Unit\Iam; use Google\Cloud\Core\Iam\PolicyBuilder; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Int64Test.php b/Core/tests/Unit/Int64Test.php index 7e08ff94a240..630c45650e88 100644 --- a/Core/tests/Unit/Int64Test.php +++ b/Core/tests/Unit/Int64Test.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\Int64; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Iterator/ItemIteratorTest.php b/Core/tests/Unit/Iterator/ItemIteratorTest.php index d4a3e3921743..681281193185 100644 --- a/Core/tests/Unit/Iterator/ItemIteratorTest.php +++ b/Core/tests/Unit/Iterator/ItemIteratorTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Iterator; +namespace Google\Cloud\Core\Tests\Unit\Iterator; use Google\Cloud\Core\Iterator\ItemIterator; use Google\Cloud\Core\Iterator\PageIterator; diff --git a/Core/tests/Unit/Iterator/PageIteratorTest.php b/Core/tests/Unit/Iterator/PageIteratorTest.php index fc304675c911..21e357445f76 100644 --- a/Core/tests/Unit/Iterator/PageIteratorTest.php +++ b/Core/tests/Unit/Iterator/PageIteratorTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Iterator; +namespace Google\Cloud\Core\Tests\Unit\Iterator; use Google\Cloud\Core\Iterator\ItemIterator; use Google\Cloud\Core\Iterator\PageIterator; diff --git a/Core/tests/Unit/JsonTraitTest.php b/Core/tests/Unit/JsonTraitTest.php index 845e73130ac1..1b431e11bde2 100644 --- a/Core/tests/Unit/JsonTraitTest.php +++ b/Core/tests/Unit/JsonTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\JsonTrait; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Lock/CommonLockTrait.php b/Core/tests/Unit/Lock/CommonLockTrait.php index 5fd88519770e..a516693a4fff 100644 --- a/Core/tests/Unit/Lock/CommonLockTrait.php +++ b/Core/tests/Unit/Lock/CommonLockTrait.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Lock; +namespace Google\Cloud\Core\Tests\Unit\Lock; use Google\Cloud\Core\Testing\Lock\MockValues; use Google\Cloud\Core\Lock\SemaphoreLock; diff --git a/Core/tests/Unit/Lock/FlockLockTest.php b/Core/tests/Unit/Lock/FlockLockTest.php index d5f08bf46728..e9f9d4537e65 100644 --- a/Core/tests/Unit/Lock/FlockLockTest.php +++ b/Core/tests/Unit/Lock/FlockLockTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Lock; +namespace Google\Cloud\Core\Tests\Unit\Lock; use Google\Cloud\Core\Lock\FlockLock; use Google\Cloud\Core\Testing\Lock\MockValues; diff --git a/Core/tests/Unit/Lock/SemaphoreLockTest.php b/Core/tests/Unit/Lock/SemaphoreLockTest.php index 4ec59e721346..3fac6b643085 100644 --- a/Core/tests/Unit/Lock/SemaphoreLockTest.php +++ b/Core/tests/Unit/Lock/SemaphoreLockTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Lock; +namespace Google\Cloud\Core\Tests\Unit\Lock; use Google\Cloud\Core\Lock\SemaphoreLock; use Google\Cloud\Core\SysvTrait; diff --git a/Core/tests/Unit/Logger/AppEngineFlexHandlerTest.php b/Core/tests/Unit/Logger/AppEngineFlexHandlerTest.php index 82b6b8727eae..3476546685ae 100644 --- a/Core/tests/Unit/Logger/AppEngineFlexHandlerTest.php +++ b/Core/tests/Unit/Logger/AppEngineFlexHandlerTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Logger; +namespace Google\Cloud\Core\Tests\Unit\Logger; use Google\Cloud\Core\Logger\AppEngineFlexHandler; use Monolog\Logger; diff --git a/Core/tests/Unit/Report/EmptyMetadataProviderTest.php b/Core/tests/Unit/Report/EmptyMetadataProviderTest.php index d4a42ddf81c1..0f22f7740231 100644 --- a/Core/tests/Unit/Report/EmptyMetadataProviderTest.php +++ b/Core/tests/Unit/Report/EmptyMetadataProviderTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Report; +namespace Google\Cloud\Core\Tests\Unit\Report; use Google\Cloud\Core\Report\EmptyMetadataProvider; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Report/GAEFlexMetadataProviderTest.php b/Core/tests/Unit/Report/GAEFlexMetadataProviderTest.php index e6a50b5952a4..df2c128be5c1 100644 --- a/Core/tests/Unit/Report/GAEFlexMetadataProviderTest.php +++ b/Core/tests/Unit/Report/GAEFlexMetadataProviderTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Report; +namespace Google\Cloud\Core\Tests\Unit\Report; use Google\Cloud\Core\Report\GAEFlexMetadataProvider; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Report/MetadataProviderUtilsTest.php b/Core/tests/Unit/Report/MetadataProviderUtilsTest.php index bb8e8b153f13..bf366f37a3f8 100644 --- a/Core/tests/Unit/Report/MetadataProviderUtilsTest.php +++ b/Core/tests/Unit/Report/MetadataProviderUtilsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Report; +namespace Google\Cloud\Core\Tests\Unit\Report; use Google\Cloud\Core\Report\EmptyMetadataProvider; use Google\Cloud\Core\Report\GAEFlexMetadataProvider; diff --git a/Core/tests/Unit/Report/SimpleMetadataProviderTest.php b/Core/tests/Unit/Report/SimpleMetadataProviderTest.php index fd7aab744bef..224c0ac15f3a 100644 --- a/Core/tests/Unit/Report/SimpleMetadataProviderTest.php +++ b/Core/tests/Unit/Report/SimpleMetadataProviderTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Report; +namespace Google\Cloud\Core\Tests\Unit\Report; use Google\Cloud\Core\Report\SimpleMetadataProvider; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/RequestBuilderTest.php b/Core/tests/Unit/RequestBuilderTest.php index b029b4629508..162bdf167b1d 100644 --- a/Core/tests/Unit/RequestBuilderTest.php +++ b/Core/tests/Unit/RequestBuilderTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\RequestBuilder; use Prophecy\Argument; diff --git a/Core/tests/Unit/RequestWrapperTest.php b/Core/tests/Unit/RequestWrapperTest.php index 3d35f999375c..1ba91099968a 100644 --- a/Core/tests/Unit/RequestWrapperTest.php +++ b/Core/tests/Unit/RequestWrapperTest.php @@ -16,7 +16,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Core\AnonymousCredentials; diff --git a/Core/tests/Unit/RestTraitTest.php b/Core/tests/Unit/RestTraitTest.php index 815355921287..c8b023001047 100644 --- a/Core/tests/Unit/RestTraitTest.php +++ b/Core/tests/Unit/RestTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Core\RequestBuilder; diff --git a/Core/tests/Unit/RetryDeciderTraitTest.php b/Core/tests/Unit/RetryDeciderTraitTest.php index e4f519a4fa39..566bfbc8c9c5 100644 --- a/Core/tests/Unit/RetryDeciderTraitTest.php +++ b/Core/tests/Unit/RetryDeciderTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\RetryDeciderTrait; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/ServiceBuilderTest.php b/Core/tests/Unit/ServiceBuilderTest.php index 28313418448d..c79a7b5da4b8 100644 --- a/Core/tests/Unit/ServiceBuilderTest.php +++ b/Core/tests/Unit/ServiceBuilderTest.php @@ -28,7 +28,7 @@ use Google\Cloud\Spanner\SpannerClient; use Google\Cloud\Speech\SpeechClient; use Google\Cloud\Storage\StorageClient; -use Google\Cloud\Tests\Unit\Core\Fixtures; +use Google\Cloud\Core\Tests\Unit\Fixtures; use Google\Cloud\Translate\TranslateClient; use Google\Cloud\Vision\VisionClient; use GuzzleHttp\Psr7\Response; diff --git a/Core/tests/Unit/ServicesNotFoundTest.php b/Core/tests/Unit/ServicesNotFoundTest.php index cfffb43f17cb..fb0523028b4f 100644 --- a/Core/tests/Unit/ServicesNotFoundTest.php +++ b/Core/tests/Unit/ServicesNotFoundTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\ServiceBuilder; use Composer\Autoload\ClassLoader; diff --git a/Core/tests/Unit/SysvTraitTest.php b/Core/tests/Unit/SysvTraitTest.php index 14ae1deb60ca..338b0c94fe61 100644 --- a/Core/tests/Unit/SysvTraitTest.php +++ b/Core/tests/Unit/SysvTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\SysvTrait; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Upload/MultipartUploaderTest.php b/Core/tests/Unit/Upload/MultipartUploaderTest.php index 0806497d9563..a6f0635aa0c8 100644 --- a/Core/tests/Unit/Upload/MultipartUploaderTest.php +++ b/Core/tests/Unit/Upload/MultipartUploaderTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Upload; +namespace Google\Cloud\Core\Tests\Unit\Upload; use Google\Cloud\Core\RequestWrapper; use Google\Cloud\Core\Upload\MultipartUploader; diff --git a/Core/tests/Unit/Upload/ResumableUploaderTest.php b/Core/tests/Unit/Upload/ResumableUploaderTest.php index 93bdef5c6d6b..d87799806b8c 100644 --- a/Core/tests/Unit/Upload/ResumableUploaderTest.php +++ b/Core/tests/Unit/Upload/ResumableUploaderTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Upload; +namespace Google\Cloud\Core\Tests\Unit\Upload; use Google\Cloud\Core\Exception\GoogleException; use Google\Cloud\Core\RequestWrapper; diff --git a/Core/tests/Unit/Upload/SignedUrlUploaderTest.php b/Core/tests/Unit/Upload/SignedUrlUploaderTest.php index 3e943c9df246..02c0f971e629 100644 --- a/Core/tests/Unit/Upload/SignedUrlUploaderTest.php +++ b/Core/tests/Unit/Upload/SignedUrlUploaderTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Upload; +namespace Google\Cloud\Core\Tests\Unit\Upload; use Google\Cloud\Core\Exception\GoogleException; use Google\Cloud\Core\RequestWrapper; diff --git a/Core/tests/Unit/Upload/StreamableUploaderTest.php b/Core/tests/Unit/Upload/StreamableUploaderTest.php index f180e4474cff..b78381f7f176 100644 --- a/Core/tests/Unit/Upload/StreamableUploaderTest.php +++ b/Core/tests/Unit/Upload/StreamableUploaderTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Upload; +namespace Google\Cloud\Core\Tests\Unit\Upload; use Google\Cloud\Core\Exception\GoogleException; use Google\Cloud\Core\RequestWrapper; diff --git a/Core/tests/Unit/UriTraitTest.php b/Core/tests/Unit/UriTraitTest.php index c3a8f36be837..d5761d493152 100644 --- a/Core/tests/Unit/UriTraitTest.php +++ b/Core/tests/Unit/UriTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\UriTrait; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/ValidateTraitTest.php b/Core/tests/Unit/ValidateTraitTest.php index 351620cc34bf..828d73161c61 100644 --- a/Core/tests/Unit/ValidateTraitTest.php +++ b/Core/tests/Unit/ValidateTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\ValidateTrait; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/WhitelistTraitTest.php b/Core/tests/Unit/WhitelistTraitTest.php index b9c1989efba0..316c1f29b8bc 100644 --- a/Core/tests/Unit/WhitelistTraitTest.php +++ b/Core/tests/Unit/WhitelistTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core; +namespace Google\Cloud\Core\Tests\Unit; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Core\Exception\ServiceException; diff --git a/Dataproc/tests/System/ClusterControllerClientTest.php b/Dataproc/tests/System/ClusterControllerClientTest.php index fd315359b6c8..277dcc9bd5b7 100644 --- a/Dataproc/tests/System/ClusterControllerClientTest.php +++ b/Dataproc/tests/System/ClusterControllerClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Container; +namespace Google\Cloud\Container\Tests\System; use Google\Auth\CredentialsLoader; use Google\ApiCore\PagedListResponse; diff --git a/Datastore/tests/System/AllocateKeyTest.php b/Datastore/tests/System/AllocateKeyTest.php index 495e640591ff..d9dbba6cef03 100644 --- a/Datastore/tests/System/AllocateKeyTest.php +++ b/Datastore/tests/System/AllocateKeyTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Datastore; +namespace Google\Cloud\Datastore\Tests\System; /** * @group datastore diff --git a/Datastore/tests/System/DatastoreTestCase.php b/Datastore/tests/System/DatastoreTestCase.php index f12f47aa6b11..bb194b01a56b 100644 --- a/Datastore/tests/System/DatastoreTestCase.php +++ b/Datastore/tests/System/DatastoreTestCase.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Datastore; +namespace Google\Cloud\Datastore\Tests\System; use Google\Cloud\Core\ExponentialBackoff; use Google\Cloud\Datastore\DatastoreClient; diff --git a/Datastore/tests/System/RunQueryTest.php b/Datastore/tests/System/RunQueryTest.php index 4d62dfbf5f8e..4a7c358951cd 100644 --- a/Datastore/tests/System/RunQueryTest.php +++ b/Datastore/tests/System/RunQueryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Datastore; +namespace Google\Cloud\Datastore\Tests\System; /** * @group datastore diff --git a/Datastore/tests/System/RunTransactionTest.php b/Datastore/tests/System/RunTransactionTest.php index 11aaa7a6f664..dba66e473326 100644 --- a/Datastore/tests/System/RunTransactionTest.php +++ b/Datastore/tests/System/RunTransactionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Datastore; +namespace Google\Cloud\Datastore\Tests\System; /** * @group datastore diff --git a/Datastore/tests/System/SaveAndModifyTest.php b/Datastore/tests/System/SaveAndModifyTest.php index 57996703d773..20cfd34202ee 100644 --- a/Datastore/tests/System/SaveAndModifyTest.php +++ b/Datastore/tests/System/SaveAndModifyTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Datastore; +namespace Google\Cloud\Datastore\Tests\System; use Google\Cloud\Core\Int64; use Google\Cloud\Datastore\Entity; diff --git a/Datastore/tests/Unit/BlobTest.php b/Datastore/tests/Unit/BlobTest.php index 36b1b7017ac8..3a09bc744e09 100644 --- a/Datastore/tests/Unit/BlobTest.php +++ b/Datastore/tests/Unit/BlobTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Google\Cloud\Datastore\Blob; use GuzzleHttp\Psr7; diff --git a/Datastore/tests/Unit/Connection/RestTest.php b/Datastore/tests/Unit/Connection/RestTest.php index 40f250e77948..f0f5448daff0 100644 --- a/Datastore/tests/Unit/Connection/RestTest.php +++ b/Datastore/tests/Unit/Connection/RestTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore\Connection; +namespace Google\Cloud\Datastore\Tests\Unit\Connection; use Google\Cloud\Core\RequestBuilder; use Google\Cloud\Core\RequestWrapper; diff --git a/Datastore/tests/Unit/DatastoreClientTest.php b/Datastore/tests/Unit/DatastoreClientTest.php index 905bc0b48d1b..cf6d22a0aefe 100644 --- a/Datastore/tests/Unit/DatastoreClientTest.php +++ b/Datastore/tests/Unit/DatastoreClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Google\Cloud\Core\Int64; use Google\Cloud\Core\Testing\DatastoreOperationRefreshTrait; diff --git a/Datastore/tests/Unit/DatastoreSessionHandlerTest.php b/Datastore/tests/Unit/DatastoreSessionHandlerTest.php index 3257172dd721..55c028490792 100644 --- a/Datastore/tests/Unit/DatastoreSessionHandlerTest.php +++ b/Datastore/tests/Unit/DatastoreSessionHandlerTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Exception; diff --git a/Datastore/tests/Unit/DatastoreTraitTest.php b/Datastore/tests/Unit/DatastoreTraitTest.php index 305e7ca627a3..ed83e2d738ad 100644 --- a/Datastore/tests/Unit/DatastoreTraitTest.php +++ b/Datastore/tests/Unit/DatastoreTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Google\Cloud\Datastore\DatastoreClient; use Google\Cloud\Datastore\DatastoreTrait; diff --git a/Datastore/tests/Unit/EntityIteratorTest.php b/Datastore/tests/Unit/EntityIteratorTest.php index 84a5cee03628..defd520525bb 100644 --- a/Datastore/tests/Unit/EntityIteratorTest.php +++ b/Datastore/tests/Unit/EntityIteratorTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Google\Cloud\Datastore\EntityIterator; use Google\Cloud\Datastore\EntityPageIterator; diff --git a/Datastore/tests/Unit/EntityMapperTest.php b/Datastore/tests/Unit/EntityMapperTest.php index 147a6cbd243a..5f2b8a1c13a3 100644 --- a/Datastore/tests/Unit/EntityMapperTest.php +++ b/Datastore/tests/Unit/EntityMapperTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Google\Cloud\Datastore\Blob; use Google\Cloud\Datastore\Entity; diff --git a/Datastore/tests/Unit/EntityPageIteratorTest.php b/Datastore/tests/Unit/EntityPageIteratorTest.php index 42013f840948..750d4e361d3d 100644 --- a/Datastore/tests/Unit/EntityPageIteratorTest.php +++ b/Datastore/tests/Unit/EntityPageIteratorTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Google\Cloud\Datastore\EntityPageIterator; use PHPUnit\Framework\TestCase; diff --git a/Datastore/tests/Unit/EntityTest.php b/Datastore/tests/Unit/EntityTest.php index 6c1419d25f4b..3d1945dec4a0 100644 --- a/Datastore/tests/Unit/EntityTest.php +++ b/Datastore/tests/Unit/EntityTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Google\Cloud\Datastore\Entity; use Google\Cloud\Datastore\EntityMapper; diff --git a/Datastore/tests/Unit/Fixtures.php b/Datastore/tests/Unit/Fixtures.php index 348bc4d6155b..4065b271faad 100644 --- a/Datastore/tests/Unit/Fixtures.php +++ b/Datastore/tests/Unit/Fixtures.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; class Fixtures { diff --git a/Datastore/tests/Unit/GeoPointTest.php b/Datastore/tests/Unit/GeoPointTest.php index 482af196e5b4..f7d554ca65b7 100644 --- a/Datastore/tests/Unit/GeoPointTest.php +++ b/Datastore/tests/Unit/GeoPointTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Google\Cloud\Datastore\GeoPoint; use PHPUnit\Framework\TestCase; diff --git a/Datastore/tests/Unit/KeyTest.php b/Datastore/tests/Unit/KeyTest.php index 0e3ab71c6e0f..285b84933817 100644 --- a/Datastore/tests/Unit/KeyTest.php +++ b/Datastore/tests/Unit/KeyTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Google\Cloud\Datastore\Key; use PHPUnit\Framework\TestCase; diff --git a/Datastore/tests/Unit/OperationTest.php b/Datastore/tests/Unit/OperationTest.php index 2e37894983d8..2e1782b7bcb5 100644 --- a/Datastore/tests/Unit/OperationTest.php +++ b/Datastore/tests/Unit/OperationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Google\Cloud\Core\Testing\TestHelpers; use Google\Cloud\Datastore\Connection\ConnectionInterface; diff --git a/Datastore/tests/Unit/Query/GqlQueryTest.php b/Datastore/tests/Unit/Query/GqlQueryTest.php index a0ecd376a0a9..c9215b643df6 100644 --- a/Datastore/tests/Unit/Query/GqlQueryTest.php +++ b/Datastore/tests/Unit/Query/GqlQueryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore\Query; +namespace Google\Cloud\Datastore\Tests\Unit\Query; use Google\Cloud\Datastore\EntityMapper; use Google\Cloud\Datastore\Query\GqlQuery; diff --git a/Datastore/tests/Unit/Query/QueryTest.php b/Datastore/tests/Unit/Query/QueryTest.php index 29a73613a479..536ebf5e1c69 100644 --- a/Datastore/tests/Unit/Query/QueryTest.php +++ b/Datastore/tests/Unit/Query/QueryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore\Query; +namespace Google\Cloud\Datastore\Tests\Unit\Query; use Google\Cloud\Datastore\EntityMapper; use Google\Cloud\Datastore\Key; diff --git a/Datastore/tests/Unit/TransactionTest.php b/Datastore/tests/Unit/TransactionTest.php index 3835fb65864d..062d9cef3b7e 100644 --- a/Datastore/tests/Unit/TransactionTest.php +++ b/Datastore/tests/Unit/TransactionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Datastore; +namespace Google\Cloud\Datastore\Tests\Unit; use Google\Cloud\Core\Testing\DatastoreOperationRefreshTrait; use Google\Cloud\Core\Testing\TestHelpers; diff --git a/Debugger/tests/System/BasicTest.php b/Debugger/tests/System/BasicTest.php index a486311c10ce..852a07f4fb09 100644 --- a/Debugger/tests/System/BasicTest.php +++ b/Debugger/tests/System/BasicTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Debugger; +namespace Google\Cloud\Debugger\Tests\System; use Google\Cloud\Debugger\Breakpoint; use Google\Cloud\Debugger\Debuggee; diff --git a/Debugger/tests/System/E2ETest.php b/Debugger/tests/System/E2ETest.php index 6f31e6010d9d..0799ab8517ac 100644 --- a/Debugger/tests/System/E2ETest.php +++ b/Debugger/tests/System/E2ETest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Debugger; +namespace Google\Cloud\Debugger\Tests\System; use Google\Cloud\Debugger\DebuggerClient; use Google\Cloud\Debugger\Breakpoint; diff --git a/Debugger/tests/Unit/AgentTest.php b/Debugger/tests/Unit/AgentTest.php index e4bda37b79e0..a9302c176e10 100644 --- a/Debugger/tests/Unit/AgentTest.php +++ b/Debugger/tests/Unit/AgentTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\Agent; use Google\Cloud\Debugger\Debuggee; diff --git a/Debugger/tests/Unit/AliasContextTest.php b/Debugger/tests/Unit/AliasContextTest.php index a924d96e5a28..90b5cbb7d38e 100644 --- a/Debugger/tests/Unit/AliasContextTest.php +++ b/Debugger/tests/Unit/AliasContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\AliasContext; use PHPUnit\Framework\TestCase; diff --git a/Debugger/tests/Unit/BreakpointStorage/SysvBreakpointStorageTest.php b/Debugger/tests/Unit/BreakpointStorage/SysvBreakpointStorageTest.php index fc9220f92be6..8be8b0481d12 100644 --- a/Debugger/tests/Unit/BreakpointStorage/SysvBreakpointStorageTest.php +++ b/Debugger/tests/Unit/BreakpointStorage/SysvBreakpointStorageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger\BreakpointStorage; +namespace Google\Cloud\Debugger\Tests\Unit\BreakpointStorage; use Google\Cloud\Debugger\BreakpointStorage\SysvBreakpointStorage; use Google\Cloud\Debugger\Breakpoint; diff --git a/Debugger/tests/Unit/BreakpointTest.php b/Debugger/tests/Unit/BreakpointTest.php index 1e9df0fc5af1..99028dacd781 100644 --- a/Debugger/tests/Unit/BreakpointTest.php +++ b/Debugger/tests/Unit/BreakpointTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\Action; use Google\Cloud\Debugger\Breakpoint; diff --git a/Debugger/tests/Unit/BreakpointValidationTest.php b/Debugger/tests/Unit/BreakpointValidationTest.php index 2d76007adc57..f6373b991f28 100644 --- a/Debugger/tests/Unit/BreakpointValidationTest.php +++ b/Debugger/tests/Unit/BreakpointValidationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\StatusMessage; use Google\Cloud\Debugger\Breakpoint; diff --git a/Debugger/tests/Unit/CloudRepoSourceContextTest.php b/Debugger/tests/Unit/CloudRepoSourceContextTest.php index 56312481f06c..8362cd6bb83d 100644 --- a/Debugger/tests/Unit/CloudRepoSourceContextTest.php +++ b/Debugger/tests/Unit/CloudRepoSourceContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\AliasContext; use Google\Cloud\Debugger\CloudRepoSourceContext; diff --git a/Debugger/tests/Unit/CloudWorkspaceIdTest.php b/Debugger/tests/Unit/CloudWorkspaceIdTest.php index bb3677d91c01..dff4a4cddd36 100644 --- a/Debugger/tests/Unit/CloudWorkspaceIdTest.php +++ b/Debugger/tests/Unit/CloudWorkspaceIdTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\CloudWorkspaceId; use Google\Cloud\Debugger\ProjectRepoId; diff --git a/Debugger/tests/Unit/CloudWorkspaceSourceContextTest.php b/Debugger/tests/Unit/CloudWorkspaceSourceContextTest.php index 45a4d7838474..4bdf91e7ae17 100644 --- a/Debugger/tests/Unit/CloudWorkspaceSourceContextTest.php +++ b/Debugger/tests/Unit/CloudWorkspaceSourceContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\CloudWorkspaceId; use Google\Cloud\Debugger\CloudWorkspaceSourceContext; diff --git a/Debugger/tests/Unit/Connection/RestTest.php b/Debugger/tests/Unit/Connection/RestTest.php index 223029cb95a3..6a0b21283963 100644 --- a/Debugger/tests/Unit/Connection/RestTest.php +++ b/Debugger/tests/Unit/Connection/RestTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger\Connection; +namespace Google\Cloud\Debugger\Tests\Unit\Connection; use Google\Cloud\Debugger\Connection\Rest; use Google\Cloud\Core\RequestBuilder; diff --git a/Debugger/tests/Unit/DaemonTest.php b/Debugger/tests/Unit/DaemonTest.php index e7b143d64fb2..c085572de828 100644 --- a/Debugger/tests/Unit/DaemonTest.php +++ b/Debugger/tests/Unit/DaemonTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Core\Report\SimpleMetadataProvider; use Google\Cloud\Debugger\Breakpoint; diff --git a/Debugger/tests/Unit/DebuggeeTest.php b/Debugger/tests/Unit/DebuggeeTest.php index 304a8c17a730..c25b4ac8c9bc 100644 --- a/Debugger/tests/Unit/DebuggeeTest.php +++ b/Debugger/tests/Unit/DebuggeeTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\Breakpoint; use Google\Cloud\Debugger\Debuggee; diff --git a/Debugger/tests/Unit/DebuggerClientTest.php b/Debugger/tests/Unit/DebuggerClientTest.php index 2930e12000c2..11b6fc9796a0 100644 --- a/Debugger/tests/Unit/DebuggerClientTest.php +++ b/Debugger/tests/Unit/DebuggerClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\Connection\ConnectionInterface; use Google\Cloud\Debugger\DebuggerClient; diff --git a/Debugger/tests/Unit/ExtendedSourceContextTest.php b/Debugger/tests/Unit/ExtendedSourceContextTest.php index a2be91e4180d..65cd4ee6863a 100644 --- a/Debugger/tests/Unit/ExtendedSourceContextTest.php +++ b/Debugger/tests/Unit/ExtendedSourceContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\ExtendedSourceContext; use Google\Cloud\Debugger\GitSourceContext; diff --git a/Debugger/tests/Unit/FormatMessageTest.php b/Debugger/tests/Unit/FormatMessageTest.php index 9fbbafe02505..66ece5dd4d36 100644 --- a/Debugger/tests/Unit/FormatMessageTest.php +++ b/Debugger/tests/Unit/FormatMessageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\FormatMessage; use PHPUnit\Framework\TestCase; diff --git a/Debugger/tests/Unit/GerritSourceContextTest.php b/Debugger/tests/Unit/GerritSourceContextTest.php index 8020d0958c79..48aba05340e1 100644 --- a/Debugger/tests/Unit/GerritSourceContextTest.php +++ b/Debugger/tests/Unit/GerritSourceContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\AliasContext; use Google\Cloud\Debugger\GerritSourceContext; diff --git a/Debugger/tests/Unit/GitSourceContextTest.php b/Debugger/tests/Unit/GitSourceContextTest.php index 694680b07cd0..6a4b4df329d0 100644 --- a/Debugger/tests/Unit/GitSourceContextTest.php +++ b/Debugger/tests/Unit/GitSourceContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\GitSourceContext; use PHPUnit\Framework\TestCase; diff --git a/Debugger/tests/Unit/JsonTestTrait.php b/Debugger/tests/Unit/JsonTestTrait.php index fd8e797d0840..5313e349f40e 100644 --- a/Debugger/tests/Unit/JsonTestTrait.php +++ b/Debugger/tests/Unit/JsonTestTrait.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; trait JsonTestTrait { diff --git a/Debugger/tests/Unit/MatchingFileIteratorTest.php b/Debugger/tests/Unit/MatchingFileIteratorTest.php index 2232911b330b..caae22d36680 100644 --- a/Debugger/tests/Unit/MatchingFileIteratorTest.php +++ b/Debugger/tests/Unit/MatchingFileIteratorTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\MatchingFileIterator; use PHPUnit\Framework\TestCase; diff --git a/Debugger/tests/Unit/ProjectRepoIdTest.php b/Debugger/tests/Unit/ProjectRepoIdTest.php index 26c241e45c0e..3ff341cb16ad 100644 --- a/Debugger/tests/Unit/ProjectRepoIdTest.php +++ b/Debugger/tests/Unit/ProjectRepoIdTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\ProjectRepoId; use PHPUnit\Framework\TestCase; diff --git a/Debugger/tests/Unit/RepoIdTest.php b/Debugger/tests/Unit/RepoIdTest.php index 0754e99f95b0..e2626d349ae1 100644 --- a/Debugger/tests/Unit/RepoIdTest.php +++ b/Debugger/tests/Unit/RepoIdTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\ProjectRepoId; use Google\Cloud\Debugger\RepoId; diff --git a/Debugger/tests/Unit/SourceLocationResolverTest.php b/Debugger/tests/Unit/SourceLocationResolverTest.php index f46202d4f08d..87569f15e8d5 100644 --- a/Debugger/tests/Unit/SourceLocationResolverTest.php +++ b/Debugger/tests/Unit/SourceLocationResolverTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\SourceLocation; use Google\Cloud\Debugger\SourceLocationResolver; diff --git a/Debugger/tests/Unit/SourceLocationTest.php b/Debugger/tests/Unit/SourceLocationTest.php index d708ccb731e4..23d98b910d1c 100644 --- a/Debugger/tests/Unit/SourceLocationTest.php +++ b/Debugger/tests/Unit/SourceLocationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\SourceLocation; use PHPUnit\Framework\TestCase; diff --git a/Debugger/tests/Unit/StackFrameTest.php b/Debugger/tests/Unit/StackFrameTest.php index cc638374febe..e3e892cc3b5f 100644 --- a/Debugger/tests/Unit/StackFrameTest.php +++ b/Debugger/tests/Unit/StackFrameTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\SourceLocation; use Google\Cloud\Debugger\StackFrame; diff --git a/Debugger/tests/Unit/StatusMessageTest.php b/Debugger/tests/Unit/StatusMessageTest.php index 4bb14c67fff9..79e7cffb6ae3 100644 --- a/Debugger/tests/Unit/StatusMessageTest.php +++ b/Debugger/tests/Unit/StatusMessageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\FormatMessage; use Google\Cloud\Debugger\Reference; diff --git a/Debugger/tests/Unit/VariableTableTest.php b/Debugger/tests/Unit/VariableTableTest.php index f27cb5871e21..cb7b314efcc4 100644 --- a/Debugger/tests/Unit/VariableTableTest.php +++ b/Debugger/tests/Unit/VariableTableTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\VariableTable; use Google\Cloud\Core\Int64; diff --git a/Debugger/tests/Unit/VariableTest.php b/Debugger/tests/Unit/VariableTest.php index 8eaf744f1adb..58d46acd3204 100644 --- a/Debugger/tests/Unit/VariableTest.php +++ b/Debugger/tests/Unit/VariableTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\Variable; use PHPUnit\Framework\TestCase; diff --git a/ErrorReporting/tests/Unit/BootstrapTest.php b/ErrorReporting/tests/Unit/BootstrapTest.php index eba9115b17dc..44dc47fb0679 100644 --- a/ErrorReporting/tests/Unit/BootstrapTest.php +++ b/ErrorReporting/tests/Unit/BootstrapTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\ErrorReporting; +namespace Google\Cloud\ErrorReporting\Tests\Unit; use Google\Cloud\Core\Report\SimpleMetadataProvider; use Google\Cloud\ErrorReporting\Bootstrap; diff --git a/Firestore/tests/System/DocumentAndCollectionTest.php b/Firestore/tests/System/DocumentAndCollectionTest.php index 3c0a2d428746..093568c0508e 100644 --- a/Firestore/tests/System/DocumentAndCollectionTest.php +++ b/Firestore/tests/System/DocumentAndCollectionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Firestore; +namespace Google\Cloud\Firestore\Tests\System; use Google\Cloud\Core\Timestamp; use Google\Cloud\Firestore\FieldValue; diff --git a/Firestore/tests/System/FirestoreTestCase.php b/Firestore/tests/System/FirestoreTestCase.php index f7de0a36cc89..8f2105f5bd6c 100644 --- a/Firestore/tests/System/FirestoreTestCase.php +++ b/Firestore/tests/System/FirestoreTestCase.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Firestore; +namespace Google\Cloud\Firestore\Tests\System; use Google\Cloud\Firestore\FirestoreClient; use Google\Cloud\Core\Testing\System\SystemTestCase; diff --git a/Firestore/tests/System/QueryTest.php b/Firestore/tests/System/QueryTest.php index c65ff08ad728..cd7190cdac5d 100644 --- a/Firestore/tests/System/QueryTest.php +++ b/Firestore/tests/System/QueryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Firestore; +namespace Google\Cloud\Firestore\Tests\System; /** * @group firestore diff --git a/Firestore/tests/System/TransactionTest.php b/Firestore/tests/System/TransactionTest.php index 060f831ae778..475ce0093a62 100644 --- a/Firestore/tests/System/TransactionTest.php +++ b/Firestore/tests/System/TransactionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Firestore; +namespace Google\Cloud\Firestore\Tests\System; /** * @group firestore diff --git a/Firestore/tests/System/ValueMapperTest.php b/Firestore/tests/System/ValueMapperTest.php index 17b821035d60..ec1854888ec2 100644 --- a/Firestore/tests/System/ValueMapperTest.php +++ b/Firestore/tests/System/ValueMapperTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Firestore; +namespace Google\Cloud\Firestore\Tests\System; use Google\Cloud\Core\Blob; use Google\Cloud\Core\GeoPoint; diff --git a/Firestore/tests/Unit/CollectionReferenceTest.php b/Firestore/tests/Unit/CollectionReferenceTest.php index 31c5be524511..47309742d143 100644 --- a/Firestore/tests/Unit/CollectionReferenceTest.php +++ b/Firestore/tests/Unit/CollectionReferenceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Firestore\CollectionReference; use Google\Cloud\Firestore\Connection\ConnectionInterface; diff --git a/Firestore/tests/Unit/Connection/GrpcTest.php b/Firestore/tests/Unit/Connection/GrpcTest.php index 4d6fda5a4154..e33f2717aa68 100644 --- a/Firestore/tests/Unit/Connection/GrpcTest.php +++ b/Firestore/tests/Unit/Connection/GrpcTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore\Connection; +namespace Google\Cloud\Firestore\Tests\Unit\Connection; use Google\Cloud\Core\GrpcRequestWrapper; use Google\Cloud\Core\GrpcTrait; diff --git a/Firestore/tests/Unit/DocumentReferenceTest.php b/Firestore/tests/Unit/DocumentReferenceTest.php index 766620b9e459..6e2b9ce0d2b8 100644 --- a/Firestore/tests/Unit/DocumentReferenceTest.php +++ b/Firestore/tests/Unit/DocumentReferenceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Core\Timestamp; use Google\Cloud\Firestore\CollectionReference; diff --git a/Firestore/tests/Unit/DocumentSnapshotTest.php b/Firestore/tests/Unit/DocumentSnapshotTest.php index 6f39a7ac2e01..0a23a852ce83 100644 --- a/Firestore/tests/Unit/DocumentSnapshotTest.php +++ b/Firestore/tests/Unit/DocumentSnapshotTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Core\Timestamp; use Google\Cloud\Firestore\Connection\ConnectionInterface; diff --git a/Firestore/tests/Unit/FieldPathTest.php b/Firestore/tests/Unit/FieldPathTest.php index 14ca001753bc..04cb368b094b 100644 --- a/Firestore/tests/Unit/FieldPathTest.php +++ b/Firestore/tests/Unit/FieldPathTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Firestore\FieldPath; use PHPUnit\Framework\TestCase; diff --git a/Firestore/tests/Unit/FirestoreClientTest.php b/Firestore/tests/Unit/FirestoreClientTest.php index 20ac69918421..78627b441f2c 100644 --- a/Firestore/tests/Unit/FirestoreClientTest.php +++ b/Firestore/tests/Unit/FirestoreClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Core\Blob; use Google\Cloud\Core\Exception\AbortedException; diff --git a/Firestore/tests/Unit/PathTraitTest.php b/Firestore/tests/Unit/PathTraitTest.php index 2851fd4cb957..8fd65e28c1fe 100644 --- a/Firestore/tests/Unit/PathTraitTest.php +++ b/Firestore/tests/Unit/PathTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Firestore\PathTrait; use PHPUnit\Framework\TestCase; diff --git a/Firestore/tests/Unit/QuerySnapshotTest.php b/Firestore/tests/Unit/QuerySnapshotTest.php index e9f2c4984c15..ed07475f0671 100644 --- a/Firestore/tests/Unit/QuerySnapshotTest.php +++ b/Firestore/tests/Unit/QuerySnapshotTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Core\Exception\AbortedException; use Google\Cloud\Firestore\Connection\ConnectionInterface; diff --git a/Firestore/tests/Unit/QueryTest.php b/Firestore/tests/Unit/QueryTest.php index ed759fb40642..4b80a2548567 100644 --- a/Firestore/tests/Unit/QueryTest.php +++ b/Firestore/tests/Unit/QueryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Firestore\CollectionReference; use Google\Cloud\Firestore\Connection\ConnectionInterface; diff --git a/Firestore/tests/Unit/SnapshotTraitTest.php b/Firestore/tests/Unit/SnapshotTraitTest.php index a6008badd652..43d3d95bf1e9 100644 --- a/Firestore/tests/Unit/SnapshotTraitTest.php +++ b/Firestore/tests/Unit/SnapshotTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Core\Timestamp; use Google\Cloud\Firestore\Connection\ConnectionInterface; diff --git a/Firestore/tests/Unit/TransactionTest.php b/Firestore/tests/Unit/TransactionTest.php index 1ba97daff306..3049d1847892 100644 --- a/Firestore/tests/Unit/TransactionTest.php +++ b/Firestore/tests/Unit/TransactionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Firestore\Connection\ConnectionInterface; use Google\Cloud\Firestore\DocumentReference; diff --git a/Firestore/tests/Unit/ValueMapperTest.php b/Firestore/tests/Unit/ValueMapperTest.php index 7b073de4a0f0..34ae00944ab1 100644 --- a/Firestore/tests/Unit/ValueMapperTest.php +++ b/Firestore/tests/Unit/ValueMapperTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Core\Blob; use Google\Cloud\Core\GeoPoint; diff --git a/Firestore/tests/Unit/WriteBatchTest.php b/Firestore/tests/Unit/WriteBatchTest.php index f2c66b017d00..4f163f3f2163 100644 --- a/Firestore/tests/Unit/WriteBatchTest.php +++ b/Firestore/tests/Unit/WriteBatchTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Firestore; +namespace Google\Cloud\Firestore\Tests\Unit; use Google\Cloud\Core\Timestamp; use Google\Cloud\Firestore\Connection\ConnectionInterface; diff --git a/Language/tests/System/AnalyzeTest.php b/Language/tests/System/AnalyzeTest.php index 3d57ba21823e..77cfd5004d0b 100644 --- a/Language/tests/System/AnalyzeTest.php +++ b/Language/tests/System/AnalyzeTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Language; +namespace Google\Cloud\Language\Tests\System; /** * @group language diff --git a/Language/tests/System/LanguageTestCase.php b/Language/tests/System/LanguageTestCase.php index 94a23de1a7f5..3cec58320b41 100644 --- a/Language/tests/System/LanguageTestCase.php +++ b/Language/tests/System/LanguageTestCase.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Language; +namespace Google\Cloud\Language\Tests\System; use Google\Cloud\Core\ExponentialBackoff; use Google\Cloud\BigQuery\BigQueryClient; diff --git a/Language/tests/Unit/AnnotationTest.php b/Language/tests/Unit/AnnotationTest.php index 398b22fa93b1..377fca2f3812 100644 --- a/Language/tests/Unit/AnnotationTest.php +++ b/Language/tests/Unit/AnnotationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Language; +namespace Google\Cloud\Language\Tests\Unit; use Google\Cloud\Language\Annotation; use PHPUnit\Framework\TestCase; diff --git a/Language/tests/Unit/Connection/RestTest.php b/Language/tests/Unit/Connection/RestTest.php index c0042a2a7e15..41716b66da75 100644 --- a/Language/tests/Unit/Connection/RestTest.php +++ b/Language/tests/Unit/Connection/RestTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Language\Connection; +namespace Google\Cloud\Language\Tests\Unit\Connection; use Google\Cloud\Core\RequestBuilder; use Google\Cloud\Core\RequestWrapper; diff --git a/Language/tests/Unit/LanguageClientTest.php b/Language/tests/Unit/LanguageClientTest.php index 2d542c838aeb..5a18e7d25d22 100644 --- a/Language/tests/Unit/LanguageClientTest.php +++ b/Language/tests/Unit/LanguageClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Language; +namespace Google\Cloud\Language\Tests\Unit; use Google\Cloud\Language\Annotation; use Google\Cloud\Language\Connection\ConnectionInterface; diff --git a/Logging/tests/System/LoggingTestCase.php b/Logging/tests/System/LoggingTestCase.php index 3e1dddef110a..eb6d840fce87 100644 --- a/Logging/tests/System/LoggingTestCase.php +++ b/Logging/tests/System/LoggingTestCase.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Logging; +namespace Google\Cloud\Logging\Tests\System; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\Core\ExponentialBackoff; diff --git a/Logging/tests/System/ManageMetricsTest.php b/Logging/tests/System/ManageMetricsTest.php index fba5f9743678..ad490c895291 100644 --- a/Logging/tests/System/ManageMetricsTest.php +++ b/Logging/tests/System/ManageMetricsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Logging; +namespace Google\Cloud\Logging\Tests\System; /** * @group logging diff --git a/Logging/tests/System/ManageSinksTest.php b/Logging/tests/System/ManageSinksTest.php index fbddf0542569..ac529b3c92c0 100644 --- a/Logging/tests/System/ManageSinksTest.php +++ b/Logging/tests/System/ManageSinksTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Logging; +namespace Google\Cloud\Logging\Tests\System; /** * @group logging diff --git a/Logging/tests/System/WriteAndListEntryTest.php b/Logging/tests/System/WriteAndListEntryTest.php index 9609a5040c58..0e3e6c43c492 100644 --- a/Logging/tests/System/WriteAndListEntryTest.php +++ b/Logging/tests/System/WriteAndListEntryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Logging; +namespace Google\Cloud\Logging\Tests\System; use Google\Cloud\Core\ExponentialBackoff; diff --git a/Logging/tests/Unit/Connection/GrpcTest.php b/Logging/tests/Unit/Connection/GrpcTest.php index ad4c73cd4a55..9f5079b5d97c 100644 --- a/Logging/tests/Unit/Connection/GrpcTest.php +++ b/Logging/tests/Unit/Connection/GrpcTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Logging\Connection; +namespace Google\Cloud\Logging\Tests\Unit\Connection; use Google\Cloud\Logging\Connection\Grpc; use Google\Cloud\Core\Testing\GrpcTestTrait; diff --git a/Logging/tests/Unit/Connection/RestTest.php b/Logging/tests/Unit/Connection/RestTest.php index 91f616f6d391..f1277e6fd024 100644 --- a/Logging/tests/Unit/Connection/RestTest.php +++ b/Logging/tests/Unit/Connection/RestTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Logging\Connection; +namespace Google\Cloud\Logging\Tests\Unit\Connection; use Google\Cloud\Core\RequestBuilder; use Google\Cloud\Core\RequestWrapper; diff --git a/Logging/tests/Unit/LoggerTest.php b/Logging/tests/Unit/LoggerTest.php index 4cbaf02c5657..b28209979d8c 100644 --- a/Logging/tests/Unit/LoggerTest.php +++ b/Logging/tests/Unit/LoggerTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Logging; +namespace Google\Cloud\Logging\Tests\Unit; use Google\Cloud\Core\Timestamp; use Google\Cloud\Logging\Logger; diff --git a/Logging/tests/Unit/LoggingClientTest.php b/Logging/tests/Unit/LoggingClientTest.php index 8bfe62544464..76fe534bbf03 100644 --- a/Logging/tests/Unit/LoggingClientTest.php +++ b/Logging/tests/Unit/LoggingClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Logging; +namespace Google\Cloud\Logging\Tests\Unit; use Google\Cloud\Logging\Connection\Grpc; use Google\Cloud\Logging\Logger; diff --git a/Logging/tests/Unit/MetricTest.php b/Logging/tests/Unit/MetricTest.php index 6c048d5f6d2a..1341a697884e 100644 --- a/Logging/tests/Unit/MetricTest.php +++ b/Logging/tests/Unit/MetricTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Logging; +namespace Google\Cloud\Logging\Tests\Unit; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Logging\Metric; diff --git a/Logging/tests/Unit/PsrLoggerBatchTest.php b/Logging/tests/Unit/PsrLoggerBatchTest.php index 97b7f6e2f5cb..f9ba10198836 100644 --- a/Logging/tests/Unit/PsrLoggerBatchTest.php +++ b/Logging/tests/Unit/PsrLoggerBatchTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Logging; +namespace Google\Cloud\Logging\Tests\Unit; use Google\Cloud\Core\Batch\BatchRunner; use Google\Cloud\Core\Report\GAEFlexMetadataProvider; diff --git a/Logging/tests/Unit/PsrLoggerCompatibilityTest.php b/Logging/tests/Unit/PsrLoggerCompatibilityTest.php index 6f1f768862b9..f23c2ca983d7 100644 --- a/Logging/tests/Unit/PsrLoggerCompatibilityTest.php +++ b/Logging/tests/Unit/PsrLoggerCompatibilityTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Logging; +namespace Google\Cloud\Logging\Tests\Unit; use Google\Cloud\Logging\Connection\ConnectionInterface; use Google\Cloud\Logging\Logger; diff --git a/Logging/tests/Unit/PsrLoggerTest.php b/Logging/tests/Unit/PsrLoggerTest.php index 10554e6f26a4..fecd2c0aac10 100644 --- a/Logging/tests/Unit/PsrLoggerTest.php +++ b/Logging/tests/Unit/PsrLoggerTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Logging; +namespace Google\Cloud\Logging\Tests\Unit; use Google\Cloud\Core\Report\EmptyMetadataProvider; use Google\Cloud\Logging\Logger; diff --git a/Logging/tests/Unit/SinkTest.php b/Logging/tests/Unit/SinkTest.php index 45f937bc8413..1329fc939f6d 100644 --- a/Logging/tests/Unit/SinkTest.php +++ b/Logging/tests/Unit/SinkTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Logging; +namespace Google\Cloud\Logging\Tests\Unit; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Logging\Sink; diff --git a/OsLogin/tests/System/OsLoginServiceClientTest.php b/OsLogin/tests/System/OsLoginServiceClientTest.php index 08d0d027371c..0dbef8aabff8 100644 --- a/OsLogin/tests/System/OsLoginServiceClientTest.php +++ b/OsLogin/tests/System/OsLoginServiceClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Container; +namespace Google\Cloud\Container\Tests\System; use Google\Auth\CredentialsLoader; use Google\Cloud\OsLogin\V1beta\OsLoginServiceClient; diff --git a/PubSub/tests/System/ManageIAMPoliciesTest.php b/PubSub/tests/System/ManageIAMPoliciesTest.php index 95bd81826842..822870de8a46 100644 --- a/PubSub/tests/System/ManageIAMPoliciesTest.php +++ b/PubSub/tests/System/ManageIAMPoliciesTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\PubSub; +namespace Google\Cloud\PubSub\Tests\System; /** * @group pubsub diff --git a/PubSub/tests/System/ManageSubscriptionsTest.php b/PubSub/tests/System/ManageSubscriptionsTest.php index b40f084dd6a8..60499ab0bb3d 100644 --- a/PubSub/tests/System/ManageSubscriptionsTest.php +++ b/PubSub/tests/System/ManageSubscriptionsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\PubSub; +namespace Google\Cloud\PubSub\Tests\System; use Google\Cloud\PubSub\Snapshot; use Google\Cloud\Core\ExponentialBackoff; diff --git a/PubSub/tests/System/ManageTopicsTest.php b/PubSub/tests/System/ManageTopicsTest.php index 9fc33ebc4130..c16df3956c90 100644 --- a/PubSub/tests/System/ManageTopicsTest.php +++ b/PubSub/tests/System/ManageTopicsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\PubSub; +namespace Google\Cloud\PubSub\Tests\System; use Google\Cloud\Core\ExponentialBackoff; diff --git a/PubSub/tests/System/PubSubTestCase.php b/PubSub/tests/System/PubSubTestCase.php index c7cfb0d67a85..e846dee8d7bd 100644 --- a/PubSub/tests/System/PubSubTestCase.php +++ b/PubSub/tests/System/PubSubTestCase.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\PubSub; +namespace Google\Cloud\PubSub\Tests\System; use Google\Cloud\PubSub\PubSubClient; use Google\Cloud\Core\Testing\System\SystemTestCase; diff --git a/PubSub/tests/System/PublishAndPullTest.php b/PubSub/tests/System/PublishAndPullTest.php index 6364b2a04e43..b2361ad21dfc 100644 --- a/PubSub/tests/System/PublishAndPullTest.php +++ b/PubSub/tests/System/PublishAndPullTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\PubSub; +namespace Google\Cloud\PubSub\Tests\System; /** * @group pubsub diff --git a/PubSub/tests/Unit/BatchPublisherTest.php b/PubSub/tests/Unit/BatchPublisherTest.php index deffcd071d8f..08f9ebb2c042 100644 --- a/PubSub/tests/Unit/BatchPublisherTest.php +++ b/PubSub/tests/Unit/BatchPublisherTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\PubSub; +namespace Google\Cloud\PubSub\Tests\Unit; use Google\Cloud\Core\Batch\BatchRunner; use Google\Cloud\PubSub\BatchPublisher; diff --git a/PubSub/tests/Unit/Connection/GrpcTest.php b/PubSub/tests/Unit/Connection/GrpcTest.php index 1644c94244b9..5822b9d7e8f6 100644 --- a/PubSub/tests/Unit/Connection/GrpcTest.php +++ b/PubSub/tests/Unit/Connection/GrpcTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\PubSub\Connection; +namespace Google\Cloud\PubSub\Tests\Unit\Connection; use Google\Cloud\Core\GrpcRequestWrapper; use Google\Cloud\Core\GrpcTrait; diff --git a/PubSub/tests/Unit/Connection/IamSubscriptionTest.php b/PubSub/tests/Unit/Connection/IamSubscriptionTest.php index b04cfcc9b350..3886e14f7d20 100644 --- a/PubSub/tests/Unit/Connection/IamSubscriptionTest.php +++ b/PubSub/tests/Unit/Connection/IamSubscriptionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\PubSub\Connection; +namespace Google\Cloud\PubSub\Tests\Unit\Connection; use Google\Cloud\PubSub\Connection\ConnectionInterface; use Google\Cloud\PubSub\Connection\IamSubscription; diff --git a/PubSub/tests/Unit/Connection/IamTopicTest.php b/PubSub/tests/Unit/Connection/IamTopicTest.php index 3cc7b6db18ab..0b959bae856d 100644 --- a/PubSub/tests/Unit/Connection/IamTopicTest.php +++ b/PubSub/tests/Unit/Connection/IamTopicTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\PubSub\Connection; +namespace Google\Cloud\PubSub\Tests\Unit\Connection; use Google\Cloud\PubSub\Connection\ConnectionInterface; use Google\Cloud\PubSub\Connection\IamTopic; diff --git a/PubSub/tests/Unit/Connection/RestTest.php b/PubSub/tests/Unit/Connection/RestTest.php index c0f371e1fd5a..6e65985cbc2d 100644 --- a/PubSub/tests/Unit/Connection/RestTest.php +++ b/PubSub/tests/Unit/Connection/RestTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\PubSub\Connection; +namespace Google\Cloud\PubSub\Tests\Unit\Connection; use Google\Cloud\Core\RequestBuilder; use Google\Cloud\Core\RequestWrapper; diff --git a/PubSub/tests/Unit/IncomingMessageTraitTest.php b/PubSub/tests/Unit/IncomingMessageTraitTest.php index 8436ec9bf837..cc6811f40338 100644 --- a/PubSub/tests/Unit/IncomingMessageTraitTest.php +++ b/PubSub/tests/Unit/IncomingMessageTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\PubSub; +namespace Google\Cloud\PubSub\Tests\Unit; use Google\Cloud\PubSub\Connection\ConnectionInterface; use Google\Cloud\PubSub\IncomingMessageTrait; diff --git a/PubSub/tests/Unit/MessageTest.php b/PubSub/tests/Unit/MessageTest.php index 20ed4f0f903a..2dca32d19dc6 100644 --- a/PubSub/tests/Unit/MessageTest.php +++ b/PubSub/tests/Unit/MessageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\PubSub; +namespace Google\Cloud\PubSub\Tests\Unit; use Google\Cloud\PubSub\Message; use Google\Cloud\PubSub\Subscription; diff --git a/PubSub/tests/Unit/PubSubClientTest.php b/PubSub/tests/Unit/PubSubClientTest.php index 2aa9294565ba..9ee23156ebd6 100644 --- a/PubSub/tests/Unit/PubSubClientTest.php +++ b/PubSub/tests/Unit/PubSubClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\PubSub; +namespace Google\Cloud\PubSub\Tests\Unit; use Google\Cloud\Core\Duration; use Google\Cloud\Core\Iterator\ItemIterator; diff --git a/PubSub/tests/Unit/ResourceNameTraitTest.php b/PubSub/tests/Unit/ResourceNameTraitTest.php index 994fc28ffb23..22b5cf804bd6 100644 --- a/PubSub/tests/Unit/ResourceNameTraitTest.php +++ b/PubSub/tests/Unit/ResourceNameTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\PubSub; +namespace Google\Cloud\PubSub\Tests\Unit; use Google\Cloud\PubSub\ResourceNameTrait; use PHPUnit\Framework\TestCase; diff --git a/PubSub/tests/Unit/SubscriptionTest.php b/PubSub/tests/Unit/SubscriptionTest.php index 248eb58c10da..1ed4dd247bd2 100644 --- a/PubSub/tests/Unit/SubscriptionTest.php +++ b/PubSub/tests/Unit/SubscriptionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\PubSub; +namespace Google\Cloud\PubSub\Tests\Unit; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Core\Iam\Iam; diff --git a/PubSub/tests/Unit/TopicTest.php b/PubSub/tests/Unit/TopicTest.php index 6260f2467b53..f079122b2f52 100644 --- a/PubSub/tests/Unit/TopicTest.php +++ b/PubSub/tests/Unit/TopicTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\PubSub; +namespace Google\Cloud\PubSub\Tests\Unit; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Core\Iam\Iam; diff --git a/Spanner/tests/System/AdminTest.php b/Spanner/tests/System/AdminTest.php index c699721c12b4..5d559b66ab9c 100644 --- a/Spanner/tests/System/AdminTest.php +++ b/Spanner/tests/System/AdminTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Spanner; +namespace Google\Cloud\Spanner\Tests\System; use Google\Cloud\Core\LongRunning\LongRunningOperation; use Google\Cloud\Spanner\Admin\Database\V1\DatabaseAdminClient; diff --git a/Spanner/tests/System/LargeReadTest.php b/Spanner/tests/System/LargeReadTest.php index 230f36223d9a..cd9211748e05 100644 --- a/Spanner/tests/System/LargeReadTest.php +++ b/Spanner/tests/System/LargeReadTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Spanner; +namespace Google\Cloud\Spanner\Tests\System; use Google\Cloud\Spanner\Bytes; use Google\Cloud\Spanner\KeySet; diff --git a/Spanner/tests/System/OperationsTest.php b/Spanner/tests/System/OperationsTest.php index 9214fdedbd1d..29cc0d08cff0 100644 --- a/Spanner/tests/System/OperationsTest.php +++ b/Spanner/tests/System/OperationsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Spanner; +namespace Google\Cloud\Spanner\Tests\System; use Google\Cloud\Core\Exception\ServiceException; use Google\Cloud\Spanner\Date; diff --git a/Spanner/tests/System/QueryTest.php b/Spanner/tests/System/QueryTest.php index b1e10e0b5208..ea74b84a73e1 100644 --- a/Spanner/tests/System/QueryTest.php +++ b/Spanner/tests/System/QueryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Spanner; +namespace Google\Cloud\Spanner\Tests\System; use Google\Cloud\Core\Int64; use Google\Cloud\Spanner\Bytes; diff --git a/Spanner/tests/System/ReadTest.php b/Spanner/tests/System/ReadTest.php index ef2df2523521..7521ce7721c7 100644 --- a/Spanner/tests/System/ReadTest.php +++ b/Spanner/tests/System/ReadTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Spanner; +namespace Google\Cloud\Spanner\Tests\System; use Google\Cloud\Core\Int64; use Google\Cloud\Spanner\Bytes; diff --git a/Spanner/tests/System/SnapshotTest.php b/Spanner/tests/System/SnapshotTest.php index 7667a2bc84b8..f479925e68c3 100644 --- a/Spanner/tests/System/SnapshotTest.php +++ b/Spanner/tests/System/SnapshotTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Spanner; +namespace Google\Cloud\Spanner\Tests\System; use Google\Cloud\Spanner\Date; use Google\Cloud\Spanner\Duration; diff --git a/Spanner/tests/System/SpannerTestCase.php b/Spanner/tests/System/SpannerTestCase.php index 27974636c968..e7f0aa2fe7d0 100644 --- a/Spanner/tests/System/SpannerTestCase.php +++ b/Spanner/tests/System/SpannerTestCase.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Spanner; +namespace Google\Cloud\Spanner\Tests\System; use Google\Cloud\Core\ExponentialBackoff; use Google\Cloud\Spanner\SpannerClient; diff --git a/Spanner/tests/System/TransactionTest.php b/Spanner/tests/System/TransactionTest.php index a2bcb9fe3450..82619313a382 100644 --- a/Spanner/tests/System/TransactionTest.php +++ b/Spanner/tests/System/TransactionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Spanner; +namespace Google\Cloud\Spanner\Tests\System; use Google\Cloud\Spanner\Database; use Google\Cloud\Spanner\Date; diff --git a/Spanner/tests/System/WriteTest.php b/Spanner/tests/System/WriteTest.php index 7f4899e4e419..50dfc3831963 100644 --- a/Spanner/tests/System/WriteTest.php +++ b/Spanner/tests/System/WriteTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Spanner; +namespace Google\Cloud\Spanner\Tests\System; use Google\Cloud\Spanner\Bytes; use Google\Cloud\Spanner\Date; diff --git a/Spanner/tests/System/pcntl/AbortedErrorCausesRetry.php b/Spanner/tests/System/pcntl/AbortedErrorCausesRetry.php index edc348adf19e..4c0c6971da73 100644 --- a/Spanner/tests/System/pcntl/AbortedErrorCausesRetry.php +++ b/Spanner/tests/System/pcntl/AbortedErrorCausesRetry.php @@ -4,7 +4,7 @@ include __DIR__ . '/forked-process-test.php'; use Google\Cloud\Spanner\Database; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; +use Google\Cloud\Spanner\Tests\System\SpannerTestCase; list ($dbName, $tableName, $id) = getInputArgs(); diff --git a/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php b/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php index c02eb5d9e817..08621b4a1e84 100644 --- a/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php +++ b/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php @@ -4,7 +4,7 @@ include __DIR__ . '/forked-process-test.php'; use Google\Cloud\Spanner\Database; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; +use Google\Cloud\Spanner\Tests\System\SpannerTestCase; list ($dbName, $tableName, $id) = getInputArgs(); diff --git a/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithRead.php b/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithRead.php index f11f45c21c31..654158773415 100644 --- a/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithRead.php +++ b/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithRead.php @@ -5,7 +5,7 @@ use Google\Cloud\Spanner\Database; use Google\Cloud\Spanner\KeySet; -use Google\Cloud\Tests\System\Spanner\SpannerTestCase; +use Google\Cloud\Spanner\Tests\System\SpannerTestCase; list ($dbName, $tableName, $id) = getInputArgs(); diff --git a/Spanner/tests/Unit/BytesTest.php b/Spanner/tests/Unit/BytesTest.php index 92ff09f42710..e9616a0c3875 100644 --- a/Spanner/tests/Unit/BytesTest.php +++ b/Spanner/tests/Unit/BytesTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Spanner\Bytes; use Google\Cloud\Core\Testing\GrpcTestTrait; diff --git a/Spanner/tests/Unit/Connection/GrpcTest.php b/Spanner/tests/Unit/Connection/GrpcTest.php index c0aba1729852..542e748cb173 100644 --- a/Spanner/tests/Unit/Connection/GrpcTest.php +++ b/Spanner/tests/Unit/Connection/GrpcTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner\Connection; +namespace Google\Cloud\Spanner\Tests\Unit\Connection; use Google\ApiCore\Call; use Google\ApiCore\OperationResponse; diff --git a/Spanner/tests/Unit/Connection/IamDatabaseTest.php b/Spanner/tests/Unit/Connection/IamDatabaseTest.php index 35015a349ba4..994194143630 100644 --- a/Spanner/tests/Unit/Connection/IamDatabaseTest.php +++ b/Spanner/tests/Unit/Connection/IamDatabaseTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner\Connection; +namespace Google\Cloud\Spanner\Tests\Unit\Connection; use Google\Cloud\Spanner\Connection\ConnectionInterface; use Google\Cloud\Spanner\Connection\IamDatabase; diff --git a/Spanner/tests/Unit/Connection/IamInstanceTest.php b/Spanner/tests/Unit/Connection/IamInstanceTest.php index a259494ebb51..730fa0a0d635 100644 --- a/Spanner/tests/Unit/Connection/IamInstanceTest.php +++ b/Spanner/tests/Unit/Connection/IamInstanceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner\Connection; +namespace Google\Cloud\Spanner\Tests\Unit\Connection; use Google\Cloud\Spanner\Connection\ConnectionInterface; use Google\Cloud\Spanner\Connection\IamInstance; diff --git a/Spanner/tests/Unit/Connection/LongRunningConnectionTest.php b/Spanner/tests/Unit/Connection/LongRunningConnectionTest.php index 123ad8b5c3db..c99c56989639 100644 --- a/Spanner/tests/Unit/Connection/LongRunningConnectionTest.php +++ b/Spanner/tests/Unit/Connection/LongRunningConnectionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner\Connection; +namespace Google\Cloud\Spanner\Tests\Unit\Connection; use Google\Cloud\Spanner\Connection\ConnectionInterface; use Google\Cloud\Spanner\Connection\LongRunningConnection; diff --git a/Spanner/tests/Unit/DatabaseTest.php b/Spanner/tests/Unit/DatabaseTest.php index 5b12e0aa0106..590b1078f1c0 100644 --- a/Spanner/tests/Unit/DatabaseTest.php +++ b/Spanner/tests/Unit/DatabaseTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Core\Exception\AbortedException; use Google\Cloud\Core\Exception\NotFoundException; diff --git a/Spanner/tests/Unit/DateTest.php b/Spanner/tests/Unit/DateTest.php index b0a56f143750..692a1667ff03 100644 --- a/Spanner/tests/Unit/DateTest.php +++ b/Spanner/tests/Unit/DateTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Spanner\Date; use Google\Cloud\Core\Testing\GrpcTestTrait; diff --git a/Spanner/tests/Unit/DurationTest.php b/Spanner/tests/Unit/DurationTest.php index f5eec80572f6..5dd61d7cac8f 100644 --- a/Spanner/tests/Unit/DurationTest.php +++ b/Spanner/tests/Unit/DurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Spanner\Duration; use PHPUnit\Framework\TestCase; diff --git a/Spanner/tests/Unit/Fixtures.php b/Spanner/tests/Unit/Fixtures.php index 6e177c2782d6..c1a04beb5030 100644 --- a/Spanner/tests/Unit/Fixtures.php +++ b/Spanner/tests/Unit/Fixtures.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; class Fixtures { diff --git a/Spanner/tests/Unit/InstanceConfigurationTest.php b/Spanner/tests/Unit/InstanceConfigurationTest.php index e833cb7c47ba..27533b1e4bfd 100644 --- a/Spanner/tests/Unit/InstanceConfigurationTest.php +++ b/Spanner/tests/Unit/InstanceConfigurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\SpannerAdmin; +namespace Google\Cloud\Spanner\Tests\UnitAdmin; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Spanner\Admin\Instance\V1\InstanceAdminClient; diff --git a/Spanner/tests/Unit/InstanceTest.php b/Spanner/tests/Unit/InstanceTest.php index 5215c7ee1db7..07c893c2b51d 100644 --- a/Spanner/tests/Unit/InstanceTest.php +++ b/Spanner/tests/Unit/InstanceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Core\Iam\Iam; diff --git a/Spanner/tests/Unit/KeyRangeTest.php b/Spanner/tests/Unit/KeyRangeTest.php index 4b285ddbcfb6..6563882d2cb2 100644 --- a/Spanner/tests/Unit/KeyRangeTest.php +++ b/Spanner/tests/Unit/KeyRangeTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Spanner\KeyRange; use Google\Cloud\Core\Testing\GrpcTestTrait; diff --git a/Spanner/tests/Unit/KeySetTest.php b/Spanner/tests/Unit/KeySetTest.php index 04f599155a97..ad221ba0658c 100644 --- a/Spanner/tests/Unit/KeySetTest.php +++ b/Spanner/tests/Unit/KeySetTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Spanner\KeyRange; use Google\Cloud\Spanner\KeySet; diff --git a/Spanner/tests/Unit/OperationTest.php b/Spanner/tests/Unit/OperationTest.php index 105f4ddcc195..033869828a5d 100644 --- a/Spanner/tests/Unit/OperationTest.php +++ b/Spanner/tests/Unit/OperationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Core\Testing\GrpcTestTrait; use Google\Cloud\Spanner\Batch\QueryPartition; diff --git a/Spanner/tests/Unit/ResultTest.php b/Spanner/tests/Unit/ResultTest.php index e60760cfdc50..58f47ee732ae 100644 --- a/Spanner/tests/Unit/ResultTest.php +++ b/Spanner/tests/Unit/ResultTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Core\Exception\ServiceException; use Google\Cloud\Spanner\Transaction; diff --git a/Spanner/tests/Unit/ResultTestTrait.php b/Spanner/tests/Unit/ResultTestTrait.php index bcbc289ed2a3..b36a27a20b69 100644 --- a/Spanner/tests/Unit/ResultTestTrait.php +++ b/Spanner/tests/Unit/ResultTestTrait.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Spanner\Transaction; use Google\Cloud\Spanner\Operation; diff --git a/Spanner/tests/Unit/Session/CacheSessionPoolTest.php b/Spanner/tests/Unit/Session/CacheSessionPoolTest.php index 41f5698b5e85..d26a4a7e2d79 100644 --- a/Spanner/tests/Unit/Session/CacheSessionPoolTest.php +++ b/Spanner/tests/Unit/Session/CacheSessionPoolTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner\Session; +namespace Google\Cloud\Spanner\Tests\Unit\Session; use Google\Auth\Cache\MemoryCacheItemPool; use Google\Cloud\Core\Testing\Lock\MockValues; diff --git a/Spanner/tests/Unit/SnapshotTest.php b/Spanner/tests/Unit/SnapshotTest.php index 114516736bbe..25c11132b1d6 100644 --- a/Spanner/tests/Unit/SnapshotTest.php +++ b/Spanner/tests/Unit/SnapshotTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Spanner\Operation; use Google\Cloud\Spanner\Session\Session; diff --git a/Spanner/tests/Unit/SpannerClientTest.php b/Spanner/tests/Unit/SpannerClientTest.php index 41dcb750ae9d..cb46d72de87f 100644 --- a/Spanner/tests/Unit/SpannerClientTest.php +++ b/Spanner/tests/Unit/SpannerClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Core\Int64; use Google\Cloud\Core\Iterator\ItemIterator; diff --git a/Spanner/tests/Unit/TimestampTest.php b/Spanner/tests/Unit/TimestampTest.php index d54bee28f7fb..36a2ceac38b5 100644 --- a/Spanner/tests/Unit/TimestampTest.php +++ b/Spanner/tests/Unit/TimestampTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Spanner\Timestamp; use Google\Cloud\Core\Testing\GrpcTestTrait; diff --git a/Spanner/tests/Unit/TransactionConfigurationTraitTest.php b/Spanner/tests/Unit/TransactionConfigurationTraitTest.php index f46d8cc29dbf..808d93d72586 100644 --- a/Spanner/tests/Unit/TransactionConfigurationTraitTest.php +++ b/Spanner/tests/Unit/TransactionConfigurationTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Spanner\Duration; use Google\Cloud\Spanner\Session\SessionPoolInterface; diff --git a/Spanner/tests/Unit/TransactionTest.php b/Spanner/tests/Unit/TransactionTest.php index 5cfc0f08e0b5..bbb720e36af1 100644 --- a/Spanner/tests/Unit/TransactionTest.php +++ b/Spanner/tests/Unit/TransactionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Core\Testing\GrpcTestTrait; use Google\Cloud\Core\Testing\SpannerOperationRefreshTrait; diff --git a/Spanner/tests/Unit/TransactionTypeTest.php b/Spanner/tests/Unit/TransactionTypeTest.php index 3a336a986035..961c89f2f762 100644 --- a/Spanner/tests/Unit/TransactionTypeTest.php +++ b/Spanner/tests/Unit/TransactionTypeTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Core\LongRunning\LongRunningConnectionInterface; use Google\Cloud\Spanner\Admin\Instance\V1\InstanceAdminClient; diff --git a/Spanner/tests/Unit/ValueMapperTest.php b/Spanner/tests/Unit/ValueMapperTest.php index de17d568bf85..fa8e7b9e04d0 100644 --- a/Spanner/tests/Unit/ValueMapperTest.php +++ b/Spanner/tests/Unit/ValueMapperTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner; +namespace Google\Cloud\Spanner\Tests\Unit; use Google\Cloud\Core\Int64; use Google\Cloud\Spanner\Bytes; diff --git a/Speech/tests/Unit/Connection/RestTest.php b/Speech/tests/Unit/Connection/RestTest.php index 6aa6eed5ca9c..0c0d58f874db 100644 --- a/Speech/tests/Unit/Connection/RestTest.php +++ b/Speech/tests/Unit/Connection/RestTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Speech\Connection; +namespace Google\Cloud\Speech\Tests\Unit\Connection; use Google\Cloud\Core\RequestBuilder; use Google\Cloud\Core\RequestWrapper; diff --git a/Speech/tests/Unit/OperationTest.php b/Speech/tests/Unit/OperationTest.php index d7d5fad157a7..c37b85493bed 100644 --- a/Speech/tests/Unit/OperationTest.php +++ b/Speech/tests/Unit/OperationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Speech; +namespace Google\Cloud\Speech\Tests\Unit; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Speech\Connection\ConnectionInterface; diff --git a/Speech/tests/Unit/ResultTest.php b/Speech/tests/Unit/ResultTest.php index 5b848938ef51..9ed6ac36b87b 100644 --- a/Speech/tests/Unit/ResultTest.php +++ b/Speech/tests/Unit/ResultTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Speech; +namespace Google\Cloud\Speech\Tests\Unit; use Google\Cloud\Speech\Result; use Prophecy\Argument; diff --git a/Speech/tests/Unit/SpeechClientTest.php b/Speech/tests/Unit/SpeechClientTest.php index b90ab46efcd8..ab9ec85e8d0e 100644 --- a/Speech/tests/Unit/SpeechClientTest.php +++ b/Speech/tests/Unit/SpeechClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Speech; +namespace Google\Cloud\Speech\Tests\Unit; use Google\Cloud\Speech\Connection\ConnectionInterface; use Google\Cloud\Speech\Operation; diff --git a/Storage/tests/System/ManageAclTest.php b/Storage/tests/System/ManageAclTest.php index 3be7513b4651..0531b5bd66ae 100644 --- a/Storage/tests/System/ManageAclTest.php +++ b/Storage/tests/System/ManageAclTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage; +namespace Google\Cloud\Storage\Tests\System; use Google\Cloud\Storage\Acl; use Google\Cloud\Core\Exception\NotFoundException; diff --git a/Storage/tests/System/ManageBucketsTest.php b/Storage/tests/System/ManageBucketsTest.php index b856a9587efe..43aa2db09da7 100644 --- a/Storage/tests/System/ManageBucketsTest.php +++ b/Storage/tests/System/ManageBucketsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage; +namespace Google\Cloud\Storage\Tests\System; /** * @group storage diff --git a/Storage/tests/System/ManageNotificationsTest.php b/Storage/tests/System/ManageNotificationsTest.php index 8d5f15d8802a..a16a7fc59277 100644 --- a/Storage/tests/System/ManageNotificationsTest.php +++ b/Storage/tests/System/ManageNotificationsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage; +namespace Google\Cloud\Storage\Tests\System; /** * @group storage diff --git a/Storage/tests/System/ManageObjectsTest.php b/Storage/tests/System/ManageObjectsTest.php index dd4fd3e518d4..d535dcdf37e4 100644 --- a/Storage/tests/System/ManageObjectsTest.php +++ b/Storage/tests/System/ManageObjectsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage; +namespace Google\Cloud\Storage\Tests\System; use Psr\Http\Message\StreamInterface; diff --git a/Storage/tests/System/RequesterPaysTest.php b/Storage/tests/System/RequesterPaysTest.php index c669cd6e2ee5..e73426eb0c50 100644 --- a/Storage/tests/System/RequesterPaysTest.php +++ b/Storage/tests/System/RequesterPaysTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage; +namespace Google\Cloud\Storage\Tests\System; use GuzzleHttp\Client; use Google\Cloud\Storage\Acl; diff --git a/Storage/tests/System/SignedUrlTest.php b/Storage/tests/System/SignedUrlTest.php index ff01a7477cd9..155a044d5031 100644 --- a/Storage/tests/System/SignedUrlTest.php +++ b/Storage/tests/System/SignedUrlTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage; +namespace Google\Cloud\Storage\Tests\System; use Google\Cloud\Core\Timestamp; use GuzzleHttp\Client; diff --git a/Storage/tests/System/StorageTestCase.php b/Storage/tests/System/StorageTestCase.php index aada9cd5c9f4..351fb3434f76 100644 --- a/Storage/tests/System/StorageTestCase.php +++ b/Storage/tests/System/StorageTestCase.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage; +namespace Google\Cloud\Storage\Tests\System; use Google\Cloud\Core\AnonymousCredentials; use Google\Cloud\Core\Exception\NotFoundException; diff --git a/Storage/tests/System/StreamWrapper/DirectoryTest.php b/Storage/tests/System/StreamWrapper/DirectoryTest.php index 500555131336..202de94444b7 100644 --- a/Storage/tests/System/StreamWrapper/DirectoryTest.php +++ b/Storage/tests/System/StreamWrapper/DirectoryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage\StreamWrapper; +namespace Google\Cloud\Storage\Tests\System\StreamWrapper; /** * @group storage diff --git a/Storage/tests/System/StreamWrapper/ImageTest.php b/Storage/tests/System/StreamWrapper/ImageTest.php index 9e47a81c1701..b866cf742110 100644 --- a/Storage/tests/System/StreamWrapper/ImageTest.php +++ b/Storage/tests/System/StreamWrapper/ImageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage\StreamWrapper; +namespace Google\Cloud\Storage\Tests\System\StreamWrapper; /** * @group storage diff --git a/Storage/tests/System/StreamWrapper/ReadTest.php b/Storage/tests/System/StreamWrapper/ReadTest.php index a5db6655d177..f68559bf8746 100644 --- a/Storage/tests/System/StreamWrapper/ReadTest.php +++ b/Storage/tests/System/StreamWrapper/ReadTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage\StreamWrapper; +namespace Google\Cloud\Storage\Tests\System\StreamWrapper; /** * @group storage diff --git a/Storage/tests/System/StreamWrapper/RenameTest.php b/Storage/tests/System/StreamWrapper/RenameTest.php index 000d025f643a..77704ee777e8 100644 --- a/Storage/tests/System/StreamWrapper/RenameTest.php +++ b/Storage/tests/System/StreamWrapper/RenameTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage\StreamWrapper; +namespace Google\Cloud\Storage\Tests\System\StreamWrapper; /** * @group storage diff --git a/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php b/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php index 8928ff7da42b..928e5adefa2d 100644 --- a/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php +++ b/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php @@ -15,9 +15,9 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage\StreamWrapper; +namespace Google\Cloud\Storage\Tests\System\StreamWrapper; -use Google\Cloud\Tests\System\Storage\StorageTestCase; +use Google\Cloud\Storage\Tests\System\StorageTestCase; /** * @group storage diff --git a/Storage/tests/System/StreamWrapper/UrlStatTest.php b/Storage/tests/System/StreamWrapper/UrlStatTest.php index 5373d8700142..257a94f99579 100644 --- a/Storage/tests/System/StreamWrapper/UrlStatTest.php +++ b/Storage/tests/System/StreamWrapper/UrlStatTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage\StreamWrapper; +namespace Google\Cloud\Storage\Tests\System\StreamWrapper; /** * @group storage diff --git a/Storage/tests/System/StreamWrapper/WriteTest.php b/Storage/tests/System/StreamWrapper/WriteTest.php index a3930e65ebfa..73354af70b03 100644 --- a/Storage/tests/System/StreamWrapper/WriteTest.php +++ b/Storage/tests/System/StreamWrapper/WriteTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage\StreamWrapper; +namespace Google\Cloud\Storage\Tests\System\StreamWrapper; /** * @group storage diff --git a/Storage/tests/System/UploadObjectsTest.php b/Storage/tests/System/UploadObjectsTest.php index fcb5bd89ba40..eeec6c1dcd68 100644 --- a/Storage/tests/System/UploadObjectsTest.php +++ b/Storage/tests/System/UploadObjectsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Storage; +namespace Google\Cloud\Storage\Tests\System; use GuzzleHttp\Psr7; diff --git a/Storage/tests/Unit/AclTest.php b/Storage/tests/Unit/AclTest.php index 44ae0d317df3..0ceeb54af9df 100644 --- a/Storage/tests/Unit/AclTest.php +++ b/Storage/tests/Unit/AclTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Storage; +namespace Google\Cloud\Storage\Tests\Unit; use Google\Cloud\Storage\Acl; use Google\Cloud\Storage\Connection\ConnectionInterface; diff --git a/Storage/tests/Unit/BucketTest.php b/Storage/tests/Unit/BucketTest.php index 0ce07b608f60..7e8e8a0c347b 100644 --- a/Storage/tests/Unit/BucketTest.php +++ b/Storage/tests/Unit/BucketTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Storage; +namespace Google\Cloud\Storage\Tests\Unit; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Core\Exception\ServerException; diff --git a/Storage/tests/Unit/Connection/IamBucketTest.php b/Storage/tests/Unit/Connection/IamBucketTest.php index b1cf81d8dff0..b5808f1c8765 100644 --- a/Storage/tests/Unit/Connection/IamBucketTest.php +++ b/Storage/tests/Unit/Connection/IamBucketTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Storage\Connection; +namespace Google\Cloud\Storage\Tests\Unit\Connection; use Google\Cloud\Storage\Connection\ConnectionInterface; use Google\Cloud\Storage\Connection\IamBucket; diff --git a/Storage/tests/Unit/Connection/RestTest.php b/Storage/tests/Unit/Connection/RestTest.php index d7bca3c05325..ea586ced4687 100644 --- a/Storage/tests/Unit/Connection/RestTest.php +++ b/Storage/tests/Unit/Connection/RestTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Storage\Connection; +namespace Google\Cloud\Storage\Tests\Unit\Connection; use Google\Cloud\Core\RequestBuilder; use Google\Cloud\Core\RequestWrapper; diff --git a/Storage/tests/Unit/EncryptionTraitTest.php b/Storage/tests/Unit/EncryptionTraitTest.php index 4a70dbea3213..ef3b6e9e7551 100644 --- a/Storage/tests/Unit/EncryptionTraitTest.php +++ b/Storage/tests/Unit/EncryptionTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Storage; +namespace Google\Cloud\Storage\Tests\Unit; use Google\Cloud\Core\Testing\KeyPairGenerateTrait; use Google\Cloud\Storage\EncryptionTrait; diff --git a/Storage/tests/Unit/NotificationTest.php b/Storage/tests/Unit/NotificationTest.php index 63461e02ea00..8856680c8fbe 100644 --- a/Storage/tests/Unit/NotificationTest.php +++ b/Storage/tests/Unit/NotificationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Storage; +namespace Google\Cloud\Storage\Tests\Unit; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Storage\Connection\ConnectionInterface; diff --git a/Storage/tests/Unit/ObjectIteratorTest.php b/Storage/tests/Unit/ObjectIteratorTest.php index 0001bada013d..0ac70b9df93f 100644 --- a/Storage/tests/Unit/ObjectIteratorTest.php +++ b/Storage/tests/Unit/ObjectIteratorTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Storage; +namespace Google\Cloud\Storage\Tests\Unit; use Google\Cloud\Storage\ObjectIterator; use Google\Cloud\Storage\ObjectPageIterator; diff --git a/Storage/tests/Unit/ObjectPageIteratorTest.php b/Storage/tests/Unit/ObjectPageIteratorTest.php index 421f4d076827..1c5b82dadf2b 100644 --- a/Storage/tests/Unit/ObjectPageIteratorTest.php +++ b/Storage/tests/Unit/ObjectPageIteratorTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Storage; +namespace Google\Cloud\Storage\Tests\Unit; use Google\Cloud\Storage\ObjectPageIterator; use PHPUnit\Framework\TestCase; diff --git a/Storage/tests/Unit/RequesterPaysTest.php b/Storage/tests/Unit/RequesterPaysTest.php index ffb07a900eec..d24956508d49 100644 --- a/Storage/tests/Unit/RequesterPaysTest.php +++ b/Storage/tests/Unit/RequesterPaysTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Storage; +namespace Google\Cloud\Storage\Tests\Unit; use Prophecy\Argument; use Google\Cloud\Core\RequestWrapper; diff --git a/Storage/tests/Unit/StorageClientTest.php b/Storage/tests/Unit/StorageClientTest.php index c492adeef3c2..6ff471f476f6 100644 --- a/Storage/tests/Unit/StorageClientTest.php +++ b/Storage/tests/Unit/StorageClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Storage; +namespace Google\Cloud\Storage\Tests\Unit; use Google\Cloud\Core\Timestamp; use Google\Cloud\Core\Upload\SignedUrlUploader; diff --git a/Storage/tests/Unit/StorageObjectTest.php b/Storage/tests/Unit/StorageObjectTest.php index 83d4ca1a65df..aa5a5e28125c 100644 --- a/Storage/tests/Unit/StorageObjectTest.php +++ b/Storage/tests/Unit/StorageObjectTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Storage; +namespace Google\Cloud\Storage\Tests\Unit; use Google\Cloud\Core\Exception\NotFoundException; use Google\Cloud\Core\RequestWrapper; diff --git a/Trace/tests/System/BasicTest.php b/Trace/tests/System/BasicTest.php index 621ef1eaf31b..5337cbffd4d8 100644 --- a/Trace/tests/System/BasicTest.php +++ b/Trace/tests/System/BasicTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Trace; +namespace Google\Cloud\Trace\Tests\System; use Google\Cloud\Core\ExponentialBackoff; use Google\Cloud\Trace\Annotation; diff --git a/Trace/tests/Unit/AnnotationTest.php b/Trace/tests/Unit/AnnotationTest.php index 22e8644184b5..0fe702f33bb1 100644 --- a/Trace/tests/Unit/AnnotationTest.php +++ b/Trace/tests/Unit/AnnotationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace; +namespace Google\Cloud\Trace\Tests\Unit; use Google\Cloud\Trace\Annotation; use PHPUnit\Framework\TestCase; diff --git a/Trace/tests/Unit/AttributeTraitTest.php b/Trace/tests/Unit/AttributeTraitTest.php index 6e4c8fceb5a4..ad42ebd1189b 100644 --- a/Trace/tests/Unit/AttributeTraitTest.php +++ b/Trace/tests/Unit/AttributeTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace; +namespace Google\Cloud\Trace\Tests\Unit; use Google\Cloud\Trace\Attributes; use Google\Cloud\Trace\AttributeTrait; diff --git a/Trace/tests/Unit/AttributesTest.php b/Trace/tests/Unit/AttributesTest.php index 0bbf7161ea7d..a53024e057c0 100644 --- a/Trace/tests/Unit/AttributesTest.php +++ b/Trace/tests/Unit/AttributesTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace; +namespace Google\Cloud\Trace\Tests\Unit; use Google\Cloud\Trace\Attributes; use PHPUnit\Framework\TestCase; diff --git a/Trace/tests/Unit/Connection/RestTest.php b/Trace/tests/Unit/Connection/RestTest.php index 771e53a92ff0..1284d67eedd0 100644 --- a/Trace/tests/Unit/Connection/RestTest.php +++ b/Trace/tests/Unit/Connection/RestTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace\Connection; +namespace Google\Cloud\Trace\Tests\Unit\Connection; use Google\Cloud\Trace\Connection\Rest; use Google\Cloud\Core\RequestBuilder; diff --git a/Trace/tests/Unit/LinkTest.php b/Trace/tests/Unit/LinkTest.php index 014f81befc1d..f87f92a7a073 100644 --- a/Trace/tests/Unit/LinkTest.php +++ b/Trace/tests/Unit/LinkTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace; +namespace Google\Cloud\Trace\Tests\Unit; use Google\Cloud\Trace\Link; use PHPUnit\Framework\TestCase; diff --git a/Trace/tests/Unit/MessageEventTest.php b/Trace/tests/Unit/MessageEventTest.php index 463a75e4751b..3944943ac0ad 100644 --- a/Trace/tests/Unit/MessageEventTest.php +++ b/Trace/tests/Unit/MessageEventTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace; +namespace Google\Cloud\Trace\Tests\Unit; use Google\Cloud\Trace\MessageEvent; use PHPUnit\Framework\TestCase; diff --git a/Trace/tests/Unit/SpanTest.php b/Trace/tests/Unit/SpanTest.php index 51d5d635a2d6..118ffffde0d0 100644 --- a/Trace/tests/Unit/SpanTest.php +++ b/Trace/tests/Unit/SpanTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace; +namespace Google\Cloud\Trace\Tests\Unit; use Google\Cloud\Trace\Span; use PHPUnit\Framework\TestCase; diff --git a/Trace/tests/Unit/StackTraceTest.php b/Trace/tests/Unit/StackTraceTest.php index 2a74a43cbdbb..6a694b2aa925 100644 --- a/Trace/tests/Unit/StackTraceTest.php +++ b/Trace/tests/Unit/StackTraceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace; +namespace Google\Cloud\Trace\Tests\Unit; use Google\Cloud\Trace\StackTrace; use PHPUnit\Framework\TestCase; diff --git a/Trace/tests/Unit/StatusTest.php b/Trace/tests/Unit/StatusTest.php index 8532fe0d53fe..1f597b3e32e4 100644 --- a/Trace/tests/Unit/StatusTest.php +++ b/Trace/tests/Unit/StatusTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace; +namespace Google\Cloud\Trace\Tests\Unit; use Google\Cloud\Trace\Status; use PHPUnit\Framework\TestCase; diff --git a/Trace/tests/Unit/TimestampTraitTest.php b/Trace/tests/Unit/TimestampTraitTest.php index 514992e9c696..bed050e803f6 100644 --- a/Trace/tests/Unit/TimestampTraitTest.php +++ b/Trace/tests/Unit/TimestampTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace; +namespace Google\Cloud\Trace\Tests\Unit; use Google\Cloud\Trace\TimestampTrait; use PHPUnit\Framework\TestCase; diff --git a/Trace/tests/Unit/TraceClientTest.php b/Trace/tests/Unit/TraceClientTest.php index 53082c612428..d367ce735806 100644 --- a/Trace/tests/Unit/TraceClientTest.php +++ b/Trace/tests/Unit/TraceClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace; +namespace Google\Cloud\Trace\Tests\Unit; use Google\Cloud\Trace\Connection\ConnectionInterface; use Google\Cloud\Trace\Trace; diff --git a/Trace/tests/Unit/TraceTest.php b/Trace/tests/Unit/TraceTest.php index 7ecdf807b780..7895729f06f5 100644 --- a/Trace/tests/Unit/TraceTest.php +++ b/Trace/tests/Unit/TraceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Trace; +namespace Google\Cloud\Trace\Tests\Unit; use Google\Cloud\Trace\Connection\ConnectionInterface; use Google\Cloud\Trace\Trace; diff --git a/Translate/tests/System/TranslateTest.php b/Translate/tests/System/TranslateTest.php index bbd053ee8976..afd95cc1e4c1 100644 --- a/Translate/tests/System/TranslateTest.php +++ b/Translate/tests/System/TranslateTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Translate; +namespace Google\Cloud\Translate\Tests\System; /** * @group translate diff --git a/Translate/tests/System/TranslateTestCase.php b/Translate/tests/System/TranslateTestCase.php index d0bb3b7cbcce..513bd35911aa 100644 --- a/Translate/tests/System/TranslateTestCase.php +++ b/Translate/tests/System/TranslateTestCase.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Translate; +namespace Google\Cloud\Translate\Tests\System; use Google\Cloud\Translate\TranslateClient; use PHPUnit\Framework\TestCase; diff --git a/Translate/tests/Unit/Connection/RestTest.php b/Translate/tests/Unit/Connection/RestTest.php index d3d5a47aeb3d..0a35108df7ea 100644 --- a/Translate/tests/Unit/Connection/RestTest.php +++ b/Translate/tests/Unit/Connection/RestTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Translate\Connection; +namespace Google\Cloud\Translate\Tests\Unit\Connection; use Google\Cloud\Core\RequestBuilder; use Google\Cloud\Core\RequestWrapper; diff --git a/Translate/tests/Unit/TranslateClientTest.php b/Translate/tests/Unit/TranslateClientTest.php index ff4d64a365ce..cb573d382ee6 100644 --- a/Translate/tests/Unit/TranslateClientTest.php +++ b/Translate/tests/Unit/TranslateClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Translate; +namespace Google\Cloud\Translate\Tests\Unit; use Google\Cloud\Translate\Connection\ConnectionInterface; use Google\Cloud\Translate\TranslateClient; diff --git a/Vision/tests/System/AnnotationsTest.php b/Vision/tests/System/AnnotationsTest.php index 2454ae059499..04651e50d81b 100644 --- a/Vision/tests/System/AnnotationsTest.php +++ b/Vision/tests/System/AnnotationsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Vision; +namespace Google\Cloud\Vision\Tests\System; use Google\Cloud\Vision\Annotation; use Google\Cloud\Vision\Annotation\CropHint; diff --git a/Vision/tests/System/VisionTestCase.php b/Vision/tests/System/VisionTestCase.php index 13d46c80dd28..06f89203b968 100644 --- a/Vision/tests/System/VisionTestCase.php +++ b/Vision/tests/System/VisionTestCase.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Vision; +namespace Google\Cloud\Vision\Tests\System; use Google\Cloud\Vision\VisionClient; use PHPUnit\Framework\TestCase; diff --git a/Vision/tests/Unit/Annotation/EntityTest.php b/Vision/tests/Unit/Annotation/EntityTest.php index 8319d69b6a84..a1252fbff3f1 100644 --- a/Vision/tests/Unit/Annotation/EntityTest.php +++ b/Vision/tests/Unit/Annotation/EntityTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Unit\Annotation; use Google\Cloud\Vision\Annotation\Entity; use PHPUnit\Framework\TestCase; diff --git a/Vision/tests/Unit/Annotation/Face/LandmarksTest.php b/Vision/tests/Unit/Annotation/Face/LandmarksTest.php index ab21e1357997..8b62dd088235 100644 --- a/Vision/tests/Unit/Annotation/Face/LandmarksTest.php +++ b/Vision/tests/Unit/Annotation/Face/LandmarksTest.php @@ -15,9 +15,9 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Unit\Annotation; -use Google\Cloud\Tests\Unit\Vision\Fixtures; +use Google\Cloud\Vision\Tests\Unit\Fixtures; use Google\Cloud\Vision\Annotation\Face\Landmarks; use PHPUnit\Framework\TestCase; diff --git a/Vision/tests/Unit/Annotation/FaceTest.php b/Vision/tests/Unit/Annotation/FaceTest.php index 73a30ed5e881..1a318b37c1c7 100644 --- a/Vision/tests/Unit/Annotation/FaceTest.php +++ b/Vision/tests/Unit/Annotation/FaceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Unit\Annotation; use Google\Cloud\Vision\Annotation\Face; use Google\Cloud\Vision\Annotation\Face\Landmarks; diff --git a/Vision/tests/Unit/Annotation/LikelihoodTraitTest.php b/Vision/tests/Unit/Annotation/LikelihoodTraitTest.php index 815b28b0c4f6..dbb27a48cb81 100644 --- a/Vision/tests/Unit/Annotation/LikelihoodTraitTest.php +++ b/Vision/tests/Unit/Annotation/LikelihoodTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Unit\Annotation; use Google\Cloud\Vision\Annotation\FeatureInterface; use Google\Cloud\Vision\Annotation\LikelihoodTrait; diff --git a/Vision/tests/Unit/Annotation/SafeSearchTest.php b/Vision/tests/Unit/Annotation/SafeSearchTest.php index e7284da91551..0289c64252bd 100644 --- a/Vision/tests/Unit/Annotation/SafeSearchTest.php +++ b/Vision/tests/Unit/Annotation/SafeSearchTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Unit\Annotation; use Google\Cloud\Vision\Annotation\SafeSearch; use PHPUnit\Framework\TestCase; diff --git a/Vision/tests/Unit/AnnotationTest.php b/Vision/tests/Unit/AnnotationTest.php index 88aaacda1e3a..0e0c97e3c81d 100644 --- a/Vision/tests/Unit/AnnotationTest.php +++ b/Vision/tests/Unit/AnnotationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision; +namespace Google\Cloud\Vision\Tests\Unit; use Google\Cloud\Vision\Annotation; use Google\Cloud\Vision\Annotation\CropHint; diff --git a/Vision/tests/Unit/Connection/RestTest.php b/Vision/tests/Unit/Connection/RestTest.php index 3396f868b60f..1cc4ce7925ca 100644 --- a/Vision/tests/Unit/Connection/RestTest.php +++ b/Vision/tests/Unit/Connection/RestTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision\Connection; +namespace Google\Cloud\Vision\Tests\Unit\Connection; use Google\Cloud\Core\RequestBuilder; use Google\Cloud\Core\RequestWrapper; diff --git a/Vision/tests/Unit/Fixtures.php b/Vision/tests/Unit/Fixtures.php index 2b2899f65fb4..1694fe10c588 100644 --- a/Vision/tests/Unit/Fixtures.php +++ b/Vision/tests/Unit/Fixtures.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision; +namespace Google\Cloud\Vision\Tests\Unit; class Fixtures { diff --git a/Vision/tests/Unit/ImageTest.php b/Vision/tests/Unit/ImageTest.php index fb88f4d0b0d1..53d72ff77bfd 100644 --- a/Vision/tests/Unit/ImageTest.php +++ b/Vision/tests/Unit/ImageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision; +namespace Google\Cloud\Vision\Tests\Unit; use Google\Cloud\Storage\StorageClient; use Google\Cloud\Vision\Image; diff --git a/Vision/tests/Unit/VisionClientTest.php b/Vision/tests/Unit/VisionClientTest.php index 8484ec5793d9..4ad983870405 100644 --- a/Vision/tests/Unit/VisionClientTest.php +++ b/Vision/tests/Unit/VisionClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision; +namespace Google\Cloud\Vision\Tests\Unit; use Google\Cloud\Vision\Annotation; use Google\Cloud\Vision\Connection\ConnectionInterface; diff --git a/composer.json b/composer.json index eb9cc6a76943..dccbf8275062 100644 --- a/composer.json +++ b/composer.json @@ -123,54 +123,28 @@ "psr-4": { "Google\\Cloud\\": "src", "Google\\Cloud\\Tests\\": "tests", - "Google\\Cloud\\Tests\\Common\\": "tests/common", - "Google\\Cloud\\Tests\\Perf\\": "tests/perf", - "Google\\Cloud\\Tests\\Snippets\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\": "tests/system", - "Google\\Cloud\\Tests\\Unit\\BigQuery\\": "BigQuery/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Bigtable\\": "Bigtable/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Container\\": "Container/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Core\\": "Core/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Dataproc\\": "Dataproc/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Datastore\\": "Datastore/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Debugger\\": "Debugger/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Dlp\\": "Dlp/tests/unit", - "Google\\Cloud\\Tests\\Unit\\ErrorReporting\\": "ErrorReporting/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Firestore\\": "Firestore/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Language\\": "Language/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Logging\\": "Logging/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Monitoring\\": "Monitoring/tests/unit", - "Google\\Cloud\\Tests\\Unit\\OsLogin\\": "OsLogin/tests/unit", - "Google\\Cloud\\Tests\\Unit\\PubSub\\": "PubSub/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Spanner\\": "Spanner/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Speech\\": "Speech/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Storage\\": "Storage/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Trace\\": "Trace/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Translate\\": "Translate/tests/unit", - "Google\\Cloud\\Tests\\Unit\\VideoIntelligence\\": "VideoIntelligence/tests/unit", - "Google\\Cloud\\Tests\\Unit\\Vision\\": "Vision/tests/unit", - "Google\\Cloud\\Tests\\System\\BigQuery\\": "BigQuery/tests/system", - "Google\\Cloud\\Tests\\System\\Bigtable\\": "Bigtable/tests/system", - "Google\\Cloud\\Tests\\System\\Container\\": "Container/tests/system", - "Google\\Cloud\\Tests\\System\\Core\\": "Core/tests/system", - "Google\\Cloud\\Tests\\System\\Dataproc\\": "Dataproc/tests/system", - "Google\\Cloud\\Tests\\System\\Datastore\\": "Datastore/tests/system", - "Google\\Cloud\\Tests\\System\\Debugger\\": "Debugger/tests/system", - "Google\\Cloud\\Tests\\System\\Dlp\\": "Dlp/tests/system", - "Google\\Cloud\\Tests\\System\\ErrorReporting\\": "ErrorReporting/tests/system", - "Google\\Cloud\\Tests\\System\\Firestore\\": "Firestore/tests/system", - "Google\\Cloud\\Tests\\System\\Language\\": "Language/tests/system", - "Google\\Cloud\\Tests\\System\\Logging\\": "Logging/tests/system", - "Google\\Cloud\\Tests\\System\\Monitoring\\": "Monitoring/tests/system", - "Google\\Cloud\\Tests\\System\\OsLogin\\": "OsLogin/tests/system", - "Google\\Cloud\\Tests\\System\\PubSub\\": "PubSub/tests/system", - "Google\\Cloud\\Tests\\System\\Spanner\\": "Spanner/tests/system", - "Google\\Cloud\\Tests\\System\\Speech\\": "Speech/tests/system", - "Google\\Cloud\\Tests\\System\\Storage\\": "Storage/tests/system", - "Google\\Cloud\\Tests\\System\\Trace\\": "Trace/tests/system", - "Google\\Cloud\\Tests\\System\\Translate\\": "Translate/tests/system", - "Google\\Cloud\\Tests\\System\\VideoIntelligence\\": "VideoIntelligence/tests/system", - "Google\\Cloud\\Tests\\System\\Vision\\": "Vision/tests/system" + "Google\\Cloud\\BigQuery\\Tests\\": "BigQuery/tests", + "Google\\Cloud\\Bigtable\\Tests\\": "Bigtable/tests", + "Google\\Cloud\\Container\\Tests\\": "Container/tests", + "Google\\Cloud\\Core\\Tests\\": "Core/tests", + "Google\\Cloud\\Dataproc\\Tests\\": "Dataproc/tests", + "Google\\Cloud\\Datastore\\Tests\\": "Datastore/tests", + "Google\\Cloud\\Debugger\\Tests\\": "Debugger/tests", + "Google\\Cloud\\Dlp\\Tests\\": "Dlp/tests", + "Google\\Cloud\\ErrorReporting\\Tests\\": "ErrorReporting/tests", + "Google\\Cloud\\Firestore\\Tests\\": "Firestore/tests", + "Google\\Cloud\\Language\\Tests\\": "Language/tests", + "Google\\Cloud\\Logging\\Tests\\": "Logging/tests", + "Google\\Cloud\\Monitoring\\Tests\\": "Monitoring/tests", + "Google\\Cloud\\OsLogin\\Tests\\": "OsLogin/tests", + "Google\\Cloud\\PubSub\\Tests\\": "PubSub/tests", + "Google\\Cloud\\Spanner\\Tests\\": "Spanner/tests", + "Google\\Cloud\\Speech\\Tests\\": "Speech/tests", + "Google\\Cloud\\Storage\\Tests\\": "Storage/tests", + "Google\\Cloud\\Trace\\Tests\\": "Trace/tests", + "Google\\Cloud\\Translate\\Tests\\": "Translate/tests", + "Google\\Cloud\\VideoIntelligence\\Tests\\": "VideoIntelligence/tests", + "Google\\Cloud\\Vision\\Tests\\": "Vision/tests" }, "classmap": [ "tests/conformance-fixtures" @@ -194,4 +168,4 @@ ] } } -} \ No newline at end of file +} diff --git a/phpunit-snippets.xml.dist b/phpunit-snippets.xml.dist index adf4adbeb5a3..7128ae461909 100644 --- a/phpunit-snippets.xml.dist +++ b/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - */tests/snippets + */tests/Snippet diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 046b30b6942b..46a81d77b410 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - */tests/unit + */tests/Unit diff --git a/tests/perf/BigQueryTest.php b/tests/Perf/BigQueryTest.php similarity index 100% rename from tests/perf/BigQueryTest.php rename to tests/Perf/BigQueryTest.php diff --git a/tests/perf/LoggingPerfTest.php b/tests/Perf/LoggingPerfTest.php similarity index 100% rename from tests/perf/LoggingPerfTest.php rename to tests/Perf/LoggingPerfTest.php diff --git a/tests/perf/README.md b/tests/Perf/README.md similarity index 100% rename from tests/perf/README.md rename to tests/Perf/README.md diff --git a/tests/perf/bootstrap.php b/tests/Perf/bootstrap.php similarity index 100% rename from tests/perf/bootstrap.php rename to tests/Perf/bootstrap.php diff --git a/tests/perf/fixtures/bigquery.json b/tests/Perf/fixtures/bigquery.json similarity index 100% rename from tests/perf/fixtures/bigquery.json rename to tests/Perf/fixtures/bigquery.json diff --git a/tests/snippets/bootstrap.php b/tests/Snippet/bootstrap.php similarity index 100% rename from tests/snippets/bootstrap.php rename to tests/Snippet/bootstrap.php diff --git a/tests/snippets/keyfile-stub.json b/tests/Snippet/keyfile-stub.json similarity index 100% rename from tests/snippets/keyfile-stub.json rename to tests/Snippet/keyfile-stub.json diff --git a/tests/system/ServiceWhitelist/WhitelistTest.php b/tests/System/ServiceWhitelist/WhitelistTest.php similarity index 100% rename from tests/system/ServiceWhitelist/WhitelistTest.php rename to tests/System/ServiceWhitelist/WhitelistTest.php diff --git a/tests/system/bootstrap.php b/tests/System/bootstrap.php similarity index 100% rename from tests/system/bootstrap.php rename to tests/System/bootstrap.php diff --git a/tests/unit/JsonFileTest.php b/tests/Unit/JsonFileTest.php similarity index 100% rename from tests/unit/JsonFileTest.php rename to tests/Unit/JsonFileTest.php diff --git a/tests/unit/bootstrap.php b/tests/Unit/bootstrap.php similarity index 100% rename from tests/unit/bootstrap.php rename to tests/Unit/bootstrap.php diff --git a/tests/unit/fixtures/schema/composer.json.schema b/tests/Unit/fixtures/schema/composer.json.schema similarity index 100% rename from tests/unit/fixtures/schema/composer.json.schema rename to tests/Unit/fixtures/schema/composer.json.schema diff --git a/tests/unit/fixtures/schema/manifest.json.schema b/tests/Unit/fixtures/schema/manifest.json.schema similarity index 100% rename from tests/unit/fixtures/schema/manifest.json.schema rename to tests/Unit/fixtures/schema/manifest.json.schema diff --git a/tests/unit/fixtures/schema/toc.json.schema b/tests/Unit/fixtures/schema/toc.json.schema similarity index 100% rename from tests/unit/fixtures/schema/toc.json.schema rename to tests/Unit/fixtures/schema/toc.json.schema From 2e80b36ea589f28b309df7c13bda91710fd9c601 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Mon, 5 Feb 2018 14:46:59 -0800 Subject: [PATCH 26/59] Update phpunit files --- BigQuery/phpunit-snippets.xml.dist | 4 ++-- BigQuery/phpunit-system.xml.dist | 4 ++-- BigQuery/phpunit.xml.dist | 4 ++-- Bigtable/phpunit-snippets.xml.dist | 4 ++-- Bigtable/phpunit-system.xml.dist | 4 ++-- Bigtable/phpunit.xml.dist | 4 ++-- Container/phpunit-snippets.xml.dist | 4 ++-- Container/phpunit-system.xml.dist | 4 ++-- Container/phpunit.xml.dist | 4 ++-- Core/phpunit-snippets.xml.dist | 4 ++-- Core/phpunit-system.xml.dist | 4 ++-- Core/phpunit.xml.dist | 4 ++-- Dataproc/phpunit-snippets.xml.dist | 4 ++-- Dataproc/phpunit-system.xml.dist | 4 ++-- Dataproc/phpunit.xml.dist | 4 ++-- Datastore/phpunit-snippets.xml.dist | 4 ++-- Datastore/phpunit-system.xml.dist | 4 ++-- Datastore/phpunit.xml.dist | 4 ++-- Debugger/phpunit-snippets.xml.dist | 4 ++-- Debugger/phpunit-system.xml.dist | 4 ++-- Debugger/phpunit.xml.dist | 4 ++-- Dlp/phpunit-snippets.xml.dist | 4 ++-- Dlp/phpunit-system.xml.dist | 4 ++-- Dlp/phpunit.xml.dist | 4 ++-- ErrorReporting/phpunit-snippets.xml.dist | 4 ++-- ErrorReporting/phpunit-system.xml.dist | 4 ++-- ErrorReporting/phpunit.xml.dist | 4 ++-- Firestore/phpunit-snippets.xml.dist | 4 ++-- Firestore/phpunit-system.xml.dist | 4 ++-- Firestore/phpunit.xml.dist | 4 ++-- Language/phpunit-snippets.xml.dist | 4 ++-- Language/phpunit-system.xml.dist | 4 ++-- Language/phpunit.xml.dist | 4 ++-- Logging/phpunit-snippets.xml.dist | 4 ++-- Logging/phpunit-system.xml.dist | 4 ++-- Logging/phpunit.xml.dist | 4 ++-- Monitoring/phpunit-snippets.xml.dist | 4 ++-- Monitoring/phpunit-system.xml.dist | 4 ++-- Monitoring/phpunit.xml.dist | 4 ++-- OsLogin/phpunit-snippets.xml.dist | 4 ++-- OsLogin/phpunit-system.xml.dist | 4 ++-- OsLogin/phpunit.xml.dist | 4 ++-- PubSub/phpunit-snippets.xml.dist | 4 ++-- PubSub/phpunit-system.xml.dist | 4 ++-- PubSub/phpunit.xml.dist | 4 ++-- Spanner/phpunit-snippets.xml.dist | 4 ++-- Spanner/phpunit-system.xml.dist | 4 ++-- Spanner/phpunit.xml.dist | 4 ++-- Speech/phpunit-snippets.xml.dist | 4 ++-- Speech/phpunit-system.xml.dist | 4 ++-- Speech/phpunit.xml.dist | 4 ++-- Storage/phpunit-snippets.xml.dist | 4 ++-- Storage/phpunit-system.xml.dist | 4 ++-- Storage/phpunit.xml.dist | 4 ++-- Trace/phpunit-snippets.xml.dist | 4 ++-- Trace/phpunit-system.xml.dist | 4 ++-- Trace/phpunit.xml.dist | 4 ++-- Translate/phpunit-snippets.xml.dist | 4 ++-- Translate/phpunit-system.xml.dist | 4 ++-- Translate/phpunit.xml.dist | 4 ++-- VideoIntelligence/phpunit-snippets.xml.dist | 4 ++-- VideoIntelligence/phpunit-system.xml.dist | 4 ++-- VideoIntelligence/phpunit.xml.dist | 4 ++-- Vision/phpunit-snippets.xml.dist | 4 ++-- Vision/phpunit-system.xml.dist | 4 ++-- Vision/phpunit.xml.dist | 4 ++-- 66 files changed, 132 insertions(+), 132 deletions(-) diff --git a/BigQuery/phpunit-snippets.xml.dist b/BigQuery/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/BigQuery/phpunit-snippets.xml.dist +++ b/BigQuery/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/BigQuery/phpunit-system.xml.dist b/BigQuery/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/BigQuery/phpunit-system.xml.dist +++ b/BigQuery/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/BigQuery/phpunit.xml.dist b/BigQuery/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/BigQuery/phpunit.xml.dist +++ b/BigQuery/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Bigtable/phpunit-snippets.xml.dist b/Bigtable/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Bigtable/phpunit-snippets.xml.dist +++ b/Bigtable/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Bigtable/phpunit-system.xml.dist b/Bigtable/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Bigtable/phpunit-system.xml.dist +++ b/Bigtable/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Bigtable/phpunit.xml.dist b/Bigtable/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Bigtable/phpunit.xml.dist +++ b/Bigtable/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Container/phpunit-snippets.xml.dist b/Container/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Container/phpunit-snippets.xml.dist +++ b/Container/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Container/phpunit-system.xml.dist b/Container/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Container/phpunit-system.xml.dist +++ b/Container/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Container/phpunit.xml.dist b/Container/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Container/phpunit.xml.dist +++ b/Container/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Core/phpunit-snippets.xml.dist b/Core/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Core/phpunit-snippets.xml.dist +++ b/Core/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Core/phpunit-system.xml.dist b/Core/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Core/phpunit-system.xml.dist +++ b/Core/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Core/phpunit.xml.dist b/Core/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Core/phpunit.xml.dist +++ b/Core/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Dataproc/phpunit-snippets.xml.dist b/Dataproc/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Dataproc/phpunit-snippets.xml.dist +++ b/Dataproc/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Dataproc/phpunit-system.xml.dist b/Dataproc/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Dataproc/phpunit-system.xml.dist +++ b/Dataproc/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Dataproc/phpunit.xml.dist b/Dataproc/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Dataproc/phpunit.xml.dist +++ b/Dataproc/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Datastore/phpunit-snippets.xml.dist b/Datastore/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Datastore/phpunit-snippets.xml.dist +++ b/Datastore/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Datastore/phpunit-system.xml.dist b/Datastore/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Datastore/phpunit-system.xml.dist +++ b/Datastore/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Datastore/phpunit.xml.dist b/Datastore/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Datastore/phpunit.xml.dist +++ b/Datastore/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Debugger/phpunit-snippets.xml.dist b/Debugger/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Debugger/phpunit-snippets.xml.dist +++ b/Debugger/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Debugger/phpunit-system.xml.dist b/Debugger/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Debugger/phpunit-system.xml.dist +++ b/Debugger/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Debugger/phpunit.xml.dist b/Debugger/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Debugger/phpunit.xml.dist +++ b/Debugger/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Dlp/phpunit-snippets.xml.dist b/Dlp/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Dlp/phpunit-snippets.xml.dist +++ b/Dlp/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Dlp/phpunit-system.xml.dist b/Dlp/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Dlp/phpunit-system.xml.dist +++ b/Dlp/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Dlp/phpunit.xml.dist b/Dlp/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Dlp/phpunit.xml.dist +++ b/Dlp/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/ErrorReporting/phpunit-snippets.xml.dist b/ErrorReporting/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/ErrorReporting/phpunit-snippets.xml.dist +++ b/ErrorReporting/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/ErrorReporting/phpunit-system.xml.dist b/ErrorReporting/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/ErrorReporting/phpunit-system.xml.dist +++ b/ErrorReporting/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/ErrorReporting/phpunit.xml.dist b/ErrorReporting/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/ErrorReporting/phpunit.xml.dist +++ b/ErrorReporting/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Firestore/phpunit-snippets.xml.dist b/Firestore/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Firestore/phpunit-snippets.xml.dist +++ b/Firestore/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Firestore/phpunit-system.xml.dist b/Firestore/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Firestore/phpunit-system.xml.dist +++ b/Firestore/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Firestore/phpunit.xml.dist b/Firestore/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Firestore/phpunit.xml.dist +++ b/Firestore/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Language/phpunit-snippets.xml.dist b/Language/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Language/phpunit-snippets.xml.dist +++ b/Language/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Language/phpunit-system.xml.dist b/Language/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Language/phpunit-system.xml.dist +++ b/Language/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Language/phpunit.xml.dist b/Language/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Language/phpunit.xml.dist +++ b/Language/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Logging/phpunit-snippets.xml.dist b/Logging/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Logging/phpunit-snippets.xml.dist +++ b/Logging/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Logging/phpunit-system.xml.dist b/Logging/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Logging/phpunit-system.xml.dist +++ b/Logging/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Logging/phpunit.xml.dist b/Logging/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Logging/phpunit.xml.dist +++ b/Logging/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Monitoring/phpunit-snippets.xml.dist b/Monitoring/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Monitoring/phpunit-snippets.xml.dist +++ b/Monitoring/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Monitoring/phpunit-system.xml.dist b/Monitoring/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Monitoring/phpunit-system.xml.dist +++ b/Monitoring/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Monitoring/phpunit.xml.dist b/Monitoring/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Monitoring/phpunit.xml.dist +++ b/Monitoring/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/OsLogin/phpunit-snippets.xml.dist b/OsLogin/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/OsLogin/phpunit-snippets.xml.dist +++ b/OsLogin/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/OsLogin/phpunit-system.xml.dist b/OsLogin/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/OsLogin/phpunit-system.xml.dist +++ b/OsLogin/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/OsLogin/phpunit.xml.dist b/OsLogin/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/OsLogin/phpunit.xml.dist +++ b/OsLogin/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/PubSub/phpunit-snippets.xml.dist b/PubSub/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/PubSub/phpunit-snippets.xml.dist +++ b/PubSub/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/PubSub/phpunit-system.xml.dist b/PubSub/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/PubSub/phpunit-system.xml.dist +++ b/PubSub/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/PubSub/phpunit.xml.dist b/PubSub/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/PubSub/phpunit.xml.dist +++ b/PubSub/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Spanner/phpunit-snippets.xml.dist b/Spanner/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Spanner/phpunit-snippets.xml.dist +++ b/Spanner/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Spanner/phpunit-system.xml.dist b/Spanner/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Spanner/phpunit-system.xml.dist +++ b/Spanner/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Spanner/phpunit.xml.dist b/Spanner/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Spanner/phpunit.xml.dist +++ b/Spanner/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Speech/phpunit-snippets.xml.dist b/Speech/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Speech/phpunit-snippets.xml.dist +++ b/Speech/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Speech/phpunit-system.xml.dist b/Speech/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Speech/phpunit-system.xml.dist +++ b/Speech/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Speech/phpunit.xml.dist b/Speech/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Speech/phpunit.xml.dist +++ b/Speech/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Storage/phpunit-snippets.xml.dist b/Storage/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Storage/phpunit-snippets.xml.dist +++ b/Storage/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Storage/phpunit-system.xml.dist b/Storage/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Storage/phpunit-system.xml.dist +++ b/Storage/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Storage/phpunit.xml.dist b/Storage/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Storage/phpunit.xml.dist +++ b/Storage/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Trace/phpunit-snippets.xml.dist b/Trace/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Trace/phpunit-snippets.xml.dist +++ b/Trace/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Trace/phpunit-system.xml.dist b/Trace/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Trace/phpunit-system.xml.dist +++ b/Trace/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Trace/phpunit.xml.dist b/Trace/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Trace/phpunit.xml.dist +++ b/Trace/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Translate/phpunit-snippets.xml.dist b/Translate/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Translate/phpunit-snippets.xml.dist +++ b/Translate/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Translate/phpunit-system.xml.dist b/Translate/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Translate/phpunit-system.xml.dist +++ b/Translate/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Translate/phpunit.xml.dist b/Translate/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Translate/phpunit.xml.dist +++ b/Translate/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/VideoIntelligence/phpunit-snippets.xml.dist b/VideoIntelligence/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/VideoIntelligence/phpunit-snippets.xml.dist +++ b/VideoIntelligence/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/VideoIntelligence/phpunit-system.xml.dist b/VideoIntelligence/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/VideoIntelligence/phpunit-system.xml.dist +++ b/VideoIntelligence/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/VideoIntelligence/phpunit.xml.dist b/VideoIntelligence/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/VideoIntelligence/phpunit.xml.dist +++ b/VideoIntelligence/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit diff --git a/Vision/phpunit-snippets.xml.dist b/Vision/phpunit-snippets.xml.dist index 11e16bb94753..71e5bf96a35c 100644 --- a/Vision/phpunit-snippets.xml.dist +++ b/Vision/phpunit-snippets.xml.dist @@ -1,8 +1,8 @@ - + - tests/snippets + tests/Snippet diff --git a/Vision/phpunit-system.xml.dist b/Vision/phpunit-system.xml.dist index 2d9429943089..3b89f8d6d44d 100644 --- a/Vision/phpunit-system.xml.dist +++ b/Vision/phpunit-system.xml.dist @@ -1,8 +1,8 @@ - + - tests/system + tests/System diff --git a/Vision/phpunit.xml.dist b/Vision/phpunit.xml.dist index be49389175a8..ef42703546cb 100644 --- a/Vision/phpunit.xml.dist +++ b/Vision/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/unit + tests/Unit From b1c2cdb358ce523a5eec0d5cf555c05bcb0c8d42 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Mon, 5 Feb 2018 15:06:16 -0800 Subject: [PATCH 27/59] Update Core --- Core/{src => }/bin/google-cloud-batch | 8 ++++---- Core/composer.json | 4 +--- Core/tests/System/Batch/BatchRunnerTest.php | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) rename Core/{src => }/bin/google-cloud-batch (85%) diff --git a/Core/src/bin/google-cloud-batch b/Core/bin/google-cloud-batch similarity index 85% rename from Core/src/bin/google-cloud-batch rename to Core/bin/google-cloud-batch index a2cbad030388..b0114986908b 100755 --- a/Core/src/bin/google-cloud-batch +++ b/Core/bin/google-cloud-batch @@ -19,15 +19,15 @@ namespace Google\Cloud\Core\Batch; // Load the autoloader -if (file_exists(__DIR__ . '/../../../vendor/autoload.php')) { +if (file_exists(__DIR__ . '/../vendor/autoload.php')) { // Called from local git clone. - require_once __DIR__ . '/../../../vendor/autoload.php'; + require_once __DIR__ . '/../vendor/autoload.php'; } elseif (file_exists(__DIR__ . '/../../../autoload.php')) { // Called from google/cloud-core installation. require_once __DIR__ . '/../../../autoload.php'; -} elseif (file_exists(__DIR__ . '/../../../../../autoload.php')) { +} elseif (file_exists(__DIR__ . '/../../../../autoload.php')) { // Called from google/cloud installation. - require_once __DIR__ . '/../../../../../autoload.php'; + require_once __DIR__ . '/../../../../autoload.php'; } else { die('No autoloader found'); } diff --git a/Core/composer.json b/Core/composer.json index 714e2aaee511..973c14173e53 100644 --- a/Core/composer.json +++ b/Core/composer.json @@ -41,9 +41,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Core\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\Core\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\Core\\": "tests/system" + "Google\\Cloud\\Core\\Tests\\": "tests" } } } diff --git a/Core/tests/System/Batch/BatchRunnerTest.php b/Core/tests/System/Batch/BatchRunnerTest.php index 579266fb65b5..ab3aefe68b86 100644 --- a/Core/tests/System/Batch/BatchRunnerTest.php +++ b/Core/tests/System/Batch/BatchRunnerTest.php @@ -60,7 +60,7 @@ public static function setUpBeforeClass() @mkdir(self::$testDir); putenv('GOOGLE_CLOUD_BATCH_DAEMON_FAILURE_DIR=' . self::$testDir); $daemon_command = __DIR__ - . '/../../../../Core/src/bin/google-cloud-batch daemon'; + . '/../../../bin/google-cloud-batch daemon'; self::$commandFile = tempnam( sys_get_temp_dir(), 'batch-daemon-system-test' @@ -155,7 +155,7 @@ public function testSubmit() unlink(self::$commandFile); if (self::$run_daemon) { $retry_command = __DIR__ - . '/../../../../src/Core/bin/google-cloud-batch retry'; + . '/../../../bin/google-cloud-batch retry'; exec($retry_command); } else { // The in-memory implementation doesn't share the JobConfig with From d38d0400e9a889e233665e73b46e2547d4e7f4c6 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Wed, 21 Feb 2018 15:45:30 -0500 Subject: [PATCH 28/59] Update doc generator to work with API restructure. --- BigQuery/composer.json | 2 +- BigQuery/src/BigQueryClient.php | 1 + Bigtable/composer.json | 2 +- Container/composer.json | 2 +- Core/composer.json | 2 +- Dataproc/composer.json | 2 +- Datastore/composer.json | 2 +- Datastore/src/DatastoreClient.php | 1 + Debugger/composer.json | 2 +- Debugger/src/DebuggerClient.php | 1 + Dlp/composer.json | 2 +- ErrorReporting/composer.json | 2 +- Firestore/composer.json | 2 +- Firestore/src/FirestoreClient.php | 1 + Language/composer.json | 2 +- Language/src/LanguageClient.php | 1 + Logging/composer.json | 2 +- Logging/src/LoggingClient.php | 1 + Monitoring/composer.json | 2 +- OsLogin/composer.json | 2 +- PubSub/composer.json | 2 +- PubSub/src/PubSubClient.php | 1 + Spanner/composer.json | 2 +- Spanner/src/SpannerClient.php | 1 + Speech/composer.json | 2 +- Speech/src/SpeechClient.php | 1 + Storage/composer.json | 2 +- Storage/src/StorageClient.php | 1 + Trace/composer.json | 2 +- Trace/src/TraceClient.php | 2 + Translate/composer.json | 2 +- Translate/src/TranslateClient.php | 2 + VideoIntelligence/composer.json | 2 +- Vision/composer.json | 2 +- Vision/src/VisionClient.php | 1 + composer.json | 2 +- dev/src/DocGenerator/Command/Docs.php | 81 ++++++++++++++----- dev/src/DocGenerator/DocGenerator.php | 23 +++--- .../DocGenerator/FileListFilterIterator.php | 81 +++++++++++++++++++ dev/src/DocGenerator/Parser/CodeParser.php | 29 ++++--- .../DocGenerator/Parser/MarkdownParser.php | 1 + dev/src/DocGenerator/RegexFileFilter.php | 31 +++++++ dev/src/DocGenerator/Writer.php | 8 +- src/generated-code.md | 23 ------ 44 files changed, 247 insertions(+), 91 deletions(-) create mode 100644 dev/src/DocGenerator/FileListFilterIterator.php create mode 100644 dev/src/DocGenerator/RegexFileFilter.php delete mode 100644 src/generated-code.md diff --git a/BigQuery/composer.json b/BigQuery/composer.json index 4a6f1e06def9..b7b33bdb16f3 100644 --- a/BigQuery/composer.json +++ b/BigQuery/composer.json @@ -23,7 +23,7 @@ "displayName": "Google Cloud BigQuery", "id": "cloud-bigquery", "target": "GoogleCloudPlatform/google-cloud-php-bigquery.git", - "path": "src/BigQuery", + "path": "BigQuery/src", "entry": "BigQueryClient.php" } }, diff --git a/BigQuery/src/BigQueryClient.php b/BigQuery/src/BigQueryClient.php index 9e4656797694..e72dc43a6795 100644 --- a/BigQuery/src/BigQueryClient.php +++ b/BigQuery/src/BigQueryClient.php @@ -17,6 +17,7 @@ namespace Google\Cloud\BigQuery; +use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\BigQuery\Connection\ConnectionInterface; use Google\Cloud\BigQuery\Connection\Rest; use Google\Cloud\BigQuery\Exception\JobException; diff --git a/Bigtable/composer.json b/Bigtable/composer.json index d9f87b941d8c..a2ea6d8b1c85 100644 --- a/Bigtable/composer.json +++ b/Bigtable/composer.json @@ -17,7 +17,7 @@ "component": { "id": "cloud-bigtable", "target": "GoogleCloudPlatform/google-cloud-php-bigtable.git", - "path": "src/Bigtable", + "path": "Bigtable/src", "entry": null } }, diff --git a/Container/composer.json b/Container/composer.json index 5801da197aa3..f24246fdbe63 100644 --- a/Container/composer.json +++ b/Container/composer.json @@ -11,7 +11,7 @@ "extra": { "component": { "id": "cloud-container", - "path": "src/Container", + "path": "Container/src", "entry": null, "target": "GoogleCloudPlatform/google-cloud-php-container.git" } diff --git a/Core/composer.json b/Core/composer.json index 973c14173e53..6a495d186db9 100644 --- a/Core/composer.json +++ b/Core/composer.json @@ -27,7 +27,7 @@ "component": { "id": "cloud-core", "target": "GoogleCloudPlatform/google-cloud-php-core.git", - "path": "src/Core", + "path": "Core/src", "entry": "ServiceBuilder.php" } }, diff --git a/Dataproc/composer.json b/Dataproc/composer.json index ec12b030bf6e..024381ab4da4 100644 --- a/Dataproc/composer.json +++ b/Dataproc/composer.json @@ -11,7 +11,7 @@ "extra": { "component": { "id": "cloud-dataproc", - "path": "src/Dataproc", + "path": "Dataproc/src", "entry": null, "target": "GoogleCloudPlatform/google-cloud-php-dataproc.git" } diff --git a/Datastore/composer.json b/Datastore/composer.json index c00bf3b19bf7..106cc04d20e2 100644 --- a/Datastore/composer.json +++ b/Datastore/composer.json @@ -17,7 +17,7 @@ "component": { "id": "cloud-datastore", "target": "GoogleCloudPlatform/google-cloud-php-datastore.git", - "path": "src/Datastore", + "path": "Datastore/src", "entry": "DatastoreClient.php" } }, diff --git a/Datastore/src/DatastoreClient.php b/Datastore/src/DatastoreClient.php index e809c6c8ab1f..ee4288bb3280 100644 --- a/Datastore/src/DatastoreClient.php +++ b/Datastore/src/DatastoreClient.php @@ -18,6 +18,7 @@ namespace Google\Cloud\Datastore; use DomainException; +use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Core\ArrayTrait; use Google\Cloud\Core\ClientTrait; use Google\Cloud\Core\Int64; diff --git a/Debugger/composer.json b/Debugger/composer.json index 539ed5aee794..3a346c6bf8d7 100644 --- a/Debugger/composer.json +++ b/Debugger/composer.json @@ -13,7 +13,7 @@ "component": { "id": "cloud-debugger", "target": "GoogleCloudPlatform/google-cloud-php-debugger.git", - "path": "src/Debugger", + "path": "Debugger/src", "entry": "DebuggerClient.php" } }, diff --git a/Debugger/src/DebuggerClient.php b/Debugger/src/DebuggerClient.php index 44f87e8fa464..11fb307b0801 100644 --- a/Debugger/src/DebuggerClient.php +++ b/Debugger/src/DebuggerClient.php @@ -20,6 +20,7 @@ use Google\Cloud\Core\ClientTrait; use Google\Cloud\Debugger\Connection\ConnectionInterface; use Google\Cloud\Debugger\Connection\Rest; +use Psr\Cache\CacheItemPoolInterface; /** * Google Stackdriver Debugger allows you to collect variable data from a live application diff --git a/Dlp/composer.json b/Dlp/composer.json index bce14dc2c0ad..10e1633401eb 100644 --- a/Dlp/composer.json +++ b/Dlp/composer.json @@ -17,7 +17,7 @@ "component": { "id": "cloud-dlp", "target": "GoogleCloudPlatform/google-cloud-php-dlp.git", - "path": "src/Dlp", + "path": "Dlp/src", "entry": null } }, diff --git a/ErrorReporting/composer.json b/ErrorReporting/composer.json index d3e409af84de..d1565b4fa473 100644 --- a/ErrorReporting/composer.json +++ b/ErrorReporting/composer.json @@ -16,7 +16,7 @@ "component": { "id": "cloud-error-reporting", "target": "GoogleCloudPlatform/google-cloud-php-errorreporting.git", - "path": "src/ErrorReporting", + "path": "ErrorReporting/src", "entry": null } }, diff --git a/Firestore/composer.json b/Firestore/composer.json index a47e2c7a2c4d..273b958110bd 100644 --- a/Firestore/composer.json +++ b/Firestore/composer.json @@ -24,7 +24,7 @@ "component": { "id": "cloud-firestore", "target": "GoogleCloudPlatform/google-cloud-php-firestore.git", - "path": "src/Firestore", + "path": "Firestore/src", "entry": "FirestoreClient.php" } }, diff --git a/Firestore/src/FirestoreClient.php b/Firestore/src/FirestoreClient.php index 40cb13f56676..687b5df1cc19 100644 --- a/Firestore/src/FirestoreClient.php +++ b/Firestore/src/FirestoreClient.php @@ -28,6 +28,7 @@ use Google\Cloud\Core\Retry; use Google\Cloud\Core\ValidateTrait; use Google\Cloud\Firestore\Connection\Grpc; +use Psr\Cache\CacheItemPoolInterface; /** * Cloud Firestore is a flexible, scalable, realtime database for mobile, web, and server development. diff --git a/Language/composer.json b/Language/composer.json index c642c5ceb029..ae50c361154c 100644 --- a/Language/composer.json +++ b/Language/composer.json @@ -25,7 +25,7 @@ "component": { "id": "cloud-language", "target": "GoogleCloudPlatform/google-cloud-php-language.git", - "path": "src/Language", + "path": "Language/src", "entry": "LanguageClient.php" } }, diff --git a/Language/src/LanguageClient.php b/Language/src/LanguageClient.php index b6891f1e97ff..81d62d50bb4d 100644 --- a/Language/src/LanguageClient.php +++ b/Language/src/LanguageClient.php @@ -17,6 +17,7 @@ namespace Google\Cloud\Language; +use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Core\ClientTrait; use Google\Cloud\Core\RetryDeciderTrait; use Google\Cloud\Language\Connection\ConnectionInterface; diff --git a/Logging/composer.json b/Logging/composer.json index 4d22e5eb5d4b..3d101e823c3f 100644 --- a/Logging/composer.json +++ b/Logging/composer.json @@ -26,7 +26,7 @@ "component": { "id": "cloud-logging", "target": "GoogleCloudPlatform/google-cloud-php-logging.git", - "path": "src/Logging", + "path": "Logging/src", "entry": "LoggingClient.php" } }, diff --git a/Logging/src/LoggingClient.php b/Logging/src/LoggingClient.php index 7b5dbb7606d2..eacfddef7860 100644 --- a/Logging/src/LoggingClient.php +++ b/Logging/src/LoggingClient.php @@ -17,6 +17,7 @@ namespace Google\Cloud\Logging; +use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Core\ArrayTrait; use Google\Cloud\Core\Batch\ClosureSerializerInterface; use Google\Cloud\Core\ClientTrait; diff --git a/Monitoring/composer.json b/Monitoring/composer.json index 33126b78b170..69e46cb38aa0 100644 --- a/Monitoring/composer.json +++ b/Monitoring/composer.json @@ -14,7 +14,7 @@ "component": { "id": "cloud-monitoring", "target": "GoogleCloudPlatform/google-cloud-php-monitoring.git", - "path": "src/Monitoring", + "path": "Monitoring/src", "entry": null } }, diff --git a/OsLogin/composer.json b/OsLogin/composer.json index c418be680894..42ee9c46ee17 100644 --- a/OsLogin/composer.json +++ b/OsLogin/composer.json @@ -11,7 +11,7 @@ "extra": { "component": { "id": "cloud-oslogin", - "path": "src/OsLogin", + "path": "OsLogin/src", "entry": null, "target": "GoogleCloudPlatform/google-cloud-php-oslogin.git" } diff --git a/PubSub/composer.json b/PubSub/composer.json index 21fa6b906103..3d268bc79be4 100644 --- a/PubSub/composer.json +++ b/PubSub/composer.json @@ -23,7 +23,7 @@ "component": { "id": "cloud-pubsub", "target": "GoogleCloudPlatform/google-cloud-php-pubsub.git", - "path": "src/PubSub", + "path": "PubSub/src", "entry": "PubSubClient.php" } }, diff --git a/PubSub/src/PubSubClient.php b/PubSub/src/PubSubClient.php index 6539ad37ae6c..f383c18655da 100644 --- a/PubSub/src/PubSubClient.php +++ b/PubSub/src/PubSubClient.php @@ -17,6 +17,7 @@ namespace Google\Cloud\PubSub; +use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Core\ArrayTrait; use Google\Cloud\Core\ClientTrait; use Google\Cloud\Core\Duration; diff --git a/Spanner/composer.json b/Spanner/composer.json index 142d80aa64c3..2db2f155347b 100644 --- a/Spanner/composer.json +++ b/Spanner/composer.json @@ -23,7 +23,7 @@ "component": { "id": "cloud-spanner", "target": "GoogleCloudPlatform/google-cloud-php-spanner.git", - "path": "src/Spanner", + "path": "Spanner/src", "entry": "SpannerClient.php" } }, diff --git a/Spanner/src/SpannerClient.php b/Spanner/src/SpannerClient.php index 9e1d198ab44c..def430d98d3f 100644 --- a/Spanner/src/SpannerClient.php +++ b/Spanner/src/SpannerClient.php @@ -17,6 +17,7 @@ namespace Google\Cloud\Spanner; +use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Core\ArrayTrait; use Google\Cloud\Core\ClientTrait; use Google\Cloud\Core\Exception\GoogleException; diff --git a/Speech/composer.json b/Speech/composer.json index c1234ea4bde3..f13a20aab636 100644 --- a/Speech/composer.json +++ b/Speech/composer.json @@ -24,7 +24,7 @@ "component": { "id": "cloud-speech", "target": "GoogleCloudPlatform/google-cloud-php-speech.git", - "path": "src/Speech", + "path": "Speech/src", "entry": "SpeechClient.php" } }, diff --git a/Speech/src/SpeechClient.php b/Speech/src/SpeechClient.php index b904084d78e9..8189235a3691 100644 --- a/Speech/src/SpeechClient.php +++ b/Speech/src/SpeechClient.php @@ -17,6 +17,7 @@ namespace Google\Cloud\Speech; +use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Core\ClientTrait; use Google\Cloud\Speech\Connection\ConnectionInterface; use Google\Cloud\Speech\Connection\Rest; diff --git a/Storage/composer.json b/Storage/composer.json index a14052dc030c..e9655688be8c 100644 --- a/Storage/composer.json +++ b/Storage/composer.json @@ -23,7 +23,7 @@ "component": { "id": "cloud-storage", "target": "GoogleCloudPlatform/google-cloud-php-storage.git", - "path": "src/Storage", + "path": "Storage/src", "entry": "StorageClient.php" } }, diff --git a/Storage/src/StorageClient.php b/Storage/src/StorageClient.php index cd50cf9fcd9c..e39fab782613 100644 --- a/Storage/src/StorageClient.php +++ b/Storage/src/StorageClient.php @@ -17,6 +17,7 @@ namespace Google\Cloud\Storage; +use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Core\ArrayTrait; use Google\Cloud\Core\ClientTrait; use Google\Cloud\Core\Exception\GoogleException; diff --git a/Trace/composer.json b/Trace/composer.json index 793262dc6ac5..9f1cdb4b1d1d 100644 --- a/Trace/composer.json +++ b/Trace/composer.json @@ -27,7 +27,7 @@ "component": { "id": "cloud-trace", "target": "GoogleCloudPlatform/google-cloud-php-trace.git", - "path": "src/Trace", + "path": "Trace/src", "entry": "TraceClient.php" } }, diff --git a/Trace/src/TraceClient.php b/Trace/src/TraceClient.php index 57e5d29a7bf9..218511039c33 100644 --- a/Trace/src/TraceClient.php +++ b/Trace/src/TraceClient.php @@ -17,6 +17,7 @@ namespace Google\Cloud\Trace; +use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Core\ClientTrait; use Google\Cloud\Core\Iterator\ItemIterator; use Google\Cloud\Core\Iterator\PageIterator; @@ -24,6 +25,7 @@ use Google\Cloud\Trace\Connection\Rest; use Google\Cloud\Trace\Reporter\AsyncReporter; use Google\Cloud\Trace\Reporter\ReporterInterface; +use Psr\Cache\CacheItemPoolInterface; /** * Google Stackdriver Trace allows you to collect latency data from diff --git a/Translate/composer.json b/Translate/composer.json index 6e83c343743c..03ffc46434c2 100644 --- a/Translate/composer.json +++ b/Translate/composer.json @@ -17,7 +17,7 @@ "component": { "id": "cloud-translate", "target": "GoogleCloudPlatform/google-cloud-php-translate.git", - "path": "src/Translate", + "path": "Translate/src", "entry": "TranslateClient.php" } }, diff --git a/Translate/src/TranslateClient.php b/Translate/src/TranslateClient.php index de1f5ab51deb..7ab730692ac9 100644 --- a/Translate/src/TranslateClient.php +++ b/Translate/src/TranslateClient.php @@ -17,9 +17,11 @@ namespace Google\Cloud\Translate; +use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Core\ClientTrait; use Google\Cloud\Translate\Connection\ConnectionInterface; use Google\Cloud\Translate\Connection\Rest; +use Psr\Cache\CacheItemPoolInterface; /** * Google Cloud Translation provides the ability to dynamically translate diff --git a/VideoIntelligence/composer.json b/VideoIntelligence/composer.json index 7242aeacd909..f745cf3c3112 100644 --- a/VideoIntelligence/composer.json +++ b/VideoIntelligence/composer.json @@ -14,7 +14,7 @@ "component": { "id": "cloud-videointelligence", "target": "GoogleCloudPlatform/google-cloud-php-videointelligence.git", - "path": "src/VideoIntelligence", + "path": "VideoIntelligence/src", "entry": null } }, diff --git a/Vision/composer.json b/Vision/composer.json index 0909e1aeebfc..810d6371aaf7 100644 --- a/Vision/composer.json +++ b/Vision/composer.json @@ -25,7 +25,7 @@ "component": { "id": "cloud-vision", "target": "GoogleCloudPlatform/google-cloud-php-vision.git", - "path": "src/Vision", + "path": "Vision/src", "entry": "VisionClient.php" } }, diff --git a/Vision/src/VisionClient.php b/Vision/src/VisionClient.php index e1476a829edf..e514a3532c38 100644 --- a/Vision/src/VisionClient.php +++ b/Vision/src/VisionClient.php @@ -17,6 +17,7 @@ namespace Google\Cloud\Vision; +use Google\Auth\FetchAuthTokenInterface; use Google\Cloud\Core\ClientTrait; use Google\Cloud\Core\ValidateTrait; use Google\Cloud\Storage\StorageObject; diff --git a/composer.json b/composer.json index dccbf8275062..119b3a0c3214 100644 --- a/composer.json +++ b/composer.json @@ -121,7 +121,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\": "src", + "Google\\Cloud\\Dev\\": "Dev/src", "Google\\Cloud\\Tests\\": "tests", "Google\\Cloud\\BigQuery\\Tests\\": "BigQuery/tests", "Google\\Cloud\\Bigtable\\Tests\\": "Bigtable/tests", diff --git a/dev/src/DocGenerator/Command/Docs.php b/dev/src/DocGenerator/Command/Docs.php index f4609b8a44a3..a7e7bdd4862e 100644 --- a/dev/src/DocGenerator/Command/Docs.php +++ b/dev/src/DocGenerator/Command/Docs.php @@ -18,7 +18,9 @@ namespace Google\Cloud\Dev\DocGenerator\Command; use Google\Cloud\Dev\DocGenerator\DocGenerator; +use Google\Cloud\Dev\DocGenerator\FileListFilterIterator; use Google\Cloud\Dev\DocGenerator\GuideGenerator; +use Google\Cloud\Dev\DocGenerator\RegexFileFilter; use Google\Cloud\Dev\DocGenerator\TableOfContents; use Google\Cloud\Dev\DocGenerator\TypeGenerator; use Google\Cloud\Dev\GetComponentsTrait; @@ -40,10 +42,17 @@ class Docs extends Command const TOC_SOURCE_DIR = 'docs/contents'; const TOC_TEMPLATE = 'docs/toc.json'; const OVERVIEW_FILE = 'docs/overview.html'; - const DEFAULT_SOURCE_DIR = 'src'; + const DEFAULT_SOURCE_DIR = ''; private $cliBasePath; + private $testPaths = [ + 'tests/Unit', + 'tests/Snippet', + 'tests/System', + 'tests/Conformance', + ]; + public function __construct($cliBasePath) { $this->cliBasePath = $cliBasePath; @@ -57,8 +66,8 @@ protected function configure() ->setDescription('Generate Documentation') ->addOption('release', 'r', InputOption::VALUE_REQUIRED, 'If set, docs will be generated into tag folders' . ' such as v1.0.0 rather than master.', false) - ->addOption('pretty', 'p', InputOption::VALUE_OPTIONAL, 'If set, json files will be written with pretty'. - ' formatting using PHP\'s JSON_PRETTY_PRINT flag', false); + ->addOption('pretty', 'p', InputOption::VALUE_NONE, 'If set, json files will be written with pretty'. + ' formatting using PHP\'s JSON_PRETTY_PRINT flag'); } protected function execute(InputInterface $input, OutputInterface $output) @@ -67,7 +76,7 @@ protected function execute(InputInterface $input, OutputInterface $output) ? null : $input->getOption('release'); - $pretty = ($input->getOption('pretty') === false) ? false : true; + $pretty = $input->getOption('pretty'); $paths = [ 'source' => $this->cliBasePath .'/../'. self::DEFAULT_SOURCE_DIR, @@ -82,21 +91,37 @@ protected function execute(InputInterface $input, OutputInterface $output) $components = $this->getComponents($paths['source']); $tocTemplate = json_decode(file_get_contents($paths['tocTemplate']), true); - foreach ($components as $component) { - $input = $paths['project'] . $component['path']; - $source = $this->getFilesList($input); - $this->generateComponentDocumentation( - $output, - $source, - $component, - $paths, - $tocTemplate, - $release, - $pretty - ); - } + // foreach ($components as $component) { + // $input = $paths['project'] . $component['path']; + // $source = $this->getFilesList($input, ['php', 'md'], [ + // 'CONTRIBUTING.md' + // ]); + // $this->generateComponentDocumentation( + // $output, + // $source, + // $component, + // $paths, + // $tocTemplate, + // $release, + // $pretty + // ); + // } + + $projectRealPath = realpath($paths['project']); + $source = $this->getFilesList($projectRealPath, [ + 'php', 'md' + ], [ + $projectRealPath .'/vendor', + $projectRealPath .'/dev', + $projectRealPath .'/build', + $projectRealPath .'/docs', + $projectRealPath .'/tests', + '.github', + new RegexFileFilter(str_replace('/', '\/', preg_quote($projectRealPath .'/') . '\w{0,}\.\w{0,}')) + ]); + + // print_r($source);exit; - $source = $this->getFilesList($paths['project'] . '/src'); $component = [ 'id' => 'google-cloud', 'path' => 'src/' @@ -172,15 +197,27 @@ private function generateComponentDocumentation( $output->writeln(' '); } - private function getFilesList($source) + /** + * @param string $source The base directory to iterate. + * @param string[] $types A list of file extensions to include. Do not + * include the leading dot. + * @param string[] $excludes A list of directories or patterns to exclude. + * If the string begins with a forward-slash it will be treated as an + * absolute file path. Otherwise, the given string will be checked + * for existence in the absolute file path and excluded if it is + * found. (in other words, `strpos($exclude, $path) !== false`.) + * @return string[] A list of absolute paths to included files. + */ + private function getFilesList($source, array $types, array $excludes = []) { $directoryIterator = new RecursiveDirectoryIterator($source); $iterator = new RecursiveIteratorIterator($directoryIterator); - $regexIterator = new RegexIterator($iterator, '/^.+\.php|^.+\.md$/i', RecursiveRegexIterator::GET_MATCH); + // $regexIterator = new RegexIterator($iterator, $regex, RecursiveRegexIterator::GET_MATCH); + $fileList = new FileListFilterIterator($iterator, $types, $this->testPaths, $excludes); $files = []; - foreach ($regexIterator as $item) { - array_push($files, $item[0]); + foreach ($fileList as $item) { + array_push($files, realPath($item->getPathName())); } return $files; diff --git a/dev/src/DocGenerator/DocGenerator.php b/dev/src/DocGenerator/DocGenerator.php index f681a499edf8..38d8e341f0b0 100644 --- a/dev/src/DocGenerator/DocGenerator.php +++ b/dev/src/DocGenerator/DocGenerator.php @@ -66,12 +66,20 @@ public function __construct( public function generate($basePath, $pretty) { $fileReflectorRegister = new ReflectorRegister(); - foreach ($this->files as $file) { + $rootPath = realpath(dirname($this->executionPath)); + foreach ($this->files as $file) { if ($basePath) { - $currentFileArr = explode($basePath, trim($file, '/')); - if (isset($currentFileArr[1])) { - $currentFile = trim($currentFileArr[1], '/'); + // in umbrella package, folder order is reverse of expected. + // i.e. Foo/src/FooClient.php. + // this conditional strips the `src` and creates a path with the parent folder name. + if (!$this->isComponent) { + $currentFile = str_replace('src/', '', trim(str_replace($rootPath, '', $file), '/')); + } else { + $currentFileArr = explode($basePath, trim($file, '/')); + if (isset($currentFileArr[1])) { + $currentFile = trim($currentFileArr[1], '/'); + } } } @@ -88,13 +96,8 @@ public function generate($basePath, $pretty) $this->isComponent ); } else { - if (strpos($file, '.github') !== false) { - continue; - } - $content = file_get_contents($file); - $split = explode('src/', $file); - $parser = new MarkdownParser($split[1], $content); + $parser = new MarkdownParser($currentFile, $content); } $document = $parser->parse(); diff --git a/dev/src/DocGenerator/FileListFilterIterator.php b/dev/src/DocGenerator/FileListFilterIterator.php new file mode 100644 index 000000000000..0d28f4231454 --- /dev/null +++ b/dev/src/DocGenerator/FileListFilterIterator.php @@ -0,0 +1,81 @@ +fileTypes = $fileTypes; + $this->testPaths = $testPaths; + $this->excludes = $excludes; + + parent::__construct($iterator); + } + + public function accept() + { + /** @var \SplFileInfo */ + $file = parent::current(); + + $path = realpath($file->getPathName()); + + if (!in_array($file->getExtension(), $this->fileTypes)) { + return false; + } + + foreach ($this->excludes as $exclude) { + if ($exclude instanceof RegexFileFilter) { + $pattern = $exclude->regex; + + if (preg_match('/'. $pattern .'/', $path) === 1) { + return false; + } + + continue; + } + + if (strpos($exclude, '/') !== 0 && strpos($path, $exclude) !== false) { + return false; + } + + if (strpos($path, $exclude) === 0) { + return false; + } + } + + foreach ($this->testPaths as $testPath) { + if (strpos($path, $testPath) !== false) { + return false; + } + } + + return true; + } +} diff --git a/dev/src/DocGenerator/Parser/CodeParser.php b/dev/src/DocGenerator/Parser/CodeParser.php index 65aeb6283f28..4d1560959ca4 100644 --- a/dev/src/DocGenerator/Parser/CodeParser.php +++ b/dev/src/DocGenerator/Parser/CodeParser.php @@ -166,18 +166,13 @@ private function buildMethodInfo($fileReflector, $reflector) } $methods[$name] = [ 'methodReflector' => $method, - 'source' => $this->getPath($fileReflector), + 'source' => $fileReflector->getFileName(), 'container' => $reflector->getName(), ]; } return $methods; } - private function getPath($fileReflector) - { - return 'src' . trim(explode('src', $fileReflector->getFileName())[1]); - } - private function buildDocument($fileReflector, $reflector) { $name = $reflector->getShortName(); @@ -407,7 +402,7 @@ private function buildMethod($method, $methodInfo, $className) 'id' => $method->getName(), 'type' => $method->getName() === '__construct' ? 'constructor' : 'instance', 'name' => $method->getName(), - 'source' => $methodInfo['source'] . '#L' . $method->getLineNumber(), + 'source' => $this->getSource($methodInfo['source']) . '#L' . $method->getLineNumber(), 'description' => $description, 'examples' => $this->buildExamples($split['examples']), 'resources' => $this->buildResources($resources), @@ -439,7 +434,7 @@ private function buildMagicMethod($magicMethod) 'id' => $magicMethod->getMethodName(), 'type' => $magicMethod->getMethodName() === '__construct' ? 'constructor' : 'instance', 'name' => $magicMethod->getMethodName(), - 'source' => $this->getSource(), + 'source' => $this->getSource($this->path), 'description' => $this->buildDescription($docBlock, $docText, $magicMethod), 'examples' => $this->buildExamples($examples), 'resources' => $this->buildResources($resources), @@ -830,8 +825,22 @@ private function isComponent($composerPath) return false; } - private function getSource() + private function getSource($path) { - return 'src' . explode('src', $this->path)[1]; + $filePieces = explode('/', $path); + + $srcIdx = []; + array_walk($filePieces, function ($piece, $i) use (&$srcIdx) { + if ($piece === 'src') { + $srcIdx[] = $i; + } + }); + + // Just in case you're running inside a different src directory... + $realSrcIndex = end($srcIdx); + + $base = $realSrcIndex - 1; + + return implode('/', array_slice($filePieces, $base)); } } diff --git a/dev/src/DocGenerator/Parser/MarkdownParser.php b/dev/src/DocGenerator/Parser/MarkdownParser.php index 058dba85bbfe..7ef2c5f9b250 100644 --- a/dev/src/DocGenerator/Parser/MarkdownParser.php +++ b/dev/src/DocGenerator/Parser/MarkdownParser.php @@ -35,6 +35,7 @@ public function __construct($currentFile, $content) public function parse() { + // echo $this->currentFile;exit; $html = $this->markdown->parse($this->content); $doc = new DOMDocument; diff --git a/dev/src/DocGenerator/RegexFileFilter.php b/dev/src/DocGenerator/RegexFileFilter.php new file mode 100644 index 000000000000..5f8037e31aa8 --- /dev/null +++ b/dev/src/DocGenerator/RegexFileFilter.php @@ -0,0 +1,31 @@ +regex = $regex; + } +} diff --git a/dev/src/DocGenerator/Writer.php b/dev/src/DocGenerator/Writer.php index f2c22e458b63..76285580db37 100644 --- a/dev/src/DocGenerator/Writer.php +++ b/dev/src/DocGenerator/Writer.php @@ -38,9 +38,11 @@ public function write($currentFile) @mkdir(dirname($path), 0777, true); } - $content = ($this->pretty) - ? json_encode($this->content, JSON_PRETTY_PRINT) - : json_encode($this->content); + $options = $this->pretty + ? JSON_PRETTY_PRINT + : 0; + + $content = json_encode($this->content, $options); file_put_contents($path, $content); } diff --git a/src/generated-code.md b/src/generated-code.md deleted file mode 100644 index 8be63ae37290..000000000000 --- a/src/generated-code.md +++ /dev/null @@ -1,23 +0,0 @@ -# What Are Generated Code Clients? - -Google engineers have generated API clients for each language, which -are used to communicate directly with a specific version of a service via -[gRPC](https://grpc.io). Many services in Google Cloud PHP offer a generated -client in addition to the base client. - -These generated clients are used by Google Cloud PHP under the hood to communicate with -Google Cloud services via gRPC. They are also available for use directly by you. - -### Should I Use a Generated Client? - -If you require a specific version of an API, the Generated Code may be best. Google -Cloud PHP libraries generally use the latest version of an API. The Generated Code clients -are also much closer to a 1:1 API client. If you are familiar with the specifics -of a service, vkit may be more familiar to you. Google Cloud PHP clients attempt -to provide simple, language-idiomatic access to Google Cloud services over a -direct mapping. - -### What are the requirements for using Generated Code clients? - -* Using Generated Code requires the [gRPC PHP extension](https://pecl.php.net/package/gRPC) -to be enabled on your server. From 3513739f404d81cf57ae7657165357afcd572d31 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 23 Feb 2018 13:59:50 -0800 Subject: [PATCH 29/59] Changes after merging from master --- .../src}/Batch/ClosureSerializerInterface.php | 0 .../src}/Batch/InterruptTrait.php | 0 {src/Core => Core/src}/Batch/JobConfig.php | 0 {src/Core => Core/src}/Batch/JobInterface.php | 0 {src/Core => Core/src}/Batch/JobTrait.php | 0 .../src}/Batch/OpisClosureSerializer.php | 0 .../src}/Batch/SerializableClientTrait.php | 0 {src/Core => Core/src}/Batch/SimpleJob.php | 0 .../src}/Batch/SimpleJobTrait.php | 0 Core/tests/Unit/Batch/BatchConfigTest.php | 91 ------------------- .../tests/Unit}/Batch/JobConfigTest.php | 0 .../tests/Unit}/Batch/JobTraitTest.php | 0 .../Unit}/Batch/OpisClosureSerializerTest.php | 0 .../tests/Unit}/Batch/SimpleJobTest.php | 0 .../tests/Unit}/Batch/SimpleJobTraitTest.php | 0 .../FileBreakpointStorage.php | 0 {src/Debugger => Debugger/src}/CliDaemon.php | 0 .../FileBreakpointStorageTest.php | 0 .../tests/Unit}/CliDaemonTest.php | 0 .../tests/Unit}/data/daemon_config.php | 0 .../Unit}/data/daemon_config_wrong_return.php | 0 .../src}/VisionHelpersTrait.php | 0 .../Snippet}/V1/ImageAnnotatorClientTest.php | 0 .../Unit}/V1/ImageAnnotatorClientTest.php | 0 .../tests/Unit}/VisionHelpersTraitTest.php | 0 25 files changed, 91 deletions(-) rename {src/Core => Core/src}/Batch/ClosureSerializerInterface.php (100%) rename {src/Core => Core/src}/Batch/InterruptTrait.php (100%) rename {src/Core => Core/src}/Batch/JobConfig.php (100%) rename {src/Core => Core/src}/Batch/JobInterface.php (100%) rename {src/Core => Core/src}/Batch/JobTrait.php (100%) rename {src/Core => Core/src}/Batch/OpisClosureSerializer.php (100%) rename {src/Core => Core/src}/Batch/SerializableClientTrait.php (100%) rename {src/Core => Core/src}/Batch/SimpleJob.php (100%) rename {src/Core => Core/src}/Batch/SimpleJobTrait.php (100%) delete mode 100644 Core/tests/Unit/Batch/BatchConfigTest.php rename {tests/unit/Core => Core/tests/Unit}/Batch/JobConfigTest.php (100%) rename {tests/unit/Core => Core/tests/Unit}/Batch/JobTraitTest.php (100%) rename {tests/unit/Core => Core/tests/Unit}/Batch/OpisClosureSerializerTest.php (100%) rename {tests/unit/Core => Core/tests/Unit}/Batch/SimpleJobTest.php (100%) rename {tests/unit/Core => Core/tests/Unit}/Batch/SimpleJobTraitTest.php (100%) rename {src/Debugger => Debugger/src}/BreakpointStorage/FileBreakpointStorage.php (100%) rename {src/Debugger => Debugger/src}/CliDaemon.php (100%) rename {tests/unit/Debugger => Debugger/tests/Unit}/BreakpointStorage/FileBreakpointStorageTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/Unit}/CliDaemonTest.php (100%) rename {tests/unit/Debugger => Debugger/tests/Unit}/data/daemon_config.php (100%) rename {tests/unit/Debugger => Debugger/tests/Unit}/data/daemon_config_wrong_return.php (100%) rename {src/Vision => Vision/src}/VisionHelpersTrait.php (100%) rename {tests/snippets/Vision => Vision/tests/Snippet}/V1/ImageAnnotatorClientTest.php (100%) rename {tests/unit/Vision => Vision/tests/Unit}/V1/ImageAnnotatorClientTest.php (100%) rename {tests/unit/Vision => Vision/tests/Unit}/VisionHelpersTraitTest.php (100%) diff --git a/src/Core/Batch/ClosureSerializerInterface.php b/Core/src/Batch/ClosureSerializerInterface.php similarity index 100% rename from src/Core/Batch/ClosureSerializerInterface.php rename to Core/src/Batch/ClosureSerializerInterface.php diff --git a/src/Core/Batch/InterruptTrait.php b/Core/src/Batch/InterruptTrait.php similarity index 100% rename from src/Core/Batch/InterruptTrait.php rename to Core/src/Batch/InterruptTrait.php diff --git a/src/Core/Batch/JobConfig.php b/Core/src/Batch/JobConfig.php similarity index 100% rename from src/Core/Batch/JobConfig.php rename to Core/src/Batch/JobConfig.php diff --git a/src/Core/Batch/JobInterface.php b/Core/src/Batch/JobInterface.php similarity index 100% rename from src/Core/Batch/JobInterface.php rename to Core/src/Batch/JobInterface.php diff --git a/src/Core/Batch/JobTrait.php b/Core/src/Batch/JobTrait.php similarity index 100% rename from src/Core/Batch/JobTrait.php rename to Core/src/Batch/JobTrait.php diff --git a/src/Core/Batch/OpisClosureSerializer.php b/Core/src/Batch/OpisClosureSerializer.php similarity index 100% rename from src/Core/Batch/OpisClosureSerializer.php rename to Core/src/Batch/OpisClosureSerializer.php diff --git a/src/Core/Batch/SerializableClientTrait.php b/Core/src/Batch/SerializableClientTrait.php similarity index 100% rename from src/Core/Batch/SerializableClientTrait.php rename to Core/src/Batch/SerializableClientTrait.php diff --git a/src/Core/Batch/SimpleJob.php b/Core/src/Batch/SimpleJob.php similarity index 100% rename from src/Core/Batch/SimpleJob.php rename to Core/src/Batch/SimpleJob.php diff --git a/src/Core/Batch/SimpleJobTrait.php b/Core/src/Batch/SimpleJobTrait.php similarity index 100% rename from src/Core/Batch/SimpleJobTrait.php rename to Core/src/Batch/SimpleJobTrait.php diff --git a/Core/tests/Unit/Batch/BatchConfigTest.php b/Core/tests/Unit/Batch/BatchConfigTest.php deleted file mode 100644 index 9363102218bf..000000000000 --- a/Core/tests/Unit/Batch/BatchConfigTest.php +++ /dev/null @@ -1,91 +0,0 @@ -config = new BatchConfig(); - $this->identifier = 'job1'; - $this->func = 'myFunc'; - $this->config->registerJob( - $this->identifier, - $this->func, - [] - ); - // It must have 1 as the idNum. - $this->idNum = 1; - } - - public function testGetJobFromId() - { - $job = $this->config->getJobFromId($this->identifier); - $this->assertEquals($this->idNum, $job->getIdNum()); - $this->assertEquals($this->identifier, $job->getIdentifier()); - $this->assertNull($this->config->getJobFromId('bogus')); - } - - public function testGetJobFromIdNum() - { - $job = $this->config->getJobFromIdNum($this->idNum); - $this->assertEquals($this->idNum, $job->getIdNum()); - $this->assertEquals($this->identifier, $job->getIdentifier()); - $this->assertNull($this->config->getJobFromIdNum(10)); - } - - public function testRegisterJob() - { - $identifier = 'job2'; - $this->config->registerJob( - $identifier, - $this->func, - [] - ); - // The idNum is 1 origin, incremented by 1 - $job = $this->config->getJobFromIdNum(2); - $this->assertEquals(2, $job->getIdNum()); - $this->assertEquals($identifier, $job->getIdentifier()); - } - - public function testGetjobs() - { - $identifier = 'job2'; - $this->config->registerJob( - $identifier, - $this->func, - [] - ); - $jobs = $this->config->getJobs(); - $this->assertCount(2, $jobs); - $this->assertEquals($this->idNum, $jobs[$this->identifier]->getIdNum()); - $this->assertEquals(2, $jobs[$identifier]->getIdNum()); - } -} diff --git a/tests/unit/Core/Batch/JobConfigTest.php b/Core/tests/Unit/Batch/JobConfigTest.php similarity index 100% rename from tests/unit/Core/Batch/JobConfigTest.php rename to Core/tests/Unit/Batch/JobConfigTest.php diff --git a/tests/unit/Core/Batch/JobTraitTest.php b/Core/tests/Unit/Batch/JobTraitTest.php similarity index 100% rename from tests/unit/Core/Batch/JobTraitTest.php rename to Core/tests/Unit/Batch/JobTraitTest.php diff --git a/tests/unit/Core/Batch/OpisClosureSerializerTest.php b/Core/tests/Unit/Batch/OpisClosureSerializerTest.php similarity index 100% rename from tests/unit/Core/Batch/OpisClosureSerializerTest.php rename to Core/tests/Unit/Batch/OpisClosureSerializerTest.php diff --git a/tests/unit/Core/Batch/SimpleJobTest.php b/Core/tests/Unit/Batch/SimpleJobTest.php similarity index 100% rename from tests/unit/Core/Batch/SimpleJobTest.php rename to Core/tests/Unit/Batch/SimpleJobTest.php diff --git a/tests/unit/Core/Batch/SimpleJobTraitTest.php b/Core/tests/Unit/Batch/SimpleJobTraitTest.php similarity index 100% rename from tests/unit/Core/Batch/SimpleJobTraitTest.php rename to Core/tests/Unit/Batch/SimpleJobTraitTest.php diff --git a/src/Debugger/BreakpointStorage/FileBreakpointStorage.php b/Debugger/src/BreakpointStorage/FileBreakpointStorage.php similarity index 100% rename from src/Debugger/BreakpointStorage/FileBreakpointStorage.php rename to Debugger/src/BreakpointStorage/FileBreakpointStorage.php diff --git a/src/Debugger/CliDaemon.php b/Debugger/src/CliDaemon.php similarity index 100% rename from src/Debugger/CliDaemon.php rename to Debugger/src/CliDaemon.php diff --git a/tests/unit/Debugger/BreakpointStorage/FileBreakpointStorageTest.php b/Debugger/tests/Unit/BreakpointStorage/FileBreakpointStorageTest.php similarity index 100% rename from tests/unit/Debugger/BreakpointStorage/FileBreakpointStorageTest.php rename to Debugger/tests/Unit/BreakpointStorage/FileBreakpointStorageTest.php diff --git a/tests/unit/Debugger/CliDaemonTest.php b/Debugger/tests/Unit/CliDaemonTest.php similarity index 100% rename from tests/unit/Debugger/CliDaemonTest.php rename to Debugger/tests/Unit/CliDaemonTest.php diff --git a/tests/unit/Debugger/data/daemon_config.php b/Debugger/tests/Unit/data/daemon_config.php similarity index 100% rename from tests/unit/Debugger/data/daemon_config.php rename to Debugger/tests/Unit/data/daemon_config.php diff --git a/tests/unit/Debugger/data/daemon_config_wrong_return.php b/Debugger/tests/Unit/data/daemon_config_wrong_return.php similarity index 100% rename from tests/unit/Debugger/data/daemon_config_wrong_return.php rename to Debugger/tests/Unit/data/daemon_config_wrong_return.php diff --git a/src/Vision/VisionHelpersTrait.php b/Vision/src/VisionHelpersTrait.php similarity index 100% rename from src/Vision/VisionHelpersTrait.php rename to Vision/src/VisionHelpersTrait.php diff --git a/tests/snippets/Vision/V1/ImageAnnotatorClientTest.php b/Vision/tests/Snippet/V1/ImageAnnotatorClientTest.php similarity index 100% rename from tests/snippets/Vision/V1/ImageAnnotatorClientTest.php rename to Vision/tests/Snippet/V1/ImageAnnotatorClientTest.php diff --git a/tests/unit/Vision/V1/ImageAnnotatorClientTest.php b/Vision/tests/Unit/V1/ImageAnnotatorClientTest.php similarity index 100% rename from tests/unit/Vision/V1/ImageAnnotatorClientTest.php rename to Vision/tests/Unit/V1/ImageAnnotatorClientTest.php diff --git a/tests/unit/Vision/VisionHelpersTraitTest.php b/Vision/tests/Unit/VisionHelpersTraitTest.php similarity index 100% rename from tests/unit/Vision/VisionHelpersTraitTest.php rename to Vision/tests/Unit/VisionHelpersTraitTest.php From ea42d320a30fa790dfada587cf55000cbf611fb1 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 23 Feb 2018 14:03:47 -0800 Subject: [PATCH 30/59] Update after merge --- {src/Core => Core/src}/Testing/DatastoreOperationRefreshTrait.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {src/Core => Core/src}/Testing/DatastoreOperationRefreshTrait.php (100%) diff --git a/src/Core/Testing/DatastoreOperationRefreshTrait.php b/Core/src/Testing/DatastoreOperationRefreshTrait.php similarity index 100% rename from src/Core/Testing/DatastoreOperationRefreshTrait.php rename to Core/src/Testing/DatastoreOperationRefreshTrait.php From ea45a7cade0eaadf8b1f67a1708a3a9d804d2b18 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 23 Feb 2018 15:35:39 -0800 Subject: [PATCH 31/59] Small fixes for docs --- composer.json | 2 +- dev/src/DocGenerator/Command/Docs.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 119b3a0c3214..ba14fc6c080a 100644 --- a/composer.json +++ b/composer.json @@ -121,7 +121,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Dev\\": "Dev/src", + "Google\\Cloud\\Dev\\": "dev/src", "Google\\Cloud\\Tests\\": "tests", "Google\\Cloud\\BigQuery\\Tests\\": "BigQuery/tests", "Google\\Cloud\\Bigtable\\Tests\\": "Bigtable/tests", diff --git a/dev/src/DocGenerator/Command/Docs.php b/dev/src/DocGenerator/Command/Docs.php index a7e7bdd4862e..97381be7c2f4 100644 --- a/dev/src/DocGenerator/Command/Docs.php +++ b/dev/src/DocGenerator/Command/Docs.php @@ -117,7 +117,8 @@ protected function execute(InputInterface $input, OutputInterface $output) $projectRealPath .'/docs', $projectRealPath .'/tests', '.github', - new RegexFileFilter(str_replace('/', '\/', preg_quote($projectRealPath .'/') . '\w{0,}\.\w{0,}')) + new RegexFileFilter(str_replace('/', '\/', preg_quote($projectRealPath .'/') . '\w{0,}\.\w{0,}')), + 'bootstrap.php' ]); // print_r($source);exit; From feac382a144a47254f9e4c9e9e92c5e770f174d0 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Tue, 27 Feb 2018 10:21:35 -0500 Subject: [PATCH 32/59] Update dev CLI for API restructure --- BigQuery/composer.json | 4 +- Bigtable/composer.json | 2 +- Container/composer.json | 2 +- Core/composer.json | 4 +- Dataproc/composer.json | 2 +- Datastore/composer.json | 4 +- Debugger/composer.json | 4 +- Dlp/composer.json | 2 +- ErrorReporting/composer.json | 2 +- Firestore/composer.json | 4 +- Language/composer.json | 4 +- Logging/composer.json | 4 +- Monitoring/composer.json | 2 +- OsLogin/composer.json | 2 +- PubSub/composer.json | 4 +- Spanner/composer.json | 4 +- Speech/composer.json | 4 +- Storage/composer.json | 4 +- Trace/composer.json | 4 +- Translate/composer.json | 4 +- VideoIntelligence/composer.json | 2 +- Vision/composer.json | 4 +- dev/sh/build-docs | 2 +- dev/src/DocGenerator/Command/Docs.php | 45 +++++++++---------- dev/src/GetComponentsTrait.php | 65 ++++++++++++++++++++++----- dev/src/Release/Command/Release.php | 16 +++---- dev/src/Split/Command/Split.php | 6 +-- 27 files changed, 118 insertions(+), 88 deletions(-) diff --git a/BigQuery/composer.json b/BigQuery/composer.json index b7b33bdb16f3..375921dfd8b6 100644 --- a/BigQuery/composer.json +++ b/BigQuery/composer.json @@ -23,8 +23,8 @@ "displayName": "Google Cloud BigQuery", "id": "cloud-bigquery", "target": "GoogleCloudPlatform/google-cloud-php-bigquery.git", - "path": "BigQuery/src", - "entry": "BigQueryClient.php" + "path": "BigQuery", + "entry": "src/BigQueryClient.php" } }, "autoload": { diff --git a/Bigtable/composer.json b/Bigtable/composer.json index a2ea6d8b1c85..9f4de2b5ba76 100644 --- a/Bigtable/composer.json +++ b/Bigtable/composer.json @@ -17,7 +17,7 @@ "component": { "id": "cloud-bigtable", "target": "GoogleCloudPlatform/google-cloud-php-bigtable.git", - "path": "Bigtable/src", + "path": "Bigtable", "entry": null } }, diff --git a/Container/composer.json b/Container/composer.json index f24246fdbe63..80291422776d 100644 --- a/Container/composer.json +++ b/Container/composer.json @@ -11,7 +11,7 @@ "extra": { "component": { "id": "cloud-container", - "path": "Container/src", + "path": "Container", "entry": null, "target": "GoogleCloudPlatform/google-cloud-php-container.git" } diff --git a/Core/composer.json b/Core/composer.json index 6a495d186db9..0fc316b479fe 100644 --- a/Core/composer.json +++ b/Core/composer.json @@ -27,8 +27,8 @@ "component": { "id": "cloud-core", "target": "GoogleCloudPlatform/google-cloud-php-core.git", - "path": "Core/src", - "entry": "ServiceBuilder.php" + "path": "Core", + "entry": "src/ServiceBuilder.php" } }, "bin": [ diff --git a/Dataproc/composer.json b/Dataproc/composer.json index 024381ab4da4..e16d4aa99803 100644 --- a/Dataproc/composer.json +++ b/Dataproc/composer.json @@ -11,7 +11,7 @@ "extra": { "component": { "id": "cloud-dataproc", - "path": "Dataproc/src", + "path": "Dataproc", "entry": null, "target": "GoogleCloudPlatform/google-cloud-php-dataproc.git" } diff --git a/Datastore/composer.json b/Datastore/composer.json index 106cc04d20e2..1a9918a363cb 100644 --- a/Datastore/composer.json +++ b/Datastore/composer.json @@ -17,8 +17,8 @@ "component": { "id": "cloud-datastore", "target": "GoogleCloudPlatform/google-cloud-php-datastore.git", - "path": "Datastore/src", - "entry": "DatastoreClient.php" + "path": "Datastore", + "entry": "src/DatastoreClient.php" } }, "autoload": { diff --git a/Debugger/composer.json b/Debugger/composer.json index 3a346c6bf8d7..7e9071585147 100644 --- a/Debugger/composer.json +++ b/Debugger/composer.json @@ -13,8 +13,8 @@ "component": { "id": "cloud-debugger", "target": "GoogleCloudPlatform/google-cloud-php-debugger.git", - "path": "Debugger/src", - "entry": "DebuggerClient.php" + "path": "Debugger", + "entry": "src/DebuggerClient.php" } }, "autoload": { diff --git a/Dlp/composer.json b/Dlp/composer.json index 10e1633401eb..d273fadd88fb 100644 --- a/Dlp/composer.json +++ b/Dlp/composer.json @@ -17,7 +17,7 @@ "component": { "id": "cloud-dlp", "target": "GoogleCloudPlatform/google-cloud-php-dlp.git", - "path": "Dlp/src", + "path": "Dlp", "entry": null } }, diff --git a/ErrorReporting/composer.json b/ErrorReporting/composer.json index d1565b4fa473..dabe265790e1 100644 --- a/ErrorReporting/composer.json +++ b/ErrorReporting/composer.json @@ -16,7 +16,7 @@ "component": { "id": "cloud-error-reporting", "target": "GoogleCloudPlatform/google-cloud-php-errorreporting.git", - "path": "ErrorReporting/src", + "path": "ErrorReporting", "entry": null } }, diff --git a/Firestore/composer.json b/Firestore/composer.json index 273b958110bd..72cb256c052f 100644 --- a/Firestore/composer.json +++ b/Firestore/composer.json @@ -24,8 +24,8 @@ "component": { "id": "cloud-firestore", "target": "GoogleCloudPlatform/google-cloud-php-firestore.git", - "path": "Firestore/src", - "entry": "FirestoreClient.php" + "path": "Firestore", + "entry": "src/FirestoreClient.php" } }, "autoload": { diff --git a/Language/composer.json b/Language/composer.json index ae50c361154c..ced0928e9867 100644 --- a/Language/composer.json +++ b/Language/composer.json @@ -25,8 +25,8 @@ "component": { "id": "cloud-language", "target": "GoogleCloudPlatform/google-cloud-php-language.git", - "path": "Language/src", - "entry": "LanguageClient.php" + "path": "Language", + "entry": "src/LanguageClient.php" } }, "autoload": { diff --git a/Logging/composer.json b/Logging/composer.json index 3d101e823c3f..48f476030a5b 100644 --- a/Logging/composer.json +++ b/Logging/composer.json @@ -26,8 +26,8 @@ "component": { "id": "cloud-logging", "target": "GoogleCloudPlatform/google-cloud-php-logging.git", - "path": "Logging/src", - "entry": "LoggingClient.php" + "path": "Logging", + "entry": "src/LoggingClient.php" } }, "autoload": { diff --git a/Monitoring/composer.json b/Monitoring/composer.json index 69e46cb38aa0..fbac721a4305 100644 --- a/Monitoring/composer.json +++ b/Monitoring/composer.json @@ -14,7 +14,7 @@ "component": { "id": "cloud-monitoring", "target": "GoogleCloudPlatform/google-cloud-php-monitoring.git", - "path": "Monitoring/src", + "path": "Monitoring", "entry": null } }, diff --git a/OsLogin/composer.json b/OsLogin/composer.json index 42ee9c46ee17..da8f1c75f3f6 100644 --- a/OsLogin/composer.json +++ b/OsLogin/composer.json @@ -11,7 +11,7 @@ "extra": { "component": { "id": "cloud-oslogin", - "path": "OsLogin/src", + "path": "OsLogin", "entry": null, "target": "GoogleCloudPlatform/google-cloud-php-oslogin.git" } diff --git a/PubSub/composer.json b/PubSub/composer.json index 3d268bc79be4..257d1863eb6c 100644 --- a/PubSub/composer.json +++ b/PubSub/composer.json @@ -23,8 +23,8 @@ "component": { "id": "cloud-pubsub", "target": "GoogleCloudPlatform/google-cloud-php-pubsub.git", - "path": "PubSub/src", - "entry": "PubSubClient.php" + "path": "PubSub", + "entry": "src/PubSubClient.php" } }, "autoload": { diff --git a/Spanner/composer.json b/Spanner/composer.json index 2db2f155347b..39e752856236 100644 --- a/Spanner/composer.json +++ b/Spanner/composer.json @@ -23,8 +23,8 @@ "component": { "id": "cloud-spanner", "target": "GoogleCloudPlatform/google-cloud-php-spanner.git", - "path": "Spanner/src", - "entry": "SpannerClient.php" + "path": "Spanner", + "entry": "src/SpannerClient.php" } }, "autoload": { diff --git a/Speech/composer.json b/Speech/composer.json index f13a20aab636..abd0c0252bc3 100644 --- a/Speech/composer.json +++ b/Speech/composer.json @@ -24,8 +24,8 @@ "component": { "id": "cloud-speech", "target": "GoogleCloudPlatform/google-cloud-php-speech.git", - "path": "Speech/src", - "entry": "SpeechClient.php" + "path": "Speech", + "entry": "src/SpeechClient.php" } }, "autoload": { diff --git a/Storage/composer.json b/Storage/composer.json index e9655688be8c..625c31a562cf 100644 --- a/Storage/composer.json +++ b/Storage/composer.json @@ -23,8 +23,8 @@ "component": { "id": "cloud-storage", "target": "GoogleCloudPlatform/google-cloud-php-storage.git", - "path": "Storage/src", - "entry": "StorageClient.php" + "path": "Storage", + "entry": "src/StorageClient.php" } }, "autoload": { diff --git a/Trace/composer.json b/Trace/composer.json index 9f1cdb4b1d1d..461ab6cceacb 100644 --- a/Trace/composer.json +++ b/Trace/composer.json @@ -27,8 +27,8 @@ "component": { "id": "cloud-trace", "target": "GoogleCloudPlatform/google-cloud-php-trace.git", - "path": "Trace/src", - "entry": "TraceClient.php" + "path": "Trace", + "entry": "src/TraceClient.php" } }, "autoload": { diff --git a/Translate/composer.json b/Translate/composer.json index 03ffc46434c2..24211d14779d 100644 --- a/Translate/composer.json +++ b/Translate/composer.json @@ -17,8 +17,8 @@ "component": { "id": "cloud-translate", "target": "GoogleCloudPlatform/google-cloud-php-translate.git", - "path": "Translate/src", - "entry": "TranslateClient.php" + "path": "Translate", + "entry": "src/TranslateClient.php" } }, "autoload": { diff --git a/VideoIntelligence/composer.json b/VideoIntelligence/composer.json index f745cf3c3112..944956f8b5c5 100644 --- a/VideoIntelligence/composer.json +++ b/VideoIntelligence/composer.json @@ -14,7 +14,7 @@ "component": { "id": "cloud-videointelligence", "target": "GoogleCloudPlatform/google-cloud-php-videointelligence.git", - "path": "VideoIntelligence/src", + "path": "VideoIntelligence", "entry": null } }, diff --git a/Vision/composer.json b/Vision/composer.json index 810d6371aaf7..281fa8998744 100644 --- a/Vision/composer.json +++ b/Vision/composer.json @@ -25,8 +25,8 @@ "component": { "id": "cloud-vision", "target": "GoogleCloudPlatform/google-cloud-php-vision.git", - "path": "Vision/src", - "entry": "VisionClient.php" + "path": "Vision", + "entry": "src/VisionClient.php" } }, "autoload": { diff --git a/dev/sh/build-docs b/dev/sh/build-docs index 1079b9de9dd6..ffe70971319d 100755 --- a/dev/sh/build-docs +++ b/dev/sh/build-docs @@ -9,7 +9,7 @@ function buildDocs () { if [ -z "$TRAVIS_TAG" ]; then ./dev/google-cloud docs else - ./dev/google-cloud docs -r ${TRAVIS_TAG} + ./dev/google-cloud docs -r fi echo "doc dir after generation:" diff --git a/dev/src/DocGenerator/Command/Docs.php b/dev/src/DocGenerator/Command/Docs.php index 97381be7c2f4..74ca5f2c32c2 100644 --- a/dev/src/DocGenerator/Command/Docs.php +++ b/dev/src/DocGenerator/Command/Docs.php @@ -55,7 +55,7 @@ class Docs extends Command public function __construct($cliBasePath) { - $this->cliBasePath = $cliBasePath; + $this->cliBasePath = realpath($cliBasePath); parent::__construct(); } @@ -64,18 +64,15 @@ protected function configure() { $this->setName('docs') ->setDescription('Generate Documentation') - ->addOption('release', 'r', InputOption::VALUE_REQUIRED, 'If set, docs will be generated into tag folders' . - ' such as v1.0.0 rather than master.', false) + ->addOption('release', 'r', InputOption::VALUE_NONE, 'If set, docs will be generated into tag folders' . + ' such as v1.0.0 rather than master.') ->addOption('pretty', 'p', InputOption::VALUE_NONE, 'If set, json files will be written with pretty'. ' formatting using PHP\'s JSON_PRETTY_PRINT flag'); } protected function execute(InputInterface $input, OutputInterface $output) { - $release = ($input->getOption('release') === false && $input->getOption('release') !== 'false') - ? null - : $input->getOption('release'); - + $release = $input->getOption('release'); $pretty = $input->getOption('pretty'); $paths = [ @@ -88,24 +85,24 @@ protected function execute(InputInterface $input, OutputInterface $output) 'overview' => $this->cliBasePath .'/../'. self::OVERVIEW_FILE ]; - $components = $this->getComponents($paths['source']); + $components = $this->getComponents(dirname($this->cliBasePath), $paths['source']); $tocTemplate = json_decode(file_get_contents($paths['tocTemplate']), true); - // foreach ($components as $component) { - // $input = $paths['project'] . $component['path']; - // $source = $this->getFilesList($input, ['php', 'md'], [ - // 'CONTRIBUTING.md' - // ]); - // $this->generateComponentDocumentation( - // $output, - // $source, - // $component, - // $paths, - // $tocTemplate, - // $release, - // $pretty - // ); - // } + foreach ($components as $component) { + $input = $paths['project'] . $component['path'] .'/src'; + $source = $this->getFilesList($input, ['php', 'md'], [ + 'CONTRIBUTING.md' + ]); + $this->generateComponentDocumentation( + $output, + $source, + $component, + $paths, + $tocTemplate, + $release, + $pretty + ); + } $projectRealPath = realpath($paths['project']); $source = $this->getFilesList($projectRealPath, [ @@ -121,8 +118,6 @@ protected function execute(InputInterface $input, OutputInterface $output) 'bootstrap.php' ]); - // print_r($source);exit; - $component = [ 'id' => 'google-cloud', 'path' => 'src/' diff --git a/dev/src/GetComponentsTrait.php b/dev/src/GetComponentsTrait.php index 3efa11290fe5..6635ddef26d1 100644 --- a/dev/src/GetComponentsTrait.php +++ b/dev/src/GetComponentsTrait.php @@ -24,8 +24,13 @@ trait GetComponentsTrait /** * If $defaultComposerPath is set, it will parse that path as a composer * file and add it to the components. + * + * @param string $libraryRootPath The root path of the library. + * @param string $componentsPath The base path, under which composer.json files will be discovered. + * @param string|null $defaultComposerPath If set, this path will be included as a component. + * @return array Component data. */ - private function getComponents($componentsPath, $defaultComposerPath = null) + private function getComponents($libraryRootPath, $componentsPath, $defaultComposerPath = null) { $files = glob($componentsPath .'/*/composer.json'); @@ -35,20 +40,18 @@ private function getComponents($componentsPath, $defaultComposerPath = null) $components = []; foreach ($files as $file) { + $file = realpath($file); $json = json_decode(file_get_contents($file), true); - $path = explode('src', $file); + $path = trim(str_replace($libraryRootPath, '', $file), '/'); + $component = $json['extra']['component']; $component['name'] = $json['name']; if (!isset($component['displayName'])) { $component['displayName'] = $json['name']; } - if (count($path) > 1) { - $component['prefix'] = dirname('src' . $path[1]); - } else { - $component['prefix'] = ''; - } + $component['prefix'] = dirname($path); $components[] = $component; } @@ -56,29 +59,61 @@ private function getComponents($componentsPath, $defaultComposerPath = null) return $components; } + /** + * Get the latest version for a given component. + * + * @param string $manifestPath The path to the manifest. + * @param string $componentId The component ID to fetch a version from. + * @return string + */ private function getComponentVersion($manifestPath, $componentId) { $manifest = $this->getComponentManifest($manifestPath, $componentId); return $manifest['versions'][0]; } + /** + * Return manifest data for the given component. + * + * @param string $manifestPath The path to the manifest. + * @param string $componentId The component ID to fetch. + * @return array + */ private function getComponentManifest($manifestPath, $componentId) { $manifest = $this->getManifest($manifestPath); - $index = $this->getManifestComponentModuleIndex($manifestPath, $manifest, $componentId); + $index = $this->getManifestComponentModuleIndex($manifest, $componentId); return $manifest['modules'][$index]; } - private function getManifestComponentModuleIndex($manifestPath, array $manifest, $componentId) + /** + * Get the manifest component index. + * + * @param string|array $manifest If a string, the path to the manifest. If + * an array, the manifest contents. + * @param string $componentId The component ID to fetch + * @return int + */ + private function getManifestComponentModuleIndex($manifest, $componentId) { - $modules = array_filter($this->getManifest($manifestPath)['modules'], function ($module) use ($componentId) { + $manifest = is_array($manifest) + ? $manifest + : $this->getManifest($manifest); + + $modules = array_filter($manifest['modules'], function ($module) use ($componentId) { return ($module['id'] === $componentId); }); return array_keys($modules)[0]; } + /** + * Read the given file as a package manifest. + * + * @param string $manifestPath + * @return array + */ private function getManifest($manifestPath) { if (self::$__manifest) { @@ -96,9 +131,15 @@ private function getManifest($manifestPath) return $manifest; } - private function getComponentComposer($componentId) + /** + * Get the composer.json data for a given component. + * + * @param string $componentId + * @return array + */ + private function getComponentComposer($libraryRootPath, $componentId) { - $components = $this->getComponents($this->components, $this->defaultComponentComposer); + $components = $this->getComponents($libraryRootPath, $this->components, $this->defaultComponentComposer); $components = array_values(array_filter($components, function ($component) use ($componentId) { return ($component['id'] === $componentId); diff --git a/dev/src/Release/Command/Release.php b/dev/src/Release/Command/Release.php index 56bb015fd7b9..d16edf2833e5 100644 --- a/dev/src/Release/Command/Release.php +++ b/dev/src/Release/Command/Release.php @@ -22,7 +22,6 @@ use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use vierbergenlars\SemVer\version; @@ -30,7 +29,7 @@ class Release extends Command { use GetComponentsTrait; - const COMPONENT_BASE = '%s/../src'; + const COMPONENT_BASE = '%s/../'; const DEFAULT_COMPONENT = 'google-cloud'; const DEFAULT_COMPONENT_COMPOSER = '%s/../composer.json'; const PATH_MANIFEST = '%s/../docs/manifest.json'; @@ -63,18 +62,13 @@ protected function configure() $this->setName('release') ->setDescription('Prepares a new release') ->addArgument('version', InputArgument::REQUIRED, 'The new version number.') - ->addOption( - 'component', - 'c', - InputOption::VALUE_REQUIRED, - 'The component for which the version should be updated.', - self::DEFAULT_COMPONENT - ); + ->addArgument('component', InputArgument::OPTIONAL, '[optional] The component ID. Defaults to `google-cloud`.'); } protected function execute(InputInterface $input, OutputInterface $output) { - $component = $this->getComponentComposer($input->getOption('component')); + $componentInput = $input->getArgument('component') ?: self::DEFAULT_COMPONENT; + $component = $this->getComponentComposer(dirname($this->cliBasePath), $componentInput); $version = $input->getArgument('version'); @@ -162,7 +156,7 @@ private function getNextVersionName($type, array $component) private function addToComponentManifest($version, array $component) { $manifest = $this->getManifest($this->manifest); - $index = $this->getManifestComponentModuleIndex($this->manifest, $manifest, $component['id']); + $index = $this->getManifestComponentModuleIndex($manifest, $component['id']); array_unshift($manifest['modules'][$index]['versions'], 'v'. $version); diff --git a/dev/src/Split/Command/Split.php b/dev/src/Split/Command/Split.php index 6959e6985ac7..12f398a84373 100644 --- a/dev/src/Split/Command/Split.php +++ b/dev/src/Split/Command/Split.php @@ -33,7 +33,7 @@ class Split extends Command const TAG_ENV = 'TRAVIS_TAG'; const TARGET_REGEX = '/([a-zA-Z0-9-_]{1,})\/([a-zA-Z0-9-_]{1,})\.git/'; - const COMPONENT_BASE = '%s/../src'; + const COMPONENT_BASE = '%s/../'; const SPLIT_SHELL = '%s/sh/split'; const PATH_MANIFEST = '%s/../docs/manifest.json'; const PARENT_TAG_NAME = 'https://github.com/GoogleCloudPlatform/google-cloud-php/releases/tag/%s'; @@ -55,7 +55,7 @@ class Split extends Command public function __construct($cliBasePath) { - $this->cliBasePath = $cliBasePath; + $this->cliBasePath = realpath($cliBasePath); $this->splitShell = sprintf(self::SPLIT_SHELL, $cliBasePath); $this->components = sprintf(self::COMPONENT_BASE, $cliBasePath); $this->manifest = sprintf(self::PATH_MANIFEST, $cliBasePath); @@ -79,7 +79,7 @@ protected function execute(InputInterface $input, OutputInterface $output) return; } - $components = $this->getComponents($this->components); + $components = $this->getComponents(dirname($this->cliBasePath), $this->components); $tag = getenv(self::TAG_ENV); From 748ed7b4da8393e705321a499a6ff879bf4d59b0 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Tue, 27 Feb 2018 10:44:37 -0800 Subject: [PATCH 33/59] Updates after merge, update Snippet namespaces --- BigQuery/tests/Snippet/BigQueryClientTest.php | 2 +- BigQuery/tests/Snippet/BytesTest.php | 2 +- BigQuery/tests/Snippet/CopyJobConfigurationTest.php | 2 +- BigQuery/tests/Snippet/DatasetTest.php | 2 +- BigQuery/tests/Snippet/DateTest.php | 2 +- BigQuery/tests/Snippet/ExtractJobConfigurationTest.php | 2 +- BigQuery/tests/Snippet/InsertResponseTest.php | 2 +- BigQuery/tests/Snippet/JobTest.php | 2 +- BigQuery/tests/Snippet/LoadJobConfigurationTest.php | 2 +- BigQuery/tests/Snippet/QueryJobConfigurationTest.php | 2 +- BigQuery/tests/Snippet/QueryResultsTest.php | 2 +- BigQuery/tests/Snippet/TableTest.php | 2 +- BigQuery/tests/Snippet/TimeTest.php | 2 +- BigQuery/tests/Snippet/TimestampTest.php | 2 +- {src/Core => Core/src}/Testing/SpannerOperationRefreshTrait.php | 0 Core/tests/Snippet/BlobTest.php | 2 +- Core/tests/Snippet/Compute/MetadataTest.php | 2 +- Core/tests/Snippet/GeoPointTest.php | 2 +- Core/tests/Snippet/Iam/IamTest.php | 2 +- Core/tests/Snippet/Iam/PolicyBuilderTest.php | 2 +- Core/tests/Snippet/LongRunning/LongRunningOperationTest.php | 2 +- Core/tests/Snippet/ServiceBuilderTest.php | 2 +- Core/tests/Snippet/Testing/Snippet/Parser/ParserTest.php | 2 +- Core/tests/Snippet/TimestampTest.php | 2 +- Core/tests/Unit/Batch/JobConfigTest.php | 2 +- Core/tests/Unit/Batch/JobTraitTest.php | 2 +- Core/tests/Unit/Batch/OpisClosureSerializerTest.php | 2 +- Core/tests/Unit/Batch/SimpleJobTest.php | 2 +- Core/tests/Unit/Batch/SimpleJobTraitTest.php | 2 +- Datastore/tests/Snippet/BlobTest.php | 2 +- Datastore/tests/Snippet/DatastoreClientTest.php | 2 +- Datastore/tests/Snippet/EntityTest.php | 2 +- Datastore/tests/Snippet/GeoPointTest.php | 2 +- Datastore/tests/Snippet/KeyTest.php | 2 +- Datastore/tests/Snippet/Query/GqlQueryTest.php | 2 +- Datastore/tests/Snippet/Query/QueryTest.php | 2 +- Datastore/tests/Snippet/ReadOnlyTransactionTest.php | 2 +- Datastore/tests/Snippet/TransactionTest.php | 2 +- Debugger/tests/Snippet/AgentTest.php | 2 +- Debugger/tests/Snippet/AliasContextTest.php | 2 +- Debugger/tests/Snippet/BreakpointTest.php | 2 +- Debugger/tests/Snippet/CloudRepoSourceContextTest.php | 2 +- Debugger/tests/Snippet/CloudWorkspaceIdTest.php | 2 +- Debugger/tests/Snippet/CloudWorkspaceSourceContextTest.php | 2 +- Debugger/tests/Snippet/DaemonTest.php | 2 +- Debugger/tests/Snippet/DebuggeeTest.php | 2 +- Debugger/tests/Snippet/ExtendedSourceContextTest.php | 2 +- Debugger/tests/Snippet/FormatMessageTest.php | 2 +- Debugger/tests/Snippet/GerritSourceContextTest.php | 2 +- Debugger/tests/Snippet/GitSourceContextTest.php | 2 +- Debugger/tests/Snippet/MatchingFileIteratorTest.php | 2 +- Debugger/tests/Snippet/ProjectRepoIdTest.php | 2 +- Debugger/tests/Snippet/RepoIdTest.php | 2 +- Debugger/tests/Snippet/SourceLocationResolverTest.php | 2 +- Debugger/tests/Snippet/SourceLocationTest.php | 2 +- Debugger/tests/Snippet/StackFrameTest.php | 2 +- Debugger/tests/Snippet/StatusMessageTest.php | 2 +- Debugger/tests/Snippet/VariableTableTest.php | 2 +- Debugger/tests/Snippet/VariableTest.php | 2 +- .../tests/Unit/BreakpointStorage/FileBreakpointStorageTest.php | 2 +- Debugger/tests/Unit/CliDaemonTest.php | 2 +- Firestore/tests/Snippet/CollectionReferenceTest.php | 2 +- Firestore/tests/Snippet/DocumentReferenceTest.php | 2 +- Firestore/tests/Snippet/DocumentSnapshotTest.php | 2 +- Firestore/tests/Snippet/FieldPathTest.php | 2 +- Firestore/tests/Snippet/FieldValueTest.php | 2 +- Firestore/tests/Snippet/FirestoreClientTest.php | 2 +- Firestore/tests/Snippet/QuerySnapshotTest.php | 2 +- Firestore/tests/Snippet/QueryTest.php | 2 +- Firestore/tests/Snippet/TransactionTest.php | 2 +- Firestore/tests/Snippet/WriteBatchTest.php | 2 +- Language/tests/Snippet/AnnotationTest.php | 2 +- Language/tests/Snippet/LanguageClientTest.php | 2 +- Logging/tests/Snippet/EntryTest.php | 2 +- Logging/tests/Snippet/LoggerTest.php | 2 +- Logging/tests/Snippet/LoggingClientTest.php | 2 +- Logging/tests/Snippet/MetricTest.php | 2 +- Logging/tests/Snippet/PsrLoggerTest.php | 2 +- Logging/tests/Snippet/SinkTest.php | 2 +- PubSub/tests/Snippet/BatchPublisherTest.php | 2 +- PubSub/tests/Snippet/MessageTest.php | 2 +- PubSub/tests/Snippet/PubSubClientTest.php | 2 +- PubSub/tests/Snippet/SnapshotTest.php | 2 +- PubSub/tests/Snippet/SubscriptionTest.php | 2 +- PubSub/tests/Snippet/TopicTest.php | 2 +- {src/Spanner => Spanner/src}/Batch/BatchClient.php | 0 {src/Spanner => Spanner/src}/Batch/BatchSnapshot.php | 0 {src/Spanner => Spanner/src}/Batch/PartitionInterface.php | 0 {src/Spanner => Spanner/src}/Batch/PartitionTrait.php | 0 {src/Spanner => Spanner/src}/Batch/QueryPartition.php | 0 {src/Spanner => Spanner/src}/Batch/ReadPartition.php | 0 {src/Spanner => Spanner/src}/SnapshotTrait.php | 0 .../Spanner => Spanner/tests/Snippet}/Batch/BatchClientTest.php | 2 +- .../tests/Snippet}/Batch/BatchSnapshotTest.php | 2 +- .../tests/Snippet}/Batch/PartitionSharedSnippetTestTrait.php | 2 +- .../tests/Snippet}/Batch/QueryPartitionTest.php | 2 +- .../tests/Snippet}/Batch/ReadPartitionTest.php | 2 +- Spanner/tests/Snippet/BytesTest.php | 2 +- Spanner/tests/Snippet/DatabaseTest.php | 2 +- Spanner/tests/Snippet/DateTest.php | 2 +- Spanner/tests/Snippet/DurationTest.php | 2 +- Spanner/tests/Snippet/InstanceConfigurationTest.php | 2 +- Spanner/tests/Snippet/InstanceTest.php | 2 +- Spanner/tests/Snippet/KeyRangeTest.php | 2 +- Spanner/tests/Snippet/KeySetTest.php | 2 +- Spanner/tests/Snippet/ResultTest.php | 2 +- Spanner/tests/Snippet/Session/CacheSessionPoolTest.php | 2 +- Spanner/tests/Snippet/SnapshotTest.php | 2 +- Spanner/tests/Snippet/SpannerClientTest.php | 2 +- Spanner/tests/Snippet/TimestampTest.php | 2 +- Spanner/tests/Snippet/TransactionTest.php | 2 +- {tests/system/Spanner => Spanner/tests/System}/BatchTest.php | 2 +- Spanner/tests/System/pcntl/AbortedErrorCausesRetry.php | 2 +- .../pcntl/ConcurrentTransactionsIncrementValueWithExecute.php | 2 +- .../pcntl/ConcurrentTransactionsIncrementValueWithRead.php | 2 +- .../Spanner => Spanner/tests/Unit}/Batch/BatchClientTest.php | 2 +- .../Spanner => Spanner/tests/Unit}/Batch/BatchSnapshotTest.php | 2 +- Speech/tests/Snippet/OperationTest.php | 2 +- Speech/tests/Snippet/ResultTest.php | 2 +- Speech/tests/Snippet/SpeechClientTest.php | 2 +- Storage/tests/Snippet/AclTest.php | 2 +- Storage/tests/Snippet/BucketTest.php | 2 +- Storage/tests/Snippet/NotificationTest.php | 2 +- Storage/tests/Snippet/StorageClientTest.php | 2 +- Storage/tests/Snippet/StorageObjectTest.php | 2 +- Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php | 2 +- Trace/tests/Snippet/AnnotationTest.php | 2 +- Trace/tests/Snippet/AttributesTest.php | 2 +- Trace/tests/Snippet/LinkTest.php | 2 +- Trace/tests/Snippet/MessageEventTest.php | 2 +- Trace/tests/Snippet/SpanTest.php | 2 +- Trace/tests/Snippet/StackTraceTest.php | 2 +- Trace/tests/Snippet/StatusTest.php | 2 +- Trace/tests/Snippet/TraceClientTest.php | 2 +- Trace/tests/Snippet/TraceTest.php | 2 +- Translate/tests/Snippet/TranslateClientTest.php | 2 +- Vision/tests/Snippet/Annotation/AbstractFeatureTest.php | 2 +- Vision/tests/Snippet/Annotation/CropHintTest.php | 2 +- Vision/tests/Snippet/Annotation/DocumentTest.php | 2 +- Vision/tests/Snippet/Annotation/EntityTest.php | 2 +- Vision/tests/Snippet/Annotation/Face/LandmarksTest.php | 2 +- Vision/tests/Snippet/Annotation/FaceTest.php | 2 +- Vision/tests/Snippet/Annotation/ImagePropertiesTest.php | 2 +- Vision/tests/Snippet/Annotation/SafeSearchTest.php | 2 +- Vision/tests/Snippet/Annotation/Web/WebEntityTest.php | 2 +- Vision/tests/Snippet/Annotation/Web/WebImageTest.php | 2 +- Vision/tests/Snippet/Annotation/Web/WebPageTest.php | 2 +- Vision/tests/Snippet/Annotation/WebTest.php | 2 +- Vision/tests/Snippet/AnnotationTest.php | 2 +- Vision/tests/Snippet/ImageTest.php | 2 +- Vision/tests/Snippet/V1/ImageAnnotatorClientTest.php | 2 +- Vision/tests/Snippet/VisionClientTest.php | 2 +- Vision/tests/Unit/V1/ImageAnnotatorClientTest.php | 2 +- Vision/tests/Unit/VisionHelpersTraitTest.php | 2 +- 154 files changed, 146 insertions(+), 146 deletions(-) rename {src/Core => Core/src}/Testing/SpannerOperationRefreshTrait.php (100%) rename {src/Spanner => Spanner/src}/Batch/BatchClient.php (100%) rename {src/Spanner => Spanner/src}/Batch/BatchSnapshot.php (100%) rename {src/Spanner => Spanner/src}/Batch/PartitionInterface.php (100%) rename {src/Spanner => Spanner/src}/Batch/PartitionTrait.php (100%) rename {src/Spanner => Spanner/src}/Batch/QueryPartition.php (100%) rename {src/Spanner => Spanner/src}/Batch/ReadPartition.php (100%) rename {src/Spanner => Spanner/src}/SnapshotTrait.php (100%) rename {tests/snippets/Spanner => Spanner/tests/Snippet}/Batch/BatchClientTest.php (99%) rename {tests/snippets/Spanner => Spanner/tests/Snippet}/Batch/BatchSnapshotTest.php (99%) rename {tests/snippets/Spanner => Spanner/tests/Snippet}/Batch/PartitionSharedSnippetTestTrait.php (97%) rename {tests/snippets/Spanner => Spanner/tests/Snippet}/Batch/QueryPartitionTest.php (98%) rename {tests/snippets/Spanner => Spanner/tests/Snippet}/Batch/ReadPartitionTest.php (98%) rename {tests/system/Spanner => Spanner/tests/System}/BatchTest.php (98%) rename {tests/unit/Spanner => Spanner/tests/Unit}/Batch/BatchClientTest.php (99%) rename {tests/unit/Spanner => Spanner/tests/Unit}/Batch/BatchSnapshotTest.php (99%) diff --git a/BigQuery/tests/Snippet/BigQueryClientTest.php b/BigQuery/tests/Snippet/BigQueryClientTest.php index 79b65e797431..4a422551bb44 100644 --- a/BigQuery/tests/Snippet/BigQueryClientTest.php +++ b/BigQuery/tests/Snippet/BigQueryClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\BigQuery\Bytes; diff --git a/BigQuery/tests/Snippet/BytesTest.php b/BigQuery/tests/Snippet/BytesTest.php index b6b690a90bae..31d7c7c1bacb 100644 --- a/BigQuery/tests/Snippet/BytesTest.php +++ b/BigQuery/tests/Snippet/BytesTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\Bytes; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/BigQuery/tests/Snippet/CopyJobConfigurationTest.php b/BigQuery/tests/Snippet/CopyJobConfigurationTest.php index ce3cac3496e5..33e6d3753bbb 100644 --- a/BigQuery/tests/Snippet/CopyJobConfigurationTest.php +++ b/BigQuery/tests/Snippet/CopyJobConfigurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\BigQuery\CopyJobConfiguration; diff --git a/BigQuery/tests/Snippet/DatasetTest.php b/BigQuery/tests/Snippet/DatasetTest.php index 384d54ad7a38..67a8b2134fdb 100644 --- a/BigQuery/tests/Snippet/DatasetTest.php +++ b/BigQuery/tests/Snippet/DatasetTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\Connection\ConnectionInterface; use Google\Cloud\BigQuery\Dataset; diff --git a/BigQuery/tests/Snippet/DateTest.php b/BigQuery/tests/Snippet/DateTest.php index 9d69431f2d1b..5dc3aaa0e02a 100644 --- a/BigQuery/tests/Snippet/DateTest.php +++ b/BigQuery/tests/Snippet/DateTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\Date; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/BigQuery/tests/Snippet/ExtractJobConfigurationTest.php b/BigQuery/tests/Snippet/ExtractJobConfigurationTest.php index 217ed68b765b..663d59a75a83 100644 --- a/BigQuery/tests/Snippet/ExtractJobConfigurationTest.php +++ b/BigQuery/tests/Snippet/ExtractJobConfigurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\BigQuery\ExtractJobConfiguration; diff --git a/BigQuery/tests/Snippet/InsertResponseTest.php b/BigQuery/tests/Snippet/InsertResponseTest.php index 46e836f37079..1746a2a68b4e 100644 --- a/BigQuery/tests/Snippet/InsertResponseTest.php +++ b/BigQuery/tests/Snippet/InsertResponseTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\InsertResponse; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/BigQuery/tests/Snippet/JobTest.php b/BigQuery/tests/Snippet/JobTest.php index 3f9e7d9ce00a..92cdd5db8103 100644 --- a/BigQuery/tests/Snippet/JobTest.php +++ b/BigQuery/tests/Snippet/JobTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\Connection\ConnectionInterface; use Google\Cloud\BigQuery\Job; diff --git a/BigQuery/tests/Snippet/LoadJobConfigurationTest.php b/BigQuery/tests/Snippet/LoadJobConfigurationTest.php index 67dc8768aa09..28a92c1dbed2 100644 --- a/BigQuery/tests/Snippet/LoadJobConfigurationTest.php +++ b/BigQuery/tests/Snippet/LoadJobConfigurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\BigQuery\LoadJobConfiguration; diff --git a/BigQuery/tests/Snippet/QueryJobConfigurationTest.php b/BigQuery/tests/Snippet/QueryJobConfigurationTest.php index aebffaa7d1a5..20048fcad3ea 100644 --- a/BigQuery/tests/Snippet/QueryJobConfigurationTest.php +++ b/BigQuery/tests/Snippet/QueryJobConfigurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\BigQuery\QueryJobConfiguration; diff --git a/BigQuery/tests/Snippet/QueryResultsTest.php b/BigQuery/tests/Snippet/QueryResultsTest.php index 068289bb1ee9..479638fbaf03 100644 --- a/BigQuery/tests/Snippet/QueryResultsTest.php +++ b/BigQuery/tests/Snippet/QueryResultsTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\Connection\ConnectionInterface; use Google\Cloud\BigQuery\Job; diff --git a/BigQuery/tests/Snippet/TableTest.php b/BigQuery/tests/Snippet/TableTest.php index e2320ffcda8b..0c421e41430c 100644 --- a/BigQuery/tests/Snippet/TableTest.php +++ b/BigQuery/tests/Snippet/TableTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\BigQuery\Connection\ConnectionInterface; diff --git a/BigQuery/tests/Snippet/TimeTest.php b/BigQuery/tests/Snippet/TimeTest.php index f0d997d4eda1..6eae59536489 100644 --- a/BigQuery/tests/Snippet/TimeTest.php +++ b/BigQuery/tests/Snippet/TimeTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\BigQuery\Time; diff --git a/BigQuery/tests/Snippet/TimestampTest.php b/BigQuery/tests/Snippet/TimestampTest.php index 3459be03e4d8..6f1adf3c9d36 100644 --- a/BigQuery/tests/Snippet/TimestampTest.php +++ b/BigQuery/tests/Snippet/TimestampTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\BigQuery; +namespace Google\Cloud\BigQuery\Tests\Snippet; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\BigQuery\Timestamp; diff --git a/src/Core/Testing/SpannerOperationRefreshTrait.php b/Core/src/Testing/SpannerOperationRefreshTrait.php similarity index 100% rename from src/Core/Testing/SpannerOperationRefreshTrait.php rename to Core/src/Testing/SpannerOperationRefreshTrait.php diff --git a/Core/tests/Snippet/BlobTest.php b/Core/tests/Snippet/BlobTest.php index 3d5d1eb30bd1..119f4cc20436 100644 --- a/Core/tests/Snippet/BlobTest.php +++ b/Core/tests/Snippet/BlobTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Core; +namespace Google\Cloud\Core\Tests\Snippet; use Google\Cloud\Core\Blob; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Core/tests/Snippet/Compute/MetadataTest.php b/Core/tests/Snippet/Compute/MetadataTest.php index ad84da57ab2b..b5dda9cafbd2 100644 --- a/Core/tests/Snippet/Compute/MetadataTest.php +++ b/Core/tests/Snippet/Compute/MetadataTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Core\Compute; +namespace Google\Cloud\Core\Tests\Snippet\Compute; use Google\Cloud\Core\Compute\Metadata; use Google\Cloud\Core\Compute\Metadata\Readers\ReaderInterface; diff --git a/Core/tests/Snippet/GeoPointTest.php b/Core/tests/Snippet/GeoPointTest.php index b683bfe55bb2..8d6ef53d6099 100644 --- a/Core/tests/Snippet/GeoPointTest.php +++ b/Core/tests/Snippet/GeoPointTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Core; +namespace Google\Cloud\Core\Tests\Snippet; use Google\Cloud\Core\GeoPoint; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Core/tests/Snippet/Iam/IamTest.php b/Core/tests/Snippet/Iam/IamTest.php index 8bdb5130e530..ddc7a86a69e8 100644 --- a/Core/tests/Snippet/Iam/IamTest.php +++ b/Core/tests/Snippet/Iam/IamTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Core\Iam; +namespace Google\Cloud\Core\Tests\Snippet\Iam; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Core\Iam\Iam; diff --git a/Core/tests/Snippet/Iam/PolicyBuilderTest.php b/Core/tests/Snippet/Iam/PolicyBuilderTest.php index 0595b4b406ea..4af05a7e8083 100644 --- a/Core/tests/Snippet/Iam/PolicyBuilderTest.php +++ b/Core/tests/Snippet/Iam/PolicyBuilderTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Core\Iam; +namespace Google\Cloud\Core\Tests\Snippet\Iam; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Core\Iam\PolicyBuilder; diff --git a/Core/tests/Snippet/LongRunning/LongRunningOperationTest.php b/Core/tests/Snippet/LongRunning/LongRunningOperationTest.php index 79570d77713d..8d2271825fa6 100644 --- a/Core/tests/Snippet/LongRunning/LongRunningOperationTest.php +++ b/Core/tests/Snippet/LongRunning/LongRunningOperationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Core\LongRunning; +namespace Google\Cloud\Core\Tests\Snippet\LongRunning; use Google\Cloud\Core\LongRunning\LongRunningConnectionInterface; use Google\Cloud\Core\LongRunning\LongRunningOperation; diff --git a/Core/tests/Snippet/ServiceBuilderTest.php b/Core/tests/Snippet/ServiceBuilderTest.php index 56e28eba66e7..fbfdaf901785 100644 --- a/Core/tests/Snippet/ServiceBuilderTest.php +++ b/Core/tests/Snippet/ServiceBuilderTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Core; +namespace Google\Cloud\Core\Tests\Snippet; use Google\Cloud\BigQuery\BigQueryClient; use Google\Cloud\Core\ServiceBuilder; diff --git a/Core/tests/Snippet/Testing/Snippet/Parser/ParserTest.php b/Core/tests/Snippet/Testing/Snippet/Parser/ParserTest.php index 6547a061dbb1..3f109d1dee01 100644 --- a/Core/tests/Snippet/Testing/Snippet/Parser/ParserTest.php +++ b/Core/tests/Snippet/Testing/Snippet/Parser/ParserTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Core\Testing\Snippet\Parser; +namespace Google\Cloud\Core\Tests\Snippet\Testing\Snippet\Parser; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Core/tests/Snippet/TimestampTest.php b/Core/tests/Snippet/TimestampTest.php index 4be79903db78..22bc382859ec 100644 --- a/Core/tests/Snippet/TimestampTest.php +++ b/Core/tests/Snippet/TimestampTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Core; +namespace Google\Cloud\Core\Tests\Snippet; use Google\Cloud\Core\Timestamp; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Core/tests/Unit/Batch/JobConfigTest.php b/Core/tests/Unit/Batch/JobConfigTest.php index 7423d06620cb..c860f05f0ad5 100644 --- a/Core/tests/Unit/Batch/JobConfigTest.php +++ b/Core/tests/Unit/Batch/JobConfigTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\JobConfig; use Google\Cloud\Core\Batch\BatchJob; diff --git a/Core/tests/Unit/Batch/JobTraitTest.php b/Core/tests/Unit/Batch/JobTraitTest.php index ee1e7254a260..c13fe1743877 100644 --- a/Core/tests/Unit/Batch/JobTraitTest.php +++ b/Core/tests/Unit/Batch/JobTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\JobInterface; use Google\Cloud\Core\Batch\JobTrait; diff --git a/Core/tests/Unit/Batch/OpisClosureSerializerTest.php b/Core/tests/Unit/Batch/OpisClosureSerializerTest.php index 60853a4a6902..980011e448ac 100644 --- a/Core/tests/Unit/Batch/OpisClosureSerializerTest.php +++ b/Core/tests/Unit/Batch/OpisClosureSerializerTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\OpisClosureSerializer; use Opis\Closure\SerializableClosure; diff --git a/Core/tests/Unit/Batch/SimpleJobTest.php b/Core/tests/Unit/Batch/SimpleJobTest.php index 9bc30839f4d2..3cc975a6d846 100644 --- a/Core/tests/Unit/Batch/SimpleJobTest.php +++ b/Core/tests/Unit/Batch/SimpleJobTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\SimpleJob; use PHPUnit\Framework\TestCase; diff --git a/Core/tests/Unit/Batch/SimpleJobTraitTest.php b/Core/tests/Unit/Batch/SimpleJobTraitTest.php index 72b6c18b3b0a..c0e8054862dc 100644 --- a/Core/tests/Unit/Batch/SimpleJobTraitTest.php +++ b/Core/tests/Unit/Batch/SimpleJobTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Core\Batch; +namespace Google\Cloud\Core\Tests\Unit\Batch; use Google\Cloud\Core\Batch\InMemoryConfigStorage; use Google\Cloud\Core\Batch\JobConfig; diff --git a/Datastore/tests/Snippet/BlobTest.php b/Datastore/tests/Snippet/BlobTest.php index cf5b4e2d0f0b..0b44490f71b2 100644 --- a/Datastore/tests/Snippet/BlobTest.php +++ b/Datastore/tests/Snippet/BlobTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Datastore; +namespace Google\Cloud\Datastore\Tests\Snippet; use Google\Cloud\Datastore\Blob; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Datastore/tests/Snippet/DatastoreClientTest.php b/Datastore/tests/Snippet/DatastoreClientTest.php index 65c37f4952be..4c74c8c75959 100644 --- a/Datastore/tests/Snippet/DatastoreClientTest.php +++ b/Datastore/tests/Snippet/DatastoreClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Datastore; +namespace Google\Cloud\Datastore\Tests\Snippet; use Google\Cloud\Core\Int64; use Google\Cloud\Core\Testing\DatastoreOperationRefreshTrait; diff --git a/Datastore/tests/Snippet/EntityTest.php b/Datastore/tests/Snippet/EntityTest.php index 45c88f3a3dba..afbe2024c228 100644 --- a/Datastore/tests/Snippet/EntityTest.php +++ b/Datastore/tests/Snippet/EntityTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Datastore; +namespace Google\Cloud\Datastore\Tests\Snippet; use Google\Cloud\Datastore\Entity; use Google\Cloud\Datastore\Key; diff --git a/Datastore/tests/Snippet/GeoPointTest.php b/Datastore/tests/Snippet/GeoPointTest.php index 444411b3be22..3e169b68b7fb 100644 --- a/Datastore/tests/Snippet/GeoPointTest.php +++ b/Datastore/tests/Snippet/GeoPointTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Datastore; +namespace Google\Cloud\Datastore\Tests\Snippet; use Google\Cloud\Datastore\GeoPoint; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Datastore/tests/Snippet/KeyTest.php b/Datastore/tests/Snippet/KeyTest.php index 44c1f26f1500..215e04437c18 100644 --- a/Datastore/tests/Snippet/KeyTest.php +++ b/Datastore/tests/Snippet/KeyTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Datastore; +namespace Google\Cloud\Datastore\Tests\Snippet; use Google\Cloud\Datastore\DatastoreClient; use Google\Cloud\Datastore\Key; diff --git a/Datastore/tests/Snippet/Query/GqlQueryTest.php b/Datastore/tests/Snippet/Query/GqlQueryTest.php index 9535e74ea4ba..cc6ea98722dc 100644 --- a/Datastore/tests/Snippet/Query/GqlQueryTest.php +++ b/Datastore/tests/Snippet/Query/GqlQueryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Datastore\Query; +namespace Google\Cloud\Datastore\Tests\Snippet\Query; use Google\Cloud\Datastore\Connection\ConnectionInterface; use Google\Cloud\Datastore\DatastoreClient; diff --git a/Datastore/tests/Snippet/Query/QueryTest.php b/Datastore/tests/Snippet/Query/QueryTest.php index 5dd8e5859241..acb5eed0a2f0 100644 --- a/Datastore/tests/Snippet/Query/QueryTest.php +++ b/Datastore/tests/Snippet/Query/QueryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Datastore\Query; +namespace Google\Cloud\Datastore\Tests\Snippet\Query; use Google\Cloud\Datastore\Connection\ConnectionInterface; use Google\Cloud\Datastore\DatastoreClient; diff --git a/Datastore/tests/Snippet/ReadOnlyTransactionTest.php b/Datastore/tests/Snippet/ReadOnlyTransactionTest.php index 57c64d833c10..c8649b503e39 100644 --- a/Datastore/tests/Snippet/ReadOnlyTransactionTest.php +++ b/Datastore/tests/Snippet/ReadOnlyTransactionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Datastore; +namespace Google\Cloud\Datastore\Tests\Snippet; use Google\Cloud\Core\Testing\DatastoreOperationRefreshTrait; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Datastore/tests/Snippet/TransactionTest.php b/Datastore/tests/Snippet/TransactionTest.php index 858aedf0d484..41a1b0953617 100644 --- a/Datastore/tests/Snippet/TransactionTest.php +++ b/Datastore/tests/Snippet/TransactionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Datastore; +namespace Google\Cloud\Datastore\Tests\Snippet; use Google\Cloud\Core\Testing\DatastoreOperationRefreshTrait; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Debugger/tests/Snippet/AgentTest.php b/Debugger/tests/Snippet/AgentTest.php index aa6a71df1927..af249a1c154f 100644 --- a/Debugger/tests/Snippet/AgentTest.php +++ b/Debugger/tests/Snippet/AgentTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\Agent; diff --git a/Debugger/tests/Snippet/AliasContextTest.php b/Debugger/tests/Snippet/AliasContextTest.php index 8e99f4919005..f7ff42091638 100644 --- a/Debugger/tests/Snippet/AliasContextTest.php +++ b/Debugger/tests/Snippet/AliasContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\AliasContext; diff --git a/Debugger/tests/Snippet/BreakpointTest.php b/Debugger/tests/Snippet/BreakpointTest.php index bf8ee81574d4..3ba899403bbe 100644 --- a/Debugger/tests/Snippet/BreakpointTest.php +++ b/Debugger/tests/Snippet/BreakpointTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\Breakpoint; diff --git a/Debugger/tests/Snippet/CloudRepoSourceContextTest.php b/Debugger/tests/Snippet/CloudRepoSourceContextTest.php index f03f22efa639..ffeb7c09d444 100644 --- a/Debugger/tests/Snippet/CloudRepoSourceContextTest.php +++ b/Debugger/tests/Snippet/CloudRepoSourceContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\CloudRepoSourceContext; diff --git a/Debugger/tests/Snippet/CloudWorkspaceIdTest.php b/Debugger/tests/Snippet/CloudWorkspaceIdTest.php index 482d5c843e4c..464dad622f00 100644 --- a/Debugger/tests/Snippet/CloudWorkspaceIdTest.php +++ b/Debugger/tests/Snippet/CloudWorkspaceIdTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\CloudWorkspaceId; diff --git a/Debugger/tests/Snippet/CloudWorkspaceSourceContextTest.php b/Debugger/tests/Snippet/CloudWorkspaceSourceContextTest.php index 05a68098da0f..8b9285b8f3e9 100644 --- a/Debugger/tests/Snippet/CloudWorkspaceSourceContextTest.php +++ b/Debugger/tests/Snippet/CloudWorkspaceSourceContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\CloudWorkspaceSourceContext; diff --git a/Debugger/tests/Snippet/DaemonTest.php b/Debugger/tests/Snippet/DaemonTest.php index 322367b85ba5..c36e9385e9d2 100644 --- a/Debugger/tests/Snippet/DaemonTest.php +++ b/Debugger/tests/Snippet/DaemonTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\Daemon; diff --git a/Debugger/tests/Snippet/DebuggeeTest.php b/Debugger/tests/Snippet/DebuggeeTest.php index 2e448221ce30..4ab91e3d7458 100644 --- a/Debugger/tests/Snippet/DebuggeeTest.php +++ b/Debugger/tests/Snippet/DebuggeeTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\Breakpoint; diff --git a/Debugger/tests/Snippet/ExtendedSourceContextTest.php b/Debugger/tests/Snippet/ExtendedSourceContextTest.php index db48558ea6af..41feac3e2877 100644 --- a/Debugger/tests/Snippet/ExtendedSourceContextTest.php +++ b/Debugger/tests/Snippet/ExtendedSourceContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\ExtendedSourceContext; diff --git a/Debugger/tests/Snippet/FormatMessageTest.php b/Debugger/tests/Snippet/FormatMessageTest.php index f06a5d570f93..9b8bf8ac732f 100644 --- a/Debugger/tests/Snippet/FormatMessageTest.php +++ b/Debugger/tests/Snippet/FormatMessageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\FormatMessage; diff --git a/Debugger/tests/Snippet/GerritSourceContextTest.php b/Debugger/tests/Snippet/GerritSourceContextTest.php index 8d3a6e97b6df..0fb027aee744 100644 --- a/Debugger/tests/Snippet/GerritSourceContextTest.php +++ b/Debugger/tests/Snippet/GerritSourceContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\GerritSourceContext; diff --git a/Debugger/tests/Snippet/GitSourceContextTest.php b/Debugger/tests/Snippet/GitSourceContextTest.php index 378acd32b256..20f557a85d95 100644 --- a/Debugger/tests/Snippet/GitSourceContextTest.php +++ b/Debugger/tests/Snippet/GitSourceContextTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\GitSourceContext; diff --git a/Debugger/tests/Snippet/MatchingFileIteratorTest.php b/Debugger/tests/Snippet/MatchingFileIteratorTest.php index 16d3e4af0937..f45178c9d9f8 100644 --- a/Debugger/tests/Snippet/MatchingFileIteratorTest.php +++ b/Debugger/tests/Snippet/MatchingFileIteratorTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\MatchingFileIterator; diff --git a/Debugger/tests/Snippet/ProjectRepoIdTest.php b/Debugger/tests/Snippet/ProjectRepoIdTest.php index d5e47da17db8..72582bc8a4f0 100644 --- a/Debugger/tests/Snippet/ProjectRepoIdTest.php +++ b/Debugger/tests/Snippet/ProjectRepoIdTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\ProjectRepoId; diff --git a/Debugger/tests/Snippet/RepoIdTest.php b/Debugger/tests/Snippet/RepoIdTest.php index bdaa87f4a3c9..fc509cb5e9cb 100644 --- a/Debugger/tests/Snippet/RepoIdTest.php +++ b/Debugger/tests/Snippet/RepoIdTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\RepoId; diff --git a/Debugger/tests/Snippet/SourceLocationResolverTest.php b/Debugger/tests/Snippet/SourceLocationResolverTest.php index 3d1a167e970e..5e50fb178d15 100644 --- a/Debugger/tests/Snippet/SourceLocationResolverTest.php +++ b/Debugger/tests/Snippet/SourceLocationResolverTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\SourceLocation; diff --git a/Debugger/tests/Snippet/SourceLocationTest.php b/Debugger/tests/Snippet/SourceLocationTest.php index a43a0ab1d21e..88c77eb976d4 100644 --- a/Debugger/tests/Snippet/SourceLocationTest.php +++ b/Debugger/tests/Snippet/SourceLocationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\SourceLocation; diff --git a/Debugger/tests/Snippet/StackFrameTest.php b/Debugger/tests/Snippet/StackFrameTest.php index b0f27396c176..260ab7ae1d2d 100644 --- a/Debugger/tests/Snippet/StackFrameTest.php +++ b/Debugger/tests/Snippet/StackFrameTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\StackFrame; diff --git a/Debugger/tests/Snippet/StatusMessageTest.php b/Debugger/tests/Snippet/StatusMessageTest.php index 570150857c8f..7e959a18e74e 100644 --- a/Debugger/tests/Snippet/StatusMessageTest.php +++ b/Debugger/tests/Snippet/StatusMessageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\StatusMessage; diff --git a/Debugger/tests/Snippet/VariableTableTest.php b/Debugger/tests/Snippet/VariableTableTest.php index e4726dec903b..d038b8665248 100644 --- a/Debugger/tests/Snippet/VariableTableTest.php +++ b/Debugger/tests/Snippet/VariableTableTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\Variable; diff --git a/Debugger/tests/Snippet/VariableTest.php b/Debugger/tests/Snippet/VariableTest.php index 42e63b43a0c0..4ca157e14193 100644 --- a/Debugger/tests/Snippet/VariableTest.php +++ b/Debugger/tests/Snippet/VariableTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Debugger; +namespace Google\Cloud\Debugger\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Debugger\Variable; diff --git a/Debugger/tests/Unit/BreakpointStorage/FileBreakpointStorageTest.php b/Debugger/tests/Unit/BreakpointStorage/FileBreakpointStorageTest.php index 44fc726eedeb..6744fb53e119 100644 --- a/Debugger/tests/Unit/BreakpointStorage/FileBreakpointStorageTest.php +++ b/Debugger/tests/Unit/BreakpointStorage/FileBreakpointStorageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger\BreakpointStorage; +namespace Google\Cloud\Debugger\Tests\Unit\BreakpointStorage; use Google\Cloud\Debugger\BreakpointStorage\FileBreakpointStorage; use Google\Cloud\Debugger\Breakpoint; diff --git a/Debugger/tests/Unit/CliDaemonTest.php b/Debugger/tests/Unit/CliDaemonTest.php index e93aef27956a..35b46a897065 100644 --- a/Debugger/tests/Unit/CliDaemonTest.php +++ b/Debugger/tests/Unit/CliDaemonTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Debugger; +namespace Google\Cloud\Debugger\Tests\Unit; use Google\Cloud\Debugger\CliDaemon; use PHPUnit\Framework\TestCase; diff --git a/Firestore/tests/Snippet/CollectionReferenceTest.php b/Firestore/tests/Snippet/CollectionReferenceTest.php index 30c6dae08f14..4cbc1b4a6bbd 100644 --- a/Firestore/tests/Snippet/CollectionReferenceTest.php +++ b/Firestore/tests/Snippet/CollectionReferenceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Firestore; +namespace Google\Cloud\Firestore\Tests\Snippet; use Prophecy\Argument; use Google\Cloud\Firestore\Query; diff --git a/Firestore/tests/Snippet/DocumentReferenceTest.php b/Firestore/tests/Snippet/DocumentReferenceTest.php index 435557439208..196d602d5a3e 100644 --- a/Firestore/tests/Snippet/DocumentReferenceTest.php +++ b/Firestore/tests/Snippet/DocumentReferenceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Firestore; +namespace Google\Cloud\Firestore\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Firestore\CollectionReference; diff --git a/Firestore/tests/Snippet/DocumentSnapshotTest.php b/Firestore/tests/Snippet/DocumentSnapshotTest.php index 1b706607c426..d17d794942db 100644 --- a/Firestore/tests/Snippet/DocumentSnapshotTest.php +++ b/Firestore/tests/Snippet/DocumentSnapshotTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Firestore; +namespace Google\Cloud\Firestore\Tests\Snippet; use Google\Cloud\Core\Timestamp; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Firestore/tests/Snippet/FieldPathTest.php b/Firestore/tests/Snippet/FieldPathTest.php index 6f411b56b4c9..c633db4936b3 100644 --- a/Firestore/tests/Snippet/FieldPathTest.php +++ b/Firestore/tests/Snippet/FieldPathTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Firestore; +namespace Google\Cloud\Firestore\Tests\Snippet; use Google\Cloud\Firestore\FieldPath; use Google\Cloud\Core\Testing\GrpcTestTrait; diff --git a/Firestore/tests/Snippet/FieldValueTest.php b/Firestore/tests/Snippet/FieldValueTest.php index 0b66884aff79..25ae6c9773d3 100644 --- a/Firestore/tests/Snippet/FieldValueTest.php +++ b/Firestore/tests/Snippet/FieldValueTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Firestore; +namespace Google\Cloud\Firestore\Tests\Snippet; use Prophecy\Argument; use Google\Cloud\Core\Testing\GrpcTestTrait; diff --git a/Firestore/tests/Snippet/FirestoreClientTest.php b/Firestore/tests/Snippet/FirestoreClientTest.php index 697b3ad4d2fd..e77bd682b541 100644 --- a/Firestore/tests/Snippet/FirestoreClientTest.php +++ b/Firestore/tests/Snippet/FirestoreClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Firestore; +namespace Google\Cloud\Firestore\Tests\Snippet; use Prophecy\Argument; use Google\Cloud\Core\Blob; diff --git a/Firestore/tests/Snippet/QuerySnapshotTest.php b/Firestore/tests/Snippet/QuerySnapshotTest.php index 84a758c7c262..b061b72f7300 100644 --- a/Firestore/tests/Snippet/QuerySnapshotTest.php +++ b/Firestore/tests/Snippet/QuerySnapshotTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Firestore; +namespace Google\Cloud\Firestore\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Firestore\Connection\ConnectionInterface; diff --git a/Firestore/tests/Snippet/QueryTest.php b/Firestore/tests/Snippet/QueryTest.php index df16e766dfff..66f46ffbb6cb 100644 --- a/Firestore/tests/Snippet/QueryTest.php +++ b/Firestore/tests/Snippet/QueryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Firestore; +namespace Google\Cloud\Firestore\Tests\Snippet; use Prophecy\Argument; use Google\Cloud\Firestore\Query; diff --git a/Firestore/tests/Snippet/TransactionTest.php b/Firestore/tests/Snippet/TransactionTest.php index 8a81465e3ea9..9003ffe77368 100644 --- a/Firestore/tests/Snippet/TransactionTest.php +++ b/Firestore/tests/Snippet/TransactionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Firestore; +namespace Google\Cloud\Firestore\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Firestore\CollectionReference; diff --git a/Firestore/tests/Snippet/WriteBatchTest.php b/Firestore/tests/Snippet/WriteBatchTest.php index ccfa5f3797b2..c2076f282635 100644 --- a/Firestore/tests/Snippet/WriteBatchTest.php +++ b/Firestore/tests/Snippet/WriteBatchTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Firestore; +namespace Google\Cloud\Firestore\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\Parser\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Language/tests/Snippet/AnnotationTest.php b/Language/tests/Snippet/AnnotationTest.php index 5a871c5068a5..747067d51cb8 100644 --- a/Language/tests/Snippet/AnnotationTest.php +++ b/Language/tests/Snippet/AnnotationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Language; +namespace Google\Cloud\Language\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Language\Annotation; diff --git a/Language/tests/Snippet/LanguageClientTest.php b/Language/tests/Snippet/LanguageClientTest.php index 7bdfc8c8ca12..960a6a8da9b7 100644 --- a/Language/tests/Snippet/LanguageClientTest.php +++ b/Language/tests/Snippet/LanguageClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Language; +namespace Google\Cloud\Language\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Language\Connection\ConnectionInterface; diff --git a/Logging/tests/Snippet/EntryTest.php b/Logging/tests/Snippet/EntryTest.php index 75565df32a4e..209d79499d7a 100644 --- a/Logging/tests/Snippet/EntryTest.php +++ b/Logging/tests/Snippet/EntryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Logging; +namespace Google\Cloud\Logging\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Logging\Entry; diff --git a/Logging/tests/Snippet/LoggerTest.php b/Logging/tests/Snippet/LoggerTest.php index 6ff51e7fd7e2..0c0d131b7a98 100644 --- a/Logging/tests/Snippet/LoggerTest.php +++ b/Logging/tests/Snippet/LoggerTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Logging; +namespace Google\Cloud\Logging\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Logging\Connection\ConnectionInterface; diff --git a/Logging/tests/Snippet/LoggingClientTest.php b/Logging/tests/Snippet/LoggingClientTest.php index 2b10878b0c14..cf6b6b74bef1 100644 --- a/Logging/tests/Snippet/LoggingClientTest.php +++ b/Logging/tests/Snippet/LoggingClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Logging; +namespace Google\Cloud\Logging\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Logging\Connection\ConnectionInterface; diff --git a/Logging/tests/Snippet/MetricTest.php b/Logging/tests/Snippet/MetricTest.php index 653dd51a6dad..ff59f6f351b8 100644 --- a/Logging/tests/Snippet/MetricTest.php +++ b/Logging/tests/Snippet/MetricTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Logging; +namespace Google\Cloud\Logging\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Logging\Connection\ConnectionInterface; diff --git a/Logging/tests/Snippet/PsrLoggerTest.php b/Logging/tests/Snippet/PsrLoggerTest.php index f1457ee279ba..e1fbea510caa 100644 --- a/Logging/tests/Snippet/PsrLoggerTest.php +++ b/Logging/tests/Snippet/PsrLoggerTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Logging; +namespace Google\Cloud\Logging\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Logging\Connection\ConnectionInterface; diff --git a/Logging/tests/Snippet/SinkTest.php b/Logging/tests/Snippet/SinkTest.php index 22d55c9b3641..afe304377c46 100644 --- a/Logging/tests/Snippet/SinkTest.php +++ b/Logging/tests/Snippet/SinkTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Logging; +namespace Google\Cloud\Logging\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Logging\Connection\ConnectionInterface; diff --git a/PubSub/tests/Snippet/BatchPublisherTest.php b/PubSub/tests/Snippet/BatchPublisherTest.php index 226d136b0106..17b55cae428c 100644 --- a/PubSub/tests/Snippet/BatchPublisherTest.php +++ b/PubSub/tests/Snippet/BatchPublisherTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\PubSub; +namespace Google\Cloud\PubSub\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\PubSub\BatchPublisher; diff --git a/PubSub/tests/Snippet/MessageTest.php b/PubSub/tests/Snippet/MessageTest.php index 459e1d1c0b9b..4a9697ab24dd 100644 --- a/PubSub/tests/Snippet/MessageTest.php +++ b/PubSub/tests/Snippet/MessageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\PubSub; +namespace Google\Cloud\PubSub\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\PubSub\Connection\ConnectionInterface; diff --git a/PubSub/tests/Snippet/PubSubClientTest.php b/PubSub/tests/Snippet/PubSubClientTest.php index 768e1025bc5d..e17f930b1e35 100644 --- a/PubSub/tests/Snippet/PubSubClientTest.php +++ b/PubSub/tests/Snippet/PubSubClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\PubSub; +namespace Google\Cloud\PubSub\Tests\Snippet; use Google\Cloud\Core\Duration; use Google\Cloud\Core\Iterator\ItemIterator; diff --git a/PubSub/tests/Snippet/SnapshotTest.php b/PubSub/tests/Snippet/SnapshotTest.php index d498c8d2c988..42e75eefac68 100644 --- a/PubSub/tests/Snippet/SnapshotTest.php +++ b/PubSub/tests/Snippet/SnapshotTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\PubSub; +namespace Google\Cloud\PubSub\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\PubSub\Connection\ConnectionInterface; diff --git a/PubSub/tests/Snippet/SubscriptionTest.php b/PubSub/tests/Snippet/SubscriptionTest.php index 8a641ef8d509..e0c7c15a2cb8 100644 --- a/PubSub/tests/Snippet/SubscriptionTest.php +++ b/PubSub/tests/Snippet/SubscriptionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\PubSub; +namespace Google\Cloud\PubSub\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Core\Iam\Iam; diff --git a/PubSub/tests/Snippet/TopicTest.php b/PubSub/tests/Snippet/TopicTest.php index 1aa0efb08d3e..c83bf5641544 100644 --- a/PubSub/tests/Snippet/TopicTest.php +++ b/PubSub/tests/Snippet/TopicTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\PubSub; +namespace Google\Cloud\PubSub\Tests\Snippet; use Google\Cloud\Core\Iam\Iam; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/src/Spanner/Batch/BatchClient.php b/Spanner/src/Batch/BatchClient.php similarity index 100% rename from src/Spanner/Batch/BatchClient.php rename to Spanner/src/Batch/BatchClient.php diff --git a/src/Spanner/Batch/BatchSnapshot.php b/Spanner/src/Batch/BatchSnapshot.php similarity index 100% rename from src/Spanner/Batch/BatchSnapshot.php rename to Spanner/src/Batch/BatchSnapshot.php diff --git a/src/Spanner/Batch/PartitionInterface.php b/Spanner/src/Batch/PartitionInterface.php similarity index 100% rename from src/Spanner/Batch/PartitionInterface.php rename to Spanner/src/Batch/PartitionInterface.php diff --git a/src/Spanner/Batch/PartitionTrait.php b/Spanner/src/Batch/PartitionTrait.php similarity index 100% rename from src/Spanner/Batch/PartitionTrait.php rename to Spanner/src/Batch/PartitionTrait.php diff --git a/src/Spanner/Batch/QueryPartition.php b/Spanner/src/Batch/QueryPartition.php similarity index 100% rename from src/Spanner/Batch/QueryPartition.php rename to Spanner/src/Batch/QueryPartition.php diff --git a/src/Spanner/Batch/ReadPartition.php b/Spanner/src/Batch/ReadPartition.php similarity index 100% rename from src/Spanner/Batch/ReadPartition.php rename to Spanner/src/Batch/ReadPartition.php diff --git a/src/Spanner/SnapshotTrait.php b/Spanner/src/SnapshotTrait.php similarity index 100% rename from src/Spanner/SnapshotTrait.php rename to Spanner/src/SnapshotTrait.php diff --git a/tests/snippets/Spanner/Batch/BatchClientTest.php b/Spanner/tests/Snippet/Batch/BatchClientTest.php similarity index 99% rename from tests/snippets/Spanner/Batch/BatchClientTest.php rename to Spanner/tests/Snippet/Batch/BatchClientTest.php index ad480b9002f6..66a6b1b82e38 100644 --- a/tests/snippets/Spanner/Batch/BatchClientTest.php +++ b/Spanner/tests/Snippet/Batch/BatchClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner\Batch; +namespace Google\Cloud\Spanner\Tests\Snippet\Batch; use Google\Cloud\Core\Testing\GrpcTestTrait; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/tests/snippets/Spanner/Batch/BatchSnapshotTest.php b/Spanner/tests/Snippet/Batch/BatchSnapshotTest.php similarity index 99% rename from tests/snippets/Spanner/Batch/BatchSnapshotTest.php rename to Spanner/tests/Snippet/Batch/BatchSnapshotTest.php index 8189e7566452..d46720df4412 100644 --- a/tests/snippets/Spanner/Batch/BatchSnapshotTest.php +++ b/Spanner/tests/Snippet/Batch/BatchSnapshotTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner\Batch; +namespace Google\Cloud\Spanner\Tests\Snippet\Batch; use Google\Cloud\Core\Testing\GrpcTestTrait; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/tests/snippets/Spanner/Batch/PartitionSharedSnippetTestTrait.php b/Spanner/tests/Snippet/Batch/PartitionSharedSnippetTestTrait.php similarity index 97% rename from tests/snippets/Spanner/Batch/PartitionSharedSnippetTestTrait.php rename to Spanner/tests/Snippet/Batch/PartitionSharedSnippetTestTrait.php index e69d27a7740e..bddfd783e140 100644 --- a/tests/snippets/Spanner/Batch/PartitionSharedSnippetTestTrait.php +++ b/Spanner/tests/Snippet/Batch/PartitionSharedSnippetTestTrait.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner\Batch; +namespace Google\Cloud\Spanner\Tests\Snippet\Batch; /** * Shared snippet tests for partitions. diff --git a/tests/snippets/Spanner/Batch/QueryPartitionTest.php b/Spanner/tests/Snippet/Batch/QueryPartitionTest.php similarity index 98% rename from tests/snippets/Spanner/Batch/QueryPartitionTest.php rename to Spanner/tests/Snippet/Batch/QueryPartitionTest.php index 9134c24d6d0f..feef4e33fd91 100644 --- a/tests/snippets/Spanner/Batch/QueryPartitionTest.php +++ b/Spanner/tests/Snippet/Batch/QueryPartitionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner\Batch; +namespace Google\Cloud\Spanner\Tests\Snippet\Batch; use Google\Cloud\Core\Testing\GrpcTestTrait; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/tests/snippets/Spanner/Batch/ReadPartitionTest.php b/Spanner/tests/Snippet/Batch/ReadPartitionTest.php similarity index 98% rename from tests/snippets/Spanner/Batch/ReadPartitionTest.php rename to Spanner/tests/Snippet/Batch/ReadPartitionTest.php index 25f0499bb911..edde662c31c9 100644 --- a/tests/snippets/Spanner/Batch/ReadPartitionTest.php +++ b/Spanner/tests/Snippet/Batch/ReadPartitionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner\Batch; +namespace Google\Cloud\Spanner\Tests\Snippet\Batch; use Google\Cloud\Core\Testing\GrpcTestTrait; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Spanner/tests/Snippet/BytesTest.php b/Spanner/tests/Snippet/BytesTest.php index 1698e2e26e62..dacd56110b84 100644 --- a/Spanner/tests/Snippet/BytesTest.php +++ b/Spanner/tests/Snippet/BytesTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Spanner\Bytes; diff --git a/Spanner/tests/Snippet/DatabaseTest.php b/Spanner/tests/Snippet/DatabaseTest.php index c7b4faa6a6b6..0d34d32df734 100644 --- a/Spanner/tests/Snippet/DatabaseTest.php +++ b/Spanner/tests/Snippet/DatabaseTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Iam\Iam; use Google\Cloud\Core\Iterator\ItemIterator; diff --git a/Spanner/tests/Snippet/DateTest.php b/Spanner/tests/Snippet/DateTest.php index 3514d074c1ee..304dcaa294f8 100644 --- a/Spanner/tests/Snippet/DateTest.php +++ b/Spanner/tests/Snippet/DateTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Spanner\Database; diff --git a/Spanner/tests/Snippet/DurationTest.php b/Spanner/tests/Snippet/DurationTest.php index 84078b42dfc1..a3c68d323d4d 100644 --- a/Spanner/tests/Snippet/DurationTest.php +++ b/Spanner/tests/Snippet/DurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Spanner\Duration; diff --git a/Spanner/tests/Snippet/InstanceConfigurationTest.php b/Spanner/tests/Snippet/InstanceConfigurationTest.php index 798d88598972..68bba77841a0 100644 --- a/Spanner/tests/Snippet/InstanceConfigurationTest.php +++ b/Spanner/tests/Snippet/InstanceConfigurationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Spanner\Admin\Instance\V1\InstanceAdminClient; diff --git a/Spanner/tests/Snippet/InstanceTest.php b/Spanner/tests/Snippet/InstanceTest.php index 9741cbd24509..b10fd64abdaa 100644 --- a/Spanner/tests/Snippet/InstanceTest.php +++ b/Spanner/tests/Snippet/InstanceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Iam\Iam; use Google\Cloud\Core\Iterator\ItemIterator; diff --git a/Spanner/tests/Snippet/KeyRangeTest.php b/Spanner/tests/Snippet/KeyRangeTest.php index 521872ac8d73..d8822a175016 100644 --- a/Spanner/tests/Snippet/KeyRangeTest.php +++ b/Spanner/tests/Snippet/KeyRangeTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Spanner\KeyRange; diff --git a/Spanner/tests/Snippet/KeySetTest.php b/Spanner/tests/Snippet/KeySetTest.php index b8eb0221846d..b365d8b27bae 100644 --- a/Spanner/tests/Snippet/KeySetTest.php +++ b/Spanner/tests/Snippet/KeySetTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Spanner\KeyRange; diff --git a/Spanner/tests/Snippet/ResultTest.php b/Spanner/tests/Snippet/ResultTest.php index 162cfaff943c..9821a58388b9 100644 --- a/Spanner/tests/Snippet/ResultTest.php +++ b/Spanner/tests/Snippet/ResultTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Spanner\Database; diff --git a/Spanner/tests/Snippet/Session/CacheSessionPoolTest.php b/Spanner/tests/Snippet/Session/CacheSessionPoolTest.php index 302670c59991..89afad9a5f3a 100644 --- a/Spanner/tests/Snippet/Session/CacheSessionPoolTest.php +++ b/Spanner/tests/Snippet/Session/CacheSessionPoolTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Auth\Cache\MemoryCacheItemPool; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Spanner/tests/Snippet/SnapshotTest.php b/Spanner/tests/Snippet/SnapshotTest.php index 5733abc9b6ed..406de1f17767 100644 --- a/Spanner/tests/Snippet/SnapshotTest.php +++ b/Spanner/tests/Snippet/SnapshotTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Testing\GrpcTestTrait; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Spanner/tests/Snippet/SpannerClientTest.php b/Spanner/tests/Snippet/SpannerClientTest.php index 96a5bef0cc58..b9c462443f46 100644 --- a/Spanner/tests/Snippet/SpannerClientTest.php +++ b/Spanner/tests/Snippet/SpannerClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Int64; use Google\Cloud\Core\Iterator\ItemIterator; diff --git a/Spanner/tests/Snippet/TimestampTest.php b/Spanner/tests/Snippet/TimestampTest.php index 59650b7e7151..4328f5e32e83 100644 --- a/Spanner/tests/Snippet/TimestampTest.php +++ b/Spanner/tests/Snippet/TimestampTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Spanner\Database; diff --git a/Spanner/tests/Snippet/TransactionTest.php b/Spanner/tests/Snippet/TransactionTest.php index f61cca4a4cdd..166df20fcd05 100644 --- a/Spanner/tests/Snippet/TransactionTest.php +++ b/Spanner/tests/Snippet/TransactionTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Spanner; +namespace Google\Cloud\Spanner\Tests\Snippet; use Google\Cloud\Core\Testing\GrpcTestTrait; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/tests/system/Spanner/BatchTest.php b/Spanner/tests/System/BatchTest.php similarity index 98% rename from tests/system/Spanner/BatchTest.php rename to Spanner/tests/System/BatchTest.php index aed48f5f7432..72e82927693f 100644 --- a/tests/system/Spanner/BatchTest.php +++ b/Spanner/tests/System/BatchTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\System\Spanner; +namespace Google\Cloud\Spanner\Tests\System; use Google\Cloud\Spanner\Batch\BatchClient; use Google\Cloud\Spanner\Batch\BatchSnapshot; diff --git a/Spanner/tests/System/pcntl/AbortedErrorCausesRetry.php b/Spanner/tests/System/pcntl/AbortedErrorCausesRetry.php index 4c0c6971da73..cf84016df429 100644 --- a/Spanner/tests/System/pcntl/AbortedErrorCausesRetry.php +++ b/Spanner/tests/System/pcntl/AbortedErrorCausesRetry.php @@ -4,7 +4,7 @@ include __DIR__ . '/forked-process-test.php'; use Google\Cloud\Spanner\Database; -use Google\Cloud\Spanner\Tests\System\SpannerTestCase; +use Google\Cloud\Spanner\Spanner\Tests\SystemTestCase; list ($dbName, $tableName, $id) = getInputArgs(); diff --git a/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php b/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php index 08621b4a1e84..f377cb29bd3c 100644 --- a/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php +++ b/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithExecute.php @@ -4,7 +4,7 @@ include __DIR__ . '/forked-process-test.php'; use Google\Cloud\Spanner\Database; -use Google\Cloud\Spanner\Tests\System\SpannerTestCase; +use Google\Cloud\Spanner\Spanner\Tests\SystemTestCase; list ($dbName, $tableName, $id) = getInputArgs(); diff --git a/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithRead.php b/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithRead.php index 654158773415..5d995fe4838d 100644 --- a/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithRead.php +++ b/Spanner/tests/System/pcntl/ConcurrentTransactionsIncrementValueWithRead.php @@ -5,7 +5,7 @@ use Google\Cloud\Spanner\Database; use Google\Cloud\Spanner\KeySet; -use Google\Cloud\Spanner\Tests\System\SpannerTestCase; +use Google\Cloud\Spanner\Spanner\Tests\SystemTestCase; list ($dbName, $tableName, $id) = getInputArgs(); diff --git a/tests/unit/Spanner/Batch/BatchClientTest.php b/Spanner/tests/Unit/Batch/BatchClientTest.php similarity index 99% rename from tests/unit/Spanner/Batch/BatchClientTest.php rename to Spanner/tests/Unit/Batch/BatchClientTest.php index ae9917969bfd..91f0af784be8 100644 --- a/tests/unit/Spanner/Batch/BatchClientTest.php +++ b/Spanner/tests/Unit/Batch/BatchClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner\Batch; +namespace Google\Cloud\Spanner\Tests\Unit\Batch; use Google\Cloud\Core\Testing\SpannerOperationRefreshTrait; use Google\Cloud\Core\Testing\TestHelpers; diff --git a/tests/unit/Spanner/Batch/BatchSnapshotTest.php b/Spanner/tests/Unit/Batch/BatchSnapshotTest.php similarity index 99% rename from tests/unit/Spanner/Batch/BatchSnapshotTest.php rename to Spanner/tests/Unit/Batch/BatchSnapshotTest.php index 576020af92db..dfa1e7469ec2 100644 --- a/tests/unit/Spanner/Batch/BatchSnapshotTest.php +++ b/Spanner/tests/Unit/Batch/BatchSnapshotTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Spanner\Batch; +namespace Google\Cloud\Spanner\Tests\Unit\Batch; use Google\Cloud\Core\Testing\SpannerOperationRefreshTrait; use Google\Cloud\Core\Testing\TestHelpers; diff --git a/Speech/tests/Snippet/OperationTest.php b/Speech/tests/Snippet/OperationTest.php index cdd0e115d15c..4b814ec8f316 100644 --- a/Speech/tests/Snippet/OperationTest.php +++ b/Speech/tests/Snippet/OperationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Speech; +namespace Google\Cloud\Speech\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Speech\Connection\ConnectionInterface; diff --git a/Speech/tests/Snippet/ResultTest.php b/Speech/tests/Snippet/ResultTest.php index c46c84182553..8b55f0262c3c 100644 --- a/Speech/tests/Snippet/ResultTest.php +++ b/Speech/tests/Snippet/ResultTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Speech; +namespace Google\Cloud\Speech\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Speech\Connection\ConnectionInterface; diff --git a/Speech/tests/Snippet/SpeechClientTest.php b/Speech/tests/Snippet/SpeechClientTest.php index 2df05e966545..2d18e0221ab8 100644 --- a/Speech/tests/Snippet/SpeechClientTest.php +++ b/Speech/tests/Snippet/SpeechClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Speech; +namespace Google\Cloud\Speech\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Speech\Connection\ConnectionInterface; diff --git a/Storage/tests/Snippet/AclTest.php b/Storage/tests/Snippet/AclTest.php index b0f78b957a9f..9c4e42950e3d 100644 --- a/Storage/tests/Snippet/AclTest.php +++ b/Storage/tests/Snippet/AclTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Storage; +namespace Google\Cloud\Storage\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Storage\Acl; diff --git a/Storage/tests/Snippet/BucketTest.php b/Storage/tests/Snippet/BucketTest.php index 0bc28de43ed1..74b8a3cd3243 100644 --- a/Storage/tests/Snippet/BucketTest.php +++ b/Storage/tests/Snippet/BucketTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Storage; +namespace Google\Cloud\Storage\Tests\Snippet; use Google\Cloud\Core\Exception\GoogleException; use Google\Cloud\Core\Iam\Iam; diff --git a/Storage/tests/Snippet/NotificationTest.php b/Storage/tests/Snippet/NotificationTest.php index c59f65201d1d..63c81d2dee25 100644 --- a/Storage/tests/Snippet/NotificationTest.php +++ b/Storage/tests/Snippet/NotificationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Storage; +namespace Google\Cloud\Storage\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\PubSub\PubSubClient; diff --git a/Storage/tests/Snippet/StorageClientTest.php b/Storage/tests/Snippet/StorageClientTest.php index 0ebd2a2c6134..9630b0e4bb50 100644 --- a/Storage/tests/Snippet/StorageClientTest.php +++ b/Storage/tests/Snippet/StorageClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Storage; +namespace Google\Cloud\Storage\Tests\Snippet; use Google\Cloud\Core\Iterator\ItemIterator; use Google\Cloud\Core\RequestWrapper; diff --git a/Storage/tests/Snippet/StorageObjectTest.php b/Storage/tests/Snippet/StorageObjectTest.php index cc0e222f721c..55bee7bacf45 100644 --- a/Storage/tests/Snippet/StorageObjectTest.php +++ b/Storage/tests/Snippet/StorageObjectTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Storage; +namespace Google\Cloud\Storage\Tests\Snippet; use Google\Cloud\Core\RequestWrapper; use Google\Cloud\Core\Timestamp; diff --git a/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php b/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php index 928e5adefa2d..3701c18b8d13 100644 --- a/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php +++ b/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php @@ -17,7 +17,7 @@ namespace Google\Cloud\Storage\Tests\System\StreamWrapper; -use Google\Cloud\Storage\Tests\System\StorageTestCase; +use Google\Cloud\Storage\Storage\Tests\SystemTestCase; /** * @group storage diff --git a/Trace/tests/Snippet/AnnotationTest.php b/Trace/tests/Snippet/AnnotationTest.php index 6b4c17e0b383..f6b2d44a9e48 100644 --- a/Trace/tests/Snippet/AnnotationTest.php +++ b/Trace/tests/Snippet/AnnotationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Trace; +namespace Google\Cloud\Trace\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Trace\Annotation; diff --git a/Trace/tests/Snippet/AttributesTest.php b/Trace/tests/Snippet/AttributesTest.php index 492d57bb48ff..1d8abf560aea 100644 --- a/Trace/tests/Snippet/AttributesTest.php +++ b/Trace/tests/Snippet/AttributesTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Trace; +namespace Google\Cloud\Trace\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Trace\Attributes; diff --git a/Trace/tests/Snippet/LinkTest.php b/Trace/tests/Snippet/LinkTest.php index 7e3eadd4bf4e..9cce5b17d858 100644 --- a/Trace/tests/Snippet/LinkTest.php +++ b/Trace/tests/Snippet/LinkTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Trace; +namespace Google\Cloud\Trace\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Trace\Link; diff --git a/Trace/tests/Snippet/MessageEventTest.php b/Trace/tests/Snippet/MessageEventTest.php index da2a195e2b77..2b0fdb0746c2 100644 --- a/Trace/tests/Snippet/MessageEventTest.php +++ b/Trace/tests/Snippet/MessageEventTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Trace; +namespace Google\Cloud\Trace\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Trace\MessageEvent; diff --git a/Trace/tests/Snippet/SpanTest.php b/Trace/tests/Snippet/SpanTest.php index 664554f6f081..a0c047d9aee3 100644 --- a/Trace/tests/Snippet/SpanTest.php +++ b/Trace/tests/Snippet/SpanTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Trace; +namespace Google\Cloud\Trace\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Trace\Annotation; diff --git a/Trace/tests/Snippet/StackTraceTest.php b/Trace/tests/Snippet/StackTraceTest.php index 542915212cd9..0da30cd425f4 100644 --- a/Trace/tests/Snippet/StackTraceTest.php +++ b/Trace/tests/Snippet/StackTraceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Trace; +namespace Google\Cloud\Trace\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Trace\StackTrace; diff --git a/Trace/tests/Snippet/StatusTest.php b/Trace/tests/Snippet/StatusTest.php index 096ab4cd35cc..0df4b01946d9 100644 --- a/Trace/tests/Snippet/StatusTest.php +++ b/Trace/tests/Snippet/StatusTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Trace; +namespace Google\Cloud\Trace\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Trace\Status; diff --git a/Trace/tests/Snippet/TraceClientTest.php b/Trace/tests/Snippet/TraceClientTest.php index a18be1a08e5c..6b006c662063 100644 --- a/Trace/tests/Snippet/TraceClientTest.php +++ b/Trace/tests/Snippet/TraceClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Trace; +namespace Google\Cloud\Trace\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Trace\Connection\ConnectionInterface; diff --git a/Trace/tests/Snippet/TraceTest.php b/Trace/tests/Snippet/TraceTest.php index 23162c9fe025..5e28de297751 100644 --- a/Trace/tests/Snippet/TraceTest.php +++ b/Trace/tests/Snippet/TraceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Trace; +namespace Google\Cloud\Trace\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Trace\Span; diff --git a/Translate/tests/Snippet/TranslateClientTest.php b/Translate/tests/Snippet/TranslateClientTest.php index 1e3f5fec2eea..72417f26065f 100644 --- a/Translate/tests/Snippet/TranslateClientTest.php +++ b/Translate/tests/Snippet/TranslateClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Translate; +namespace Google\Cloud\Translate\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Translate\Connection\ConnectionInterface; diff --git a/Vision/tests/Snippet/Annotation/AbstractFeatureTest.php b/Vision/tests/Snippet/Annotation/AbstractFeatureTest.php index 4198e6b81421..54c398b84b4e 100644 --- a/Vision/tests/Snippet/Annotation/AbstractFeatureTest.php +++ b/Vision/tests/Snippet/Annotation/AbstractFeatureTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\AbstractFeature; diff --git a/Vision/tests/Snippet/Annotation/CropHintTest.php b/Vision/tests/Snippet/Annotation/CropHintTest.php index 25bc3bc91bbd..5bfb518d0dc2 100644 --- a/Vision/tests/Snippet/Annotation/CropHintTest.php +++ b/Vision/tests/Snippet/Annotation/CropHintTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\CropHint; diff --git a/Vision/tests/Snippet/Annotation/DocumentTest.php b/Vision/tests/Snippet/Annotation/DocumentTest.php index a8e951535521..d41edcea4b1c 100644 --- a/Vision/tests/Snippet/Annotation/DocumentTest.php +++ b/Vision/tests/Snippet/Annotation/DocumentTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\Document; diff --git a/Vision/tests/Snippet/Annotation/EntityTest.php b/Vision/tests/Snippet/Annotation/EntityTest.php index 170e0b2b2168..129d68ea5eef 100644 --- a/Vision/tests/Snippet/Annotation/EntityTest.php +++ b/Vision/tests/Snippet/Annotation/EntityTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\Entity; diff --git a/Vision/tests/Snippet/Annotation/Face/LandmarksTest.php b/Vision/tests/Snippet/Annotation/Face/LandmarksTest.php index 76e4152ca698..5e15e7702fd8 100644 --- a/Vision/tests/Snippet/Annotation/Face/LandmarksTest.php +++ b/Vision/tests/Snippet/Annotation/Face/LandmarksTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation\Face; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation\Face; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\Face\Landmarks; diff --git a/Vision/tests/Snippet/Annotation/FaceTest.php b/Vision/tests/Snippet/Annotation/FaceTest.php index 3f8e76ac3fa3..2d57c6f54808 100644 --- a/Vision/tests/Snippet/Annotation/FaceTest.php +++ b/Vision/tests/Snippet/Annotation/FaceTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\Face; diff --git a/Vision/tests/Snippet/Annotation/ImagePropertiesTest.php b/Vision/tests/Snippet/Annotation/ImagePropertiesTest.php index bece88609fb9..f1ede5b6585a 100644 --- a/Vision/tests/Snippet/Annotation/ImagePropertiesTest.php +++ b/Vision/tests/Snippet/Annotation/ImagePropertiesTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\ImageProperties; diff --git a/Vision/tests/Snippet/Annotation/SafeSearchTest.php b/Vision/tests/Snippet/Annotation/SafeSearchTest.php index 43f4d09939bb..5103f3358f67 100644 --- a/Vision/tests/Snippet/Annotation/SafeSearchTest.php +++ b/Vision/tests/Snippet/Annotation/SafeSearchTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\SafeSearch; diff --git a/Vision/tests/Snippet/Annotation/Web/WebEntityTest.php b/Vision/tests/Snippet/Annotation/Web/WebEntityTest.php index 5058e2ff4486..01c8841f8c91 100644 --- a/Vision/tests/Snippet/Annotation/Web/WebEntityTest.php +++ b/Vision/tests/Snippet/Annotation/Web/WebEntityTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation\Web; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation\Web; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\Web\WebEntity; diff --git a/Vision/tests/Snippet/Annotation/Web/WebImageTest.php b/Vision/tests/Snippet/Annotation/Web/WebImageTest.php index 8d58668e8025..a2788ff39f94 100644 --- a/Vision/tests/Snippet/Annotation/Web/WebImageTest.php +++ b/Vision/tests/Snippet/Annotation/Web/WebImageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation\Web; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation\Web; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\Web\WebImage; diff --git a/Vision/tests/Snippet/Annotation/Web/WebPageTest.php b/Vision/tests/Snippet/Annotation/Web/WebPageTest.php index 3e29f19bbf33..46807edca1f2 100644 --- a/Vision/tests/Snippet/Annotation/Web/WebPageTest.php +++ b/Vision/tests/Snippet/Annotation/Web/WebPageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation\Web; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation\Web; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\Web\WebPage; diff --git a/Vision/tests/Snippet/Annotation/WebTest.php b/Vision/tests/Snippet/Annotation/WebTest.php index 33714574866f..5417d1960c23 100644 --- a/Vision/tests/Snippet/Annotation/WebTest.php +++ b/Vision/tests/Snippet/Annotation/WebTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\Annotation; +namespace Google\Cloud\Vision\Tests\Snippet\Annotation; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation\Web; diff --git a/Vision/tests/Snippet/AnnotationTest.php b/Vision/tests/Snippet/AnnotationTest.php index 900e48c8ed3d..2d35d41de34a 100644 --- a/Vision/tests/Snippet/AnnotationTest.php +++ b/Vision/tests/Snippet/AnnotationTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision; +namespace Google\Cloud\Vision\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation; diff --git a/Vision/tests/Snippet/ImageTest.php b/Vision/tests/Snippet/ImageTest.php index 057c5a898519..262b21c036c7 100644 --- a/Vision/tests/Snippet/ImageTest.php +++ b/Vision/tests/Snippet/ImageTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision; +namespace Google\Cloud\Vision\Tests\Snippet; use Google\Cloud\Core\ServiceBuilder; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; diff --git a/Vision/tests/Snippet/V1/ImageAnnotatorClientTest.php b/Vision/tests/Snippet/V1/ImageAnnotatorClientTest.php index a54af74de124..71576ed5e45e 100644 --- a/Vision/tests/Snippet/V1/ImageAnnotatorClientTest.php +++ b/Vision/tests/Snippet/V1/ImageAnnotatorClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision\V1; +namespace Google\Cloud\Vision\Tests\Snippet\V1; use Google\ApiCore\Call; use Google\ApiCore\Transport\TransportInterface; diff --git a/Vision/tests/Snippet/VisionClientTest.php b/Vision/tests/Snippet/VisionClientTest.php index f8ba1148c05a..84922e967fa1 100644 --- a/Vision/tests/Snippet/VisionClientTest.php +++ b/Vision/tests/Snippet/VisionClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Snippets\Vision; +namespace Google\Cloud\Vision\Tests\Snippet; use Google\Cloud\Core\Testing\Snippet\SnippetTestCase; use Google\Cloud\Vision\Annotation; diff --git a/Vision/tests/Unit/V1/ImageAnnotatorClientTest.php b/Vision/tests/Unit/V1/ImageAnnotatorClientTest.php index a85515d29271..f88bbe966018 100644 --- a/Vision/tests/Unit/V1/ImageAnnotatorClientTest.php +++ b/Vision/tests/Unit/V1/ImageAnnotatorClientTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision\V1; +namespace Google\Cloud\Vision\Tests\Unit\V1; use Google\ApiCore\Call; use Google\ApiCore\Transport\TransportInterface; diff --git a/Vision/tests/Unit/VisionHelpersTraitTest.php b/Vision/tests/Unit/VisionHelpersTraitTest.php index 853daffa78d8..cd4621243eeb 100644 --- a/Vision/tests/Unit/VisionHelpersTraitTest.php +++ b/Vision/tests/Unit/VisionHelpersTraitTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Unit\Vision; +namespace Google\Cloud\Vision\Tests\Unit; use Google\Cloud\Vision\V1\AnnotateImageRequest; use Google\Cloud\Vision\V1\AnnotateImageResponse; From e5be433a721c3ef3a469c1bcca8e5782f04b8d8d Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Mar 2018 09:39:04 -0800 Subject: [PATCH 34/59] Move conformance and perf --- .../tests}/Perf/BigQueryTest.php | 0 {tests => BigQuery/tests}/Perf/bootstrap.php | 0 .../tests}/Perf/fixtures/bigquery.json | 0 .../Snippet/Coverage/ExcludeFilter.php | 0 .../tests/Conformance}/FirestoreTest.php | 0 .../tests/Conformance}/bootstrap.php | 0 .../GPBMetadata/Test.php | 0 .../Tests/CreateTest.php | 0 .../Tests/DeleteTest.php | 0 .../conformance-fixtures}/Tests/FieldPath.php | 0 .../conformance-fixtures}/Tests/GetTest.php | 0 .../conformance-fixtures}/Tests/SetOption.php | 0 .../conformance-fixtures}/Tests/SetTest.php | 0 .../conformance-fixtures}/Tests/Test.php | 0 .../Tests/UpdatePathsTest.php | 0 .../Tests/UpdateTest.php | 0 .../tests}/conformance-fixtures/VarInt.php | 0 .../tests}/Perf/LoggingPerfTest.php | 0 Logging/tests/Perf/bootstrap.php | 9 ++++++ .../TestComposerInstall.php | 0 tests/Perf/README.md | 29 ------------------- 21 files changed, 9 insertions(+), 29 deletions(-) rename {tests => BigQuery/tests}/Perf/BigQueryTest.php (100%) rename {tests => BigQuery/tests}/Perf/bootstrap.php (100%) rename {tests => BigQuery/tests}/Perf/fixtures/bigquery.json (100%) create mode 100644 Core/src/Testing/Snippet/Coverage/ExcludeFilter.php rename {tests/conformance => Firestore/tests/Conformance}/FirestoreTest.php (100%) rename {tests/conformance => Firestore/tests/Conformance}/bootstrap.php (100%) rename {tests/conformance-fixtures/Firestore => Firestore/tests/conformance-fixtures}/GPBMetadata/Test.php (100%) rename {tests/conformance-fixtures/Firestore => Firestore/tests/conformance-fixtures}/Tests/CreateTest.php (100%) rename {tests/conformance-fixtures/Firestore => Firestore/tests/conformance-fixtures}/Tests/DeleteTest.php (100%) rename {tests/conformance-fixtures/Firestore => Firestore/tests/conformance-fixtures}/Tests/FieldPath.php (100%) rename {tests/conformance-fixtures/Firestore => Firestore/tests/conformance-fixtures}/Tests/GetTest.php (100%) rename {tests/conformance-fixtures/Firestore => Firestore/tests/conformance-fixtures}/Tests/SetOption.php (100%) rename {tests/conformance-fixtures/Firestore => Firestore/tests/conformance-fixtures}/Tests/SetTest.php (100%) rename {tests/conformance-fixtures/Firestore => Firestore/tests/conformance-fixtures}/Tests/Test.php (100%) rename {tests/conformance-fixtures/Firestore => Firestore/tests/conformance-fixtures}/Tests/UpdatePathsTest.php (100%) rename {tests/conformance-fixtures/Firestore => Firestore/tests/conformance-fixtures}/Tests/UpdateTest.php (100%) rename {tests => Firestore/tests}/conformance-fixtures/VarInt.php (100%) rename {tests => Logging/tests}/Perf/LoggingPerfTest.php (100%) create mode 100644 Logging/tests/Perf/bootstrap.php rename tests/{component => Component}/TestComposerInstall.php (100%) delete mode 100644 tests/Perf/README.md diff --git a/tests/Perf/BigQueryTest.php b/BigQuery/tests/Perf/BigQueryTest.php similarity index 100% rename from tests/Perf/BigQueryTest.php rename to BigQuery/tests/Perf/BigQueryTest.php diff --git a/tests/Perf/bootstrap.php b/BigQuery/tests/Perf/bootstrap.php similarity index 100% rename from tests/Perf/bootstrap.php rename to BigQuery/tests/Perf/bootstrap.php diff --git a/tests/Perf/fixtures/bigquery.json b/BigQuery/tests/Perf/fixtures/bigquery.json similarity index 100% rename from tests/Perf/fixtures/bigquery.json rename to BigQuery/tests/Perf/fixtures/bigquery.json diff --git a/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php b/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/conformance/FirestoreTest.php b/Firestore/tests/Conformance/FirestoreTest.php similarity index 100% rename from tests/conformance/FirestoreTest.php rename to Firestore/tests/Conformance/FirestoreTest.php diff --git a/tests/conformance/bootstrap.php b/Firestore/tests/Conformance/bootstrap.php similarity index 100% rename from tests/conformance/bootstrap.php rename to Firestore/tests/Conformance/bootstrap.php diff --git a/tests/conformance-fixtures/Firestore/GPBMetadata/Test.php b/Firestore/tests/conformance-fixtures/GPBMetadata/Test.php similarity index 100% rename from tests/conformance-fixtures/Firestore/GPBMetadata/Test.php rename to Firestore/tests/conformance-fixtures/GPBMetadata/Test.php diff --git a/tests/conformance-fixtures/Firestore/Tests/CreateTest.php b/Firestore/tests/conformance-fixtures/Tests/CreateTest.php similarity index 100% rename from tests/conformance-fixtures/Firestore/Tests/CreateTest.php rename to Firestore/tests/conformance-fixtures/Tests/CreateTest.php diff --git a/tests/conformance-fixtures/Firestore/Tests/DeleteTest.php b/Firestore/tests/conformance-fixtures/Tests/DeleteTest.php similarity index 100% rename from tests/conformance-fixtures/Firestore/Tests/DeleteTest.php rename to Firestore/tests/conformance-fixtures/Tests/DeleteTest.php diff --git a/tests/conformance-fixtures/Firestore/Tests/FieldPath.php b/Firestore/tests/conformance-fixtures/Tests/FieldPath.php similarity index 100% rename from tests/conformance-fixtures/Firestore/Tests/FieldPath.php rename to Firestore/tests/conformance-fixtures/Tests/FieldPath.php diff --git a/tests/conformance-fixtures/Firestore/Tests/GetTest.php b/Firestore/tests/conformance-fixtures/Tests/GetTest.php similarity index 100% rename from tests/conformance-fixtures/Firestore/Tests/GetTest.php rename to Firestore/tests/conformance-fixtures/Tests/GetTest.php diff --git a/tests/conformance-fixtures/Firestore/Tests/SetOption.php b/Firestore/tests/conformance-fixtures/Tests/SetOption.php similarity index 100% rename from tests/conformance-fixtures/Firestore/Tests/SetOption.php rename to Firestore/tests/conformance-fixtures/Tests/SetOption.php diff --git a/tests/conformance-fixtures/Firestore/Tests/SetTest.php b/Firestore/tests/conformance-fixtures/Tests/SetTest.php similarity index 100% rename from tests/conformance-fixtures/Firestore/Tests/SetTest.php rename to Firestore/tests/conformance-fixtures/Tests/SetTest.php diff --git a/tests/conformance-fixtures/Firestore/Tests/Test.php b/Firestore/tests/conformance-fixtures/Tests/Test.php similarity index 100% rename from tests/conformance-fixtures/Firestore/Tests/Test.php rename to Firestore/tests/conformance-fixtures/Tests/Test.php diff --git a/tests/conformance-fixtures/Firestore/Tests/UpdatePathsTest.php b/Firestore/tests/conformance-fixtures/Tests/UpdatePathsTest.php similarity index 100% rename from tests/conformance-fixtures/Firestore/Tests/UpdatePathsTest.php rename to Firestore/tests/conformance-fixtures/Tests/UpdatePathsTest.php diff --git a/tests/conformance-fixtures/Firestore/Tests/UpdateTest.php b/Firestore/tests/conformance-fixtures/Tests/UpdateTest.php similarity index 100% rename from tests/conformance-fixtures/Firestore/Tests/UpdateTest.php rename to Firestore/tests/conformance-fixtures/Tests/UpdateTest.php diff --git a/tests/conformance-fixtures/VarInt.php b/Firestore/tests/conformance-fixtures/VarInt.php similarity index 100% rename from tests/conformance-fixtures/VarInt.php rename to Firestore/tests/conformance-fixtures/VarInt.php diff --git a/tests/Perf/LoggingPerfTest.php b/Logging/tests/Perf/LoggingPerfTest.php similarity index 100% rename from tests/Perf/LoggingPerfTest.php rename to Logging/tests/Perf/LoggingPerfTest.php diff --git a/Logging/tests/Perf/bootstrap.php b/Logging/tests/Perf/bootstrap.php new file mode 100644 index 000000000000..38a03fbbaaf5 --- /dev/null +++ b/Logging/tests/Perf/bootstrap.php @@ -0,0 +1,9 @@ + -``` - -The group name can be identified by opening a test file (i.e. -`tests/perf/BigQueryTest.php`), and looking for the `@group` annotation found -immediately before the class declaration: - -```php -/** - * @group bigquery - */ -class BigQueryTest extends TestCase -``` From cdf3017c9fc9655e52b6e816ca2af6f84edeb92c Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Mar 2018 09:42:34 -0800 Subject: [PATCH 35/59] Update bootstrap files --- BigQuery/tests/Perf/BigQueryTest.php | 4 +- BigQuery/tests/Snippet/bootstrap.php | 23 +------ Bigtable/tests/Snippet/bootstrap.php | 23 +------ Container/tests/Snippet/bootstrap.php | 23 +------ .../Snippet/Coverage/ExcludeFilter.php | 43 +++++++++++++ Core/tests/Snippet/bootstrap.php | 23 +------ Dataproc/tests/Snippet/bootstrap.php | 23 +------ Datastore/tests/Snippet/bootstrap.php | 23 +------ Debugger/tests/Snippet/bootstrap.php | 23 +------ Dlp/tests/Snippet/bootstrap.php | 23 +------ ErrorReporting/tests/Snippet/bootstrap.php | 23 +------ Firestore/tests/Conformance/FirestoreTest.php | 2 +- Firestore/tests/Snippet/bootstrap.php | 23 +------ Language/tests/Snippet/bootstrap.php | 23 +------ Logging/tests/Snippet/bootstrap.php | 23 +------ Monitoring/tests/Snippet/bootstrap.php | 23 +------ OsLogin/tests/Snippet/bootstrap.php | 23 +------ PubSub/tests/Snippet/bootstrap.php | 23 +------ Spanner/tests/Snippet/bootstrap.php | 23 +------ Speech/tests/Snippet/bootstrap.php | 23 +------ Storage/tests/Snippet/bootstrap.php | 23 +------ Trace/tests/Snippet/bootstrap.php | 23 +------ Translate/tests/Snippet/bootstrap.php | 23 +------ VideoIntelligence/tests/Snippet/bootstrap.php | 23 +------ Vision/tests/Snippet/bootstrap.php | 23 +------ phpunit-perf.xml.dist | 4 +- tests/Snippet/bootstrap.php | 64 ------------------- tests/Snippet/keyfile-stub.json | 12 ---- 28 files changed, 70 insertions(+), 565 deletions(-) delete mode 100644 tests/Snippet/bootstrap.php delete mode 100644 tests/Snippet/keyfile-stub.json diff --git a/BigQuery/tests/Perf/BigQueryTest.php b/BigQuery/tests/Perf/BigQueryTest.php index be09b0c7e90d..83685c4196b5 100644 --- a/BigQuery/tests/Perf/BigQueryTest.php +++ b/BigQuery/tests/Perf/BigQueryTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Perf; +namespace Google\Cloud\BigQuery\Tests\Perf; use Google\Cloud\BigQuery\BigQueryClient; use PHPUnit\Framework\TestCase; @@ -67,7 +67,7 @@ public function testPerf($query) public function queries() { - $queries = json_decode(file_get_contents(__DIR__ .'/fixtures/'. self::SOURCE), true); + $queries = json_decode(file_get_contents(__DIR__ . '/fixtures/' . self::SOURCE), true); foreach ($queries as $key => $q) { $queries[$key] = is_array($q) ? $q diff --git a/BigQuery/tests/Snippet/bootstrap.php b/BigQuery/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/BigQuery/tests/Snippet/bootstrap.php +++ b/BigQuery/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Bigtable/tests/Snippet/bootstrap.php b/Bigtable/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Bigtable/tests/Snippet/bootstrap.php +++ b/Bigtable/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Container/tests/Snippet/bootstrap.php b/Container/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Container/tests/Snippet/bootstrap.php +++ b/Container/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php b/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php index e69de29bb2d1..4915518af54a 100644 --- a/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php +++ b/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php @@ -0,0 +1,43 @@ +excludeDirs = $excludeDirs; + } + + public function accept() { + // Accept the current item if we can recurse into it + // or it is a value starting with "test" + foreach ($this->excludeDirs as $excludeDir) { + if (strpos($this->current(), $excludeDir) !== FALSE) { + return false; + } + } + return true; + } +} diff --git a/Core/tests/Snippet/bootstrap.php b/Core/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Core/tests/Snippet/bootstrap.php +++ b/Core/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Dataproc/tests/Snippet/bootstrap.php b/Dataproc/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Dataproc/tests/Snippet/bootstrap.php +++ b/Dataproc/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Datastore/tests/Snippet/bootstrap.php b/Datastore/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Datastore/tests/Snippet/bootstrap.php +++ b/Datastore/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Debugger/tests/Snippet/bootstrap.php b/Debugger/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Debugger/tests/Snippet/bootstrap.php +++ b/Debugger/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Dlp/tests/Snippet/bootstrap.php b/Dlp/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Dlp/tests/Snippet/bootstrap.php +++ b/Dlp/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/ErrorReporting/tests/Snippet/bootstrap.php b/ErrorReporting/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/ErrorReporting/tests/Snippet/bootstrap.php +++ b/ErrorReporting/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Firestore/tests/Conformance/FirestoreTest.php b/Firestore/tests/Conformance/FirestoreTest.php index cd73bdc8b042..cd70aa20e6db 100644 --- a/Firestore/tests/Conformance/FirestoreTest.php +++ b/Firestore/tests/Conformance/FirestoreTest.php @@ -15,7 +15,7 @@ * limitations under the License. */ -namespace Google\Cloud\Tests\Conformance; +namespace Google\Cloud\Firestore\Tests\Conformance; use Google\Cloud\Core\Timestamp; use Google\Cloud\Firestore\Connection\ConnectionInterface; diff --git a/Firestore/tests/Snippet/bootstrap.php b/Firestore/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Firestore/tests/Snippet/bootstrap.php +++ b/Firestore/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Language/tests/Snippet/bootstrap.php b/Language/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Language/tests/Snippet/bootstrap.php +++ b/Language/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Logging/tests/Snippet/bootstrap.php b/Logging/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Logging/tests/Snippet/bootstrap.php +++ b/Logging/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Monitoring/tests/Snippet/bootstrap.php b/Monitoring/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Monitoring/tests/Snippet/bootstrap.php +++ b/Monitoring/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/OsLogin/tests/Snippet/bootstrap.php b/OsLogin/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/OsLogin/tests/Snippet/bootstrap.php +++ b/OsLogin/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/PubSub/tests/Snippet/bootstrap.php b/PubSub/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/PubSub/tests/Snippet/bootstrap.php +++ b/PubSub/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Spanner/tests/Snippet/bootstrap.php b/Spanner/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Spanner/tests/Snippet/bootstrap.php +++ b/Spanner/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Speech/tests/Snippet/bootstrap.php b/Speech/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Speech/tests/Snippet/bootstrap.php +++ b/Speech/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Storage/tests/Snippet/bootstrap.php b/Storage/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Storage/tests/Snippet/bootstrap.php +++ b/Storage/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Trace/tests/Snippet/bootstrap.php b/Trace/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Trace/tests/Snippet/bootstrap.php +++ b/Trace/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Translate/tests/Snippet/bootstrap.php b/Translate/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Translate/tests/Snippet/bootstrap.php +++ b/Translate/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/VideoIntelligence/tests/Snippet/bootstrap.php b/VideoIntelligence/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/VideoIntelligence/tests/Snippet/bootstrap.php +++ b/VideoIntelligence/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/Vision/tests/Snippet/bootstrap.php b/Vision/tests/Snippet/bootstrap.php index 4958dbb6bfd3..274ef3943907 100644 --- a/Vision/tests/Snippet/bootstrap.php +++ b/Vision/tests/Snippet/bootstrap.php @@ -6,33 +6,12 @@ use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; require __DIR__ . '/../../vendor/autoload.php'; -class ExcludeFilter extends FilterIterator { - - private $excludeDirs; - - public function __construct(Iterator $iterator, array $excludeDirs) - { - parent::__construct($iterator); - $this->excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - $filteredIterator = new ExcludeFilter( new GlobIterator(__DIR__ . '/../../src'), [] diff --git a/phpunit-perf.xml.dist b/phpunit-perf.xml.dist index 576e4cdaf7d8..9d8bf59eec02 100644 --- a/phpunit-perf.xml.dist +++ b/phpunit-perf.xml.dist @@ -1,8 +1,8 @@ - + - tests/perf + */tests/Perf diff --git a/tests/Snippet/bootstrap.php b/tests/Snippet/bootstrap.php deleted file mode 100644 index dfd13f96fd8f..000000000000 --- a/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,64 +0,0 @@ -excludeDirs = $excludeDirs; - } - - public function accept() { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { - return false; - } - } - return true; - } -} - -$filteredIterator = new ExcludeFilter( - new GlobIterator(__DIR__ . '/../../*/src'), - ['dev/src'] -); - -$parser = new Parser; -$scanner = new Scanner($parser, $filteredIterator); -$coverage = new Coverage($scanner); -$coverage->buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/tests/Snippet/keyfile-stub.json b/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} From 5729781bf88bfbc8a3e18bc96581c71585a3e96d Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Mar 2018 09:52:09 -0800 Subject: [PATCH 36/59] Update bootstrap --- BigQuery/tests/Snippet/bootstrap.php | 2 +- Bigtable/tests/Snippet/bootstrap.php | 2 +- Container/tests/Snippet/bootstrap.php | 2 +- Core/{tests => src/Testing}/Snippet/keyfile-stub.json | 0 Core/tests/Snippet/bootstrap.php | 2 +- Dataproc/tests/Snippet/bootstrap.php | 2 +- Datastore/tests/Snippet/bootstrap.php | 2 +- Debugger/tests/Snippet/bootstrap.php | 2 +- Dlp/tests/Snippet/bootstrap.php | 2 +- ErrorReporting/tests/Snippet/bootstrap.php | 2 +- Firestore/tests/Snippet/bootstrap.php | 2 +- Language/tests/Snippet/bootstrap.php | 2 +- Logging/tests/Snippet/bootstrap.php | 2 +- Monitoring/tests/Snippet/bootstrap.php | 2 +- OsLogin/tests/Snippet/bootstrap.php | 2 +- PubSub/tests/Snippet/bootstrap.php | 2 +- Spanner/tests/Snippet/bootstrap.php | 2 +- Speech/tests/Snippet/bootstrap.php | 2 +- Storage/tests/Snippet/bootstrap.php | 2 +- Trace/tests/Snippet/bootstrap.php | 2 +- Translate/tests/Snippet/bootstrap.php | 2 +- VideoIntelligence/tests/Snippet/bootstrap.php | 2 +- Vision/tests/Snippet/bootstrap.php | 2 +- 23 files changed, 22 insertions(+), 22 deletions(-) rename Core/{tests => src/Testing}/Snippet/keyfile-stub.json (100%) diff --git a/BigQuery/tests/Snippet/bootstrap.php b/BigQuery/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/BigQuery/tests/Snippet/bootstrap.php +++ b/BigQuery/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Bigtable/tests/Snippet/bootstrap.php b/Bigtable/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Bigtable/tests/Snippet/bootstrap.php +++ b/Bigtable/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Container/tests/Snippet/bootstrap.php b/Container/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Container/tests/Snippet/bootstrap.php +++ b/Container/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Core/tests/Snippet/keyfile-stub.json b/Core/src/Testing/Snippet/keyfile-stub.json similarity index 100% rename from Core/tests/Snippet/keyfile-stub.json rename to Core/src/Testing/Snippet/keyfile-stub.json diff --git a/Core/tests/Snippet/bootstrap.php b/Core/tests/Snippet/bootstrap.php index 274ef3943907..6cdeccdd2cc6 100644 --- a/Core/tests/Snippet/bootstrap.php +++ b/Core/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Dataproc/tests/Snippet/bootstrap.php b/Dataproc/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Dataproc/tests/Snippet/bootstrap.php +++ b/Dataproc/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Datastore/tests/Snippet/bootstrap.php b/Datastore/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Datastore/tests/Snippet/bootstrap.php +++ b/Datastore/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Debugger/tests/Snippet/bootstrap.php b/Debugger/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Debugger/tests/Snippet/bootstrap.php +++ b/Debugger/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Dlp/tests/Snippet/bootstrap.php b/Dlp/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Dlp/tests/Snippet/bootstrap.php +++ b/Dlp/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/ErrorReporting/tests/Snippet/bootstrap.php b/ErrorReporting/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/ErrorReporting/tests/Snippet/bootstrap.php +++ b/ErrorReporting/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Firestore/tests/Snippet/bootstrap.php b/Firestore/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Firestore/tests/Snippet/bootstrap.php +++ b/Firestore/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Language/tests/Snippet/bootstrap.php b/Language/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Language/tests/Snippet/bootstrap.php +++ b/Language/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Logging/tests/Snippet/bootstrap.php b/Logging/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Logging/tests/Snippet/bootstrap.php +++ b/Logging/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Monitoring/tests/Snippet/bootstrap.php b/Monitoring/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Monitoring/tests/Snippet/bootstrap.php +++ b/Monitoring/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/OsLogin/tests/Snippet/bootstrap.php b/OsLogin/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/OsLogin/tests/Snippet/bootstrap.php +++ b/OsLogin/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/PubSub/tests/Snippet/bootstrap.php b/PubSub/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/PubSub/tests/Snippet/bootstrap.php +++ b/PubSub/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Spanner/tests/Snippet/bootstrap.php b/Spanner/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Spanner/tests/Snippet/bootstrap.php +++ b/Spanner/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Speech/tests/Snippet/bootstrap.php b/Speech/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Speech/tests/Snippet/bootstrap.php +++ b/Speech/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Storage/tests/Snippet/bootstrap.php b/Storage/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Storage/tests/Snippet/bootstrap.php +++ b/Storage/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Trace/tests/Snippet/bootstrap.php b/Trace/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Trace/tests/Snippet/bootstrap.php +++ b/Trace/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Translate/tests/Snippet/bootstrap.php b/Translate/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Translate/tests/Snippet/bootstrap.php +++ b/Translate/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/VideoIntelligence/tests/Snippet/bootstrap.php b/VideoIntelligence/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/VideoIntelligence/tests/Snippet/bootstrap.php +++ b/VideoIntelligence/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Vision/tests/Snippet/bootstrap.php b/Vision/tests/Snippet/bootstrap.php index 274ef3943907..d474178177d8 100644 --- a/Vision/tests/Snippet/bootstrap.php +++ b/Vision/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; From a507f5f78399cf1ea1280e659e7d6e60b8773061 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Mar 2018 10:00:48 -0800 Subject: [PATCH 37/59] Address PR comments --- Core/src/Batch/BatchConfig.php | 118 ------------------ .../DocGenerator/Parser/MarkdownParser.php | 1 - 2 files changed, 119 deletions(-) delete mode 100644 Core/src/Batch/BatchConfig.php diff --git a/Core/src/Batch/BatchConfig.php b/Core/src/Batch/BatchConfig.php deleted file mode 100644 index 0160ecc4d1e5..000000000000 --- a/Core/src/Batch/BatchConfig.php +++ /dev/null @@ -1,118 +0,0 @@ -idmap) - ? $this->jobs[$identifier] - : null; - } - - /** - * Get the job with the given numeric id. - * - * @param int $idNum A numeric id of the job. - * - * @return BatchJob|null - */ - public function getJobFromIdNum($idNum) - { - return array_key_exists($idNum, $this->idmap_reverse) - ? $this->jobs[$this->idmap_reverse[$idNum]] - : null; - } - - /** - * Register a job for executing in batch. - * - * @param string $identifier Unique identifier of the job. - * @param callable $func Any Callable except for Closure. The callable - * should accept an array of items as the first argument. - * @param array $options [optional] { - * Configuration options. - * - * @type int $batchSize The size of the batch. - * @type float $callPeriod The period in seconds from the last execution - * to force executing the job. - * @type int $workerNum The number of child processes. It only takes - * effect with the {@see \Google\Cloud\Core\Batch\BatchDaemon}. - * @type string $bootstrapFile A file to load before executing the - * job. It's needed for registering global functions. - * } - * @return void - */ - public function registerJob($identifier, $func, array $options = []) - { - if (array_key_exists($identifier, $this->idmap)) { - $idNum = $this->idmap[$identifier]; - } else { - $idNum = count($this->idmap) + 1; - $this->idmap_reverse[$idNum] = $identifier; - } - $this->jobs[$identifier] = new BatchJob( - $identifier, - $func, - $idNum, - $options - ); - $this->idmap[$identifier] = $idNum; - } - - /** - * Get all the jobs. - * - * @return BatchJob[] - */ - public function getJobs() - { - return $this->jobs; - } -} diff --git a/dev/src/DocGenerator/Parser/MarkdownParser.php b/dev/src/DocGenerator/Parser/MarkdownParser.php index 7ef2c5f9b250..058dba85bbfe 100644 --- a/dev/src/DocGenerator/Parser/MarkdownParser.php +++ b/dev/src/DocGenerator/Parser/MarkdownParser.php @@ -35,7 +35,6 @@ public function __construct($currentFile, $content) public function parse() { - // echo $this->currentFile;exit; $html = $this->markdown->parse($this->content); $doc = new DOMDocument; From 364a6649c0b91da432e2aa25c2f76e9b52da542f Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Mar 2018 11:26:50 -0800 Subject: [PATCH 38/59] Restore snippet test --- Firestore/composer.json | 9 ++++--- Vision/src/VisionHelpersTrait.php | 1 - composer.json | 6 ++--- tests/Snippet/bootstrap.php | 43 +++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 tests/Snippet/bootstrap.php diff --git a/Firestore/composer.json b/Firestore/composer.json index 72cb256c052f..31de39eb8802 100644 --- a/Firestore/composer.json +++ b/Firestore/composer.json @@ -35,10 +35,11 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Firestore\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\Firestore\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\Firestore\\": "tests/system" - } + "Google\\Cloud\\Firestore\\Tests\\": "tests" + }, + "classmap": [ + "tests/conformance-fixtures" + ] }, "repositories": [{ "type": "vcs", diff --git a/Vision/src/VisionHelpersTrait.php b/Vision/src/VisionHelpersTrait.php index 4a5f5fd27b03..5a8ccb8388f0 100644 --- a/Vision/src/VisionHelpersTrait.php +++ b/Vision/src/VisionHelpersTrait.php @@ -21,7 +21,6 @@ use Google\Cloud\Vision\V1\AnnotateImageRequest; use Google\Cloud\Vision\V1\AnnotateImageResponse; use Google\Cloud\Vision\V1\Feature; -use Google\Cloud\Vision\V1\Image; use InvalidArgumentException; /** diff --git a/composer.json b/composer.json index ba14fc6c080a..48286ccc2a7f 100644 --- a/composer.json +++ b/composer.json @@ -95,6 +95,7 @@ }, "autoload": { "psr-4": { + "Google\\Cloud\\": "src", "Google\\Cloud\\BigQuery\\": "BigQuery/src", "Google\\Cloud\\Bigtable\\": "Bigtable/src", "Google\\Cloud\\Container\\": "Container/src", @@ -145,10 +146,7 @@ "Google\\Cloud\\Translate\\Tests\\": "Translate/tests", "Google\\Cloud\\VideoIntelligence\\Tests\\": "VideoIntelligence/tests", "Google\\Cloud\\Vision\\Tests\\": "Vision/tests" - }, - "classmap": [ - "tests/conformance-fixtures" - ] + } }, "scripts": { "google-cloud": "dev/google-cloud" diff --git a/tests/Snippet/bootstrap.php b/tests/Snippet/bootstrap.php new file mode 100644 index 000000000000..af6622402481 --- /dev/null +++ b/tests/Snippet/bootstrap.php @@ -0,0 +1,43 @@ +buildListToCover(); + +Container::$coverage = $coverage; +Container::$parser = $parser; + +register_shutdown_function(function () { + $uncovered = Container::$coverage->uncovered(); + + if (!file_exists(__DIR__ . '/../../build')) { + mkdir(__DIR__ . '/../../build', 0777, true); + } + + file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); + + if (!empty($uncovered)) { + echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); + if (extension_loaded('grpc')) { + exit(1); + } + } +}); From 1ced259ae3b7800afaa915e03f133cc8dcce45b6 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Mar 2018 13:35:28 -0800 Subject: [PATCH 39/59] Remove keyfile stubs --- BigQuery/tests/Snippet/keyfile-stub.json | 12 ------------ Bigtable/tests/Snippet/keyfile-stub.json | 12 ------------ Container/tests/Snippet/keyfile-stub.json | 12 ------------ Dataproc/tests/Snippet/keyfile-stub.json | 12 ------------ Datastore/tests/Snippet/keyfile-stub.json | 12 ------------ Debugger/tests/Snippet/keyfile-stub.json | 12 ------------ Dlp/tests/Snippet/keyfile-stub.json | 12 ------------ ErrorReporting/tests/Snippet/keyfile-stub.json | 12 ------------ Firestore/tests/Snippet/keyfile-stub.json | 12 ------------ Language/tests/Snippet/keyfile-stub.json | 12 ------------ Logging/tests/Snippet/keyfile-stub.json | 12 ------------ Monitoring/tests/Snippet/keyfile-stub.json | 12 ------------ OsLogin/tests/Snippet/keyfile-stub.json | 12 ------------ PubSub/tests/Snippet/keyfile-stub.json | 12 ------------ Spanner/tests/Snippet/keyfile-stub.json | 12 ------------ Speech/tests/Snippet/keyfile-stub.json | 12 ------------ Storage/tests/Snippet/keyfile-stub.json | 12 ------------ Trace/tests/Snippet/keyfile-stub.json | 12 ------------ Translate/tests/Snippet/keyfile-stub.json | 12 ------------ VideoIntelligence/tests/Snippet/keyfile-stub.json | 12 ------------ Vision/tests/Snippet/keyfile-stub.json | 12 ------------ 21 files changed, 252 deletions(-) delete mode 100644 BigQuery/tests/Snippet/keyfile-stub.json delete mode 100644 Bigtable/tests/Snippet/keyfile-stub.json delete mode 100644 Container/tests/Snippet/keyfile-stub.json delete mode 100644 Dataproc/tests/Snippet/keyfile-stub.json delete mode 100644 Datastore/tests/Snippet/keyfile-stub.json delete mode 100644 Debugger/tests/Snippet/keyfile-stub.json delete mode 100644 Dlp/tests/Snippet/keyfile-stub.json delete mode 100644 ErrorReporting/tests/Snippet/keyfile-stub.json delete mode 100644 Firestore/tests/Snippet/keyfile-stub.json delete mode 100644 Language/tests/Snippet/keyfile-stub.json delete mode 100644 Logging/tests/Snippet/keyfile-stub.json delete mode 100644 Monitoring/tests/Snippet/keyfile-stub.json delete mode 100644 OsLogin/tests/Snippet/keyfile-stub.json delete mode 100644 PubSub/tests/Snippet/keyfile-stub.json delete mode 100644 Spanner/tests/Snippet/keyfile-stub.json delete mode 100644 Speech/tests/Snippet/keyfile-stub.json delete mode 100644 Storage/tests/Snippet/keyfile-stub.json delete mode 100644 Trace/tests/Snippet/keyfile-stub.json delete mode 100644 Translate/tests/Snippet/keyfile-stub.json delete mode 100644 VideoIntelligence/tests/Snippet/keyfile-stub.json delete mode 100644 Vision/tests/Snippet/keyfile-stub.json diff --git a/BigQuery/tests/Snippet/keyfile-stub.json b/BigQuery/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/BigQuery/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Bigtable/tests/Snippet/keyfile-stub.json b/Bigtable/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Bigtable/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Container/tests/Snippet/keyfile-stub.json b/Container/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Container/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Dataproc/tests/Snippet/keyfile-stub.json b/Dataproc/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Dataproc/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Datastore/tests/Snippet/keyfile-stub.json b/Datastore/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Datastore/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Debugger/tests/Snippet/keyfile-stub.json b/Debugger/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Debugger/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Dlp/tests/Snippet/keyfile-stub.json b/Dlp/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Dlp/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/ErrorReporting/tests/Snippet/keyfile-stub.json b/ErrorReporting/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/ErrorReporting/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Firestore/tests/Snippet/keyfile-stub.json b/Firestore/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Firestore/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Language/tests/Snippet/keyfile-stub.json b/Language/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Language/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Logging/tests/Snippet/keyfile-stub.json b/Logging/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Logging/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Monitoring/tests/Snippet/keyfile-stub.json b/Monitoring/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Monitoring/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/OsLogin/tests/Snippet/keyfile-stub.json b/OsLogin/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/OsLogin/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/PubSub/tests/Snippet/keyfile-stub.json b/PubSub/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/PubSub/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Spanner/tests/Snippet/keyfile-stub.json b/Spanner/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Spanner/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Speech/tests/Snippet/keyfile-stub.json b/Speech/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Speech/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Storage/tests/Snippet/keyfile-stub.json b/Storage/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Storage/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Trace/tests/Snippet/keyfile-stub.json b/Trace/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Trace/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Translate/tests/Snippet/keyfile-stub.json b/Translate/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Translate/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/VideoIntelligence/tests/Snippet/keyfile-stub.json b/VideoIntelligence/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/VideoIntelligence/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} diff --git a/Vision/tests/Snippet/keyfile-stub.json b/Vision/tests/Snippet/keyfile-stub.json deleted file mode 100644 index e1c618b7497e..000000000000 --- a/Vision/tests/Snippet/keyfile-stub.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "service_account", - "project_id": "my-awesome-project", - "private_key_id": "", - "private_key": "", - "client_email": "", - "client_id": "", - "auth_uri": "", - "token_uri": "", - "auth_provider_x509_cert_url": "", - "client_x509_cert_url": "" -} From 1f68efdfe8528ea7f1c25934223fe07444ff2680 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Thu, 1 Mar 2018 13:47:04 -0800 Subject: [PATCH 40/59] Update pubsub dependencies --- Logging/composer.json | 2 +- Storage/composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Logging/composer.json b/Logging/composer.json index 48f476030a5b..bf7a933cc57b 100644 --- a/Logging/composer.json +++ b/Logging/composer.json @@ -16,7 +16,7 @@ "google/cloud-core": "dev-master as 1.14", "google/cloud-storage": "^1.3", "google/cloud-bigquery": "^1.0", - "google/cloud-pubsub": "^0.12" + "google/cloud-pubsub": "^1.0" }, "suggest": { "ext-grpc": "The gRPC extension enables use of the performant gRPC transport", diff --git a/Storage/composer.json b/Storage/composer.json index 625c31a562cf..53f4428c12ff 100644 --- a/Storage/composer.json +++ b/Storage/composer.json @@ -13,7 +13,7 @@ "erusev/parsedown": "^1.6", "google/cloud-core": "dev-master as 1.14", "phpseclib/phpseclib": "^2", - "google/cloud-pubsub": "^0.12" + "google/cloud-pubsub": "^1.0" }, "suggest": { "phpseclib/phpseclib": "May be used in place of OpenSSL for creating signed Cloud Storage URLs. Please require version ^2.", From 9fa2a3e374dabc3aa3819be35c7fa4ab24b6ad9c Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Mar 2018 08:48:04 -0800 Subject: [PATCH 41/59] Update composer, move debugger bin --- Datastore/composer.json | 4 +--- Debugger/{src => }/bin/google-cloud-debugger | 0 Debugger/composer.json | 13 ++++++++++++- ErrorReporting/composer.json | 3 +++ Language/composer.json | 4 +--- Logging/composer.json | 4 +--- Monitoring/composer.json | 3 +++ PubSub/composer.json | 4 +--- Spanner/composer.json | 4 +--- Speech/composer.json | 4 +--- Storage/composer.json | 4 +--- Trace/composer.json | 4 +--- Translate/composer.json | 4 +--- VideoIntelligence/composer.json | 3 +++ Vision/composer.json | 4 +--- 15 files changed, 31 insertions(+), 31 deletions(-) rename Debugger/{src => }/bin/google-cloud-debugger (100%) diff --git a/Datastore/composer.json b/Datastore/composer.json index 1a9918a363cb..d43ee947c396 100644 --- a/Datastore/composer.json +++ b/Datastore/composer.json @@ -28,9 +28,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Datastore\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\Datastore\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\Datastore\\": "tests/system" + "Google\\Cloud\\Datastore\\Tests\\": "tests" } }, "repositories": [{ diff --git a/Debugger/src/bin/google-cloud-debugger b/Debugger/bin/google-cloud-debugger similarity index 100% rename from Debugger/src/bin/google-cloud-debugger rename to Debugger/bin/google-cloud-debugger diff --git a/Debugger/composer.json b/Debugger/composer.json index 7e9071585147..85b55441b2d4 100644 --- a/Debugger/composer.json +++ b/Debugger/composer.json @@ -9,6 +9,12 @@ "psr/log": "^1.0", "ext-stackdriver_debugger": "*" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0", + "squizlabs/php_codesniffer": "2.*", + "phpdocumentor/reflection": "^3.0", + "erusev/parsedown": "^1.6" + }, "extra": { "component": { "id": "cloud-debugger", @@ -19,7 +25,12 @@ }, "autoload": { "psr-4": { - "Google\\Cloud\\Debugger\\": "" + "Google\\Cloud\\Debugger\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "Google\\Cloud\\Debugger\\Tests\\": "tests" } }, "archive": { diff --git a/ErrorReporting/composer.json b/ErrorReporting/composer.json index dabe265790e1..7b6ecba46520 100644 --- a/ErrorReporting/composer.json +++ b/ErrorReporting/composer.json @@ -8,6 +8,9 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0" + }, "suggest": { "ext-grpc": "The gRPC extension allows more granular control over Error Reporting", "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." diff --git a/Language/composer.json b/Language/composer.json index ced0928e9867..591f3e021087 100644 --- a/Language/composer.json +++ b/Language/composer.json @@ -36,9 +36,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Language\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\Language\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\Language\\": "tests/system" + "Google\\Cloud\\Language\\Tests\\": "tests" } }, "repositories": [{ diff --git a/Logging/composer.json b/Logging/composer.json index bf7a933cc57b..a30b0edb66bd 100644 --- a/Logging/composer.json +++ b/Logging/composer.json @@ -37,9 +37,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Logging\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\Logging\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\Logging\\": "tests/system" + "Google\\Cloud\\Logging\\Tests\\": "tests" } }, "repositories": [{ diff --git a/Monitoring/composer.json b/Monitoring/composer.json index fbac721a4305..f3ed16e70d3d 100644 --- a/Monitoring/composer.json +++ b/Monitoring/composer.json @@ -7,6 +7,9 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0" + }, "suggest": { "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." }, diff --git a/PubSub/composer.json b/PubSub/composer.json index 257d1863eb6c..6ed7135f5579 100644 --- a/PubSub/composer.json +++ b/PubSub/composer.json @@ -34,9 +34,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\PubSub\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\PubSub\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\PubSub\\": "tests/system" + "Google\\Cloud\\PubSub\\Tests\\": "tests" } }, "repositories": [{ diff --git a/Spanner/composer.json b/Spanner/composer.json index 39e752856236..11ed6dc7e153 100644 --- a/Spanner/composer.json +++ b/Spanner/composer.json @@ -34,9 +34,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Spanner\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\Spanner\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\Spanner\\": "tests/system" + "Google\\Cloud\\Spanner\\Tests\\": "tests" } }, "repositories": [{ diff --git a/Speech/composer.json b/Speech/composer.json index abd0c0252bc3..c79c0c15e677 100644 --- a/Speech/composer.json +++ b/Speech/composer.json @@ -35,9 +35,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Speech\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\Speech\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\Speech\\": "tests/system" + "Google\\Cloud\\Speech\\Tests\\": "tests" } }, "repositories": [{ diff --git a/Storage/composer.json b/Storage/composer.json index 53f4428c12ff..8c3ef5286a7e 100644 --- a/Storage/composer.json +++ b/Storage/composer.json @@ -34,9 +34,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Storage\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\Storage\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\Storage\\": "tests/system" + "Google\\Cloud\\Storage\\Tests\\": "tests" } }, "repositories": [{ diff --git a/Trace/composer.json b/Trace/composer.json index 461ab6cceacb..17a62e758e8d 100644 --- a/Trace/composer.json +++ b/Trace/composer.json @@ -38,9 +38,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Trace\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\Trace\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\Trace\\": "tests/system" + "Google\\Cloud\\Trace\\Tests\\": "tests" } }, "repositories": [{ diff --git a/Translate/composer.json b/Translate/composer.json index 24211d14779d..621599818678 100644 --- a/Translate/composer.json +++ b/Translate/composer.json @@ -28,9 +28,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Translate\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\Translate\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\Translate\\": "tests/system" + "Google\\Cloud\\Translate\\Tests\\": "tests" } }, "repositories": [{ diff --git a/VideoIntelligence/composer.json b/VideoIntelligence/composer.json index 944956f8b5c5..1cacc66ac883 100644 --- a/VideoIntelligence/composer.json +++ b/VideoIntelligence/composer.json @@ -7,6 +7,9 @@ "google/proto-client": "^0.34", "google/gax": "^0.30" }, + "require-dev": { + "phpunit/phpunit": "^4.8|^5.0" + }, "suggest": { "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." }, diff --git a/Vision/composer.json b/Vision/composer.json index 281fa8998744..e8f9ad397a7a 100644 --- a/Vision/composer.json +++ b/Vision/composer.json @@ -36,9 +36,7 @@ }, "autoload-dev": { "psr-4": { - "Google\\Cloud\\Tests\\Unit\\Vision\\": "tests/unit", - "Google\\Cloud\\Tests\\Snippet\\Vision\\": "tests/snippets", - "Google\\Cloud\\Tests\\System\\Vision\\": "tests/system" + "Google\\Cloud\\Vision\\Tests\\": "tests" } }, "repositories": [{ From 242cc70fc4e48d3febec61fe89e62372936734c1 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Mar 2018 08:52:20 -0800 Subject: [PATCH 42/59] Remove references to local Core --- BigQuery/composer.json | 7 +------ Datastore/composer.json | 9 ++------- Firestore/composer.json | 9 ++------- Language/composer.json | 7 +------ Logging/composer.json | 7 +------ PubSub/composer.json | 9 ++------- Spanner/composer.json | 9 ++------- Speech/composer.json | 7 +------ Storage/composer.json | 7 +------ Trace/composer.json | 9 ++------- Translate/composer.json | 9 ++------- Vision/composer.json | 7 +------ 12 files changed, 18 insertions(+), 78 deletions(-) diff --git a/BigQuery/composer.json b/BigQuery/composer.json index 375921dfd8b6..2c18983c2537 100644 --- a/BigQuery/composer.json +++ b/BigQuery/composer.json @@ -12,7 +12,6 @@ "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14", "google/cloud-storage": "^1.3" }, "suggest": { @@ -36,9 +35,5 @@ "psr-4": { "Google\\Cloud\\BigQuery\\Tests\\": "tests" } - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } diff --git a/Datastore/composer.json b/Datastore/composer.json index d43ee947c396..a1f3e6f450ea 100644 --- a/Datastore/composer.json +++ b/Datastore/composer.json @@ -10,8 +10,7 @@ "phpunit/phpunit": "^4.8|^5.0", "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", - "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14" + "erusev/parsedown": "^1.6" }, "extra": { "component": { @@ -30,9 +29,5 @@ "psr-4": { "Google\\Cloud\\Datastore\\Tests\\": "tests" } - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } diff --git a/Firestore/composer.json b/Firestore/composer.json index 31de39eb8802..132b91876c46 100644 --- a/Firestore/composer.json +++ b/Firestore/composer.json @@ -14,8 +14,7 @@ "phpunit/phpunit": "^4.8|^5.0", "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", - "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14" + "erusev/parsedown": "^1.6" }, "suggest": { "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." @@ -40,9 +39,5 @@ "classmap": [ "tests/conformance-fixtures" ] - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } diff --git a/Language/composer.json b/Language/composer.json index 591f3e021087..bfd07c09a76b 100644 --- a/Language/composer.json +++ b/Language/composer.json @@ -13,7 +13,6 @@ "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14", "google/cloud-storage": "^1.3" }, "suggest": { @@ -38,9 +37,5 @@ "psr-4": { "Google\\Cloud\\Language\\Tests\\": "tests" } - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } diff --git a/Logging/composer.json b/Logging/composer.json index a30b0edb66bd..f0b0127f736c 100644 --- a/Logging/composer.json +++ b/Logging/composer.json @@ -13,7 +13,6 @@ "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14", "google/cloud-storage": "^1.3", "google/cloud-bigquery": "^1.0", "google/cloud-pubsub": "^1.0" @@ -39,9 +38,5 @@ "psr-4": { "Google\\Cloud\\Logging\\Tests\\": "tests" } - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } diff --git a/PubSub/composer.json b/PubSub/composer.json index 6ed7135f5579..4a4cbc44e72c 100644 --- a/PubSub/composer.json +++ b/PubSub/composer.json @@ -12,8 +12,7 @@ "phpunit/phpunit": "^4.8|^5.0", "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", - "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14" + "erusev/parsedown": "^1.6" }, "suggest": { "ext-grpc": "The gRPC extension enables use of the performant gRPC transport", @@ -36,9 +35,5 @@ "psr-4": { "Google\\Cloud\\PubSub\\Tests\\": "tests" } - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } diff --git a/Spanner/composer.json b/Spanner/composer.json index 11ed6dc7e153..271c13cec219 100644 --- a/Spanner/composer.json +++ b/Spanner/composer.json @@ -13,8 +13,7 @@ "phpunit/phpunit": "^4.8|^5.0", "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", - "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14" + "erusev/parsedown": "^1.6" }, "suggest": { "ext-protobuf": "Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions." @@ -36,9 +35,5 @@ "psr-4": { "Google\\Cloud\\Spanner\\Tests\\": "tests" } - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } diff --git a/Speech/composer.json b/Speech/composer.json index c79c0c15e677..c56ba2a256c4 100644 --- a/Speech/composer.json +++ b/Speech/composer.json @@ -13,7 +13,6 @@ "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14", "google/cloud-storage": "^1.3" }, "suggest": { @@ -37,9 +36,5 @@ "psr-4": { "Google\\Cloud\\Speech\\Tests\\": "tests" } - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } diff --git a/Storage/composer.json b/Storage/composer.json index 8c3ef5286a7e..96b3fff14ac6 100644 --- a/Storage/composer.json +++ b/Storage/composer.json @@ -11,7 +11,6 @@ "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14", "phpseclib/phpseclib": "^2", "google/cloud-pubsub": "^1.0" }, @@ -36,9 +35,5 @@ "psr-4": { "Google\\Cloud\\Storage\\Tests\\": "tests" } - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } diff --git a/Trace/composer.json b/Trace/composer.json index 17a62e758e8d..bbcda2dd4dfc 100644 --- a/Trace/composer.json +++ b/Trace/composer.json @@ -13,8 +13,7 @@ "phpunit/phpunit": "^4.8|^5.0", "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", - "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14" + "erusev/parsedown": "^1.6" }, "suggest": { "ext-grpc": "The gRPC extension enables use of the performant gRPC transport", @@ -40,9 +39,5 @@ "psr-4": { "Google\\Cloud\\Trace\\Tests\\": "tests" } - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } diff --git a/Translate/composer.json b/Translate/composer.json index 621599818678..49ca28a3bfdd 100644 --- a/Translate/composer.json +++ b/Translate/composer.json @@ -10,8 +10,7 @@ "phpunit/phpunit": "^4.8|^5.0", "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", - "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14" + "erusev/parsedown": "^1.6" }, "extra": { "component": { @@ -30,9 +29,5 @@ "psr-4": { "Google\\Cloud\\Translate\\Tests\\": "tests" } - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } diff --git a/Vision/composer.json b/Vision/composer.json index e8f9ad397a7a..29a9d54f6252 100644 --- a/Vision/composer.json +++ b/Vision/composer.json @@ -13,7 +13,6 @@ "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", "erusev/parsedown": "^1.6", - "google/cloud-core": "dev-master as 1.14", "google/cloud-storage": "^1.3" }, "suggest": { @@ -38,9 +37,5 @@ "psr-4": { "Google\\Cloud\\Vision\\Tests\\": "tests" } - }, - "repositories": [{ - "type": "vcs", - "url": "https://github.com/michaelbausor/google-cloud-php-core.git" - }] + } } From 376d9db6721402fbbff69902dbfb9f5815dbfe17 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Fri, 2 Mar 2018 09:36:03 -0800 Subject: [PATCH 43/59] Update bootstrap files --- BigQuery/tests/Snippet/bootstrap.php | 2 +- Bigtable/tests/Snippet/bootstrap.php | 2 +- Container/tests/Snippet/bootstrap.php | 2 +- Core/src/Testing/Snippet/Fixtures.php | 26 +++++++++++++++++++ Core/tests/Snippet/bootstrap.php | 2 +- Dataproc/tests/Snippet/bootstrap.php | 2 +- Datastore/tests/Snippet/bootstrap.php | 2 +- Debugger/tests/Snippet/bootstrap.php | 2 +- Dlp/tests/Snippet/bootstrap.php | 2 +- ErrorReporting/tests/Snippet/bootstrap.php | 2 +- Firestore/tests/Snippet/bootstrap.php | 2 +- Language/tests/Snippet/bootstrap.php | 2 +- Logging/tests/Snippet/bootstrap.php | 2 +- Monitoring/tests/Snippet/bootstrap.php | 2 +- OsLogin/tests/Snippet/bootstrap.php | 2 +- PubSub/tests/Snippet/bootstrap.php | 2 +- Spanner/tests/Snippet/bootstrap.php | 2 +- Speech/tests/Snippet/bootstrap.php | 2 +- Storage/tests/Snippet/bootstrap.php | 2 +- Trace/tests/Snippet/bootstrap.php | 2 +- Translate/tests/Snippet/bootstrap.php | 2 +- VideoIntelligence/tests/Snippet/bootstrap.php | 2 +- Vision/tests/Snippet/bootstrap.php | 2 +- 23 files changed, 48 insertions(+), 22 deletions(-) create mode 100644 Core/src/Testing/Snippet/Fixtures.php diff --git a/BigQuery/tests/Snippet/bootstrap.php b/BigQuery/tests/Snippet/bootstrap.php index d474178177d8..c3d626744d13 100644 --- a/BigQuery/tests/Snippet/bootstrap.php +++ b/BigQuery/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. \Google\Cloud\Core\Testing\Snippet\Fixtures::KEYFILE_STUB_FIXTURE()); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Bigtable/tests/Snippet/bootstrap.php b/Bigtable/tests/Snippet/bootstrap.php index d474178177d8..c3d626744d13 100644 --- a/Bigtable/tests/Snippet/bootstrap.php +++ b/Bigtable/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. \Google\Cloud\Core\Testing\Snippet\Fixtures::KEYFILE_STUB_FIXTURE()); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Container/tests/Snippet/bootstrap.php b/Container/tests/Snippet/bootstrap.php index d474178177d8..c3d626744d13 100644 --- a/Container/tests/Snippet/bootstrap.php +++ b/Container/tests/Snippet/bootstrap.php @@ -2,7 +2,7 @@ // Provide a project ID. If you're mocking your service calls (and if you aren't // start now) you don't need anything else. -putenv('GOOGLE_APPLICATION_CREDENTIALS='. __DIR__ . '/../../vendor/google/cloud-core/src/Testing/Snippet/keyfile-stub.json'); +putenv('GOOGLE_APPLICATION_CREDENTIALS='. \Google\Cloud\Core\Testing\Snippet\Fixtures::KEYFILE_STUB_FIXTURE()); use Google\Cloud\Core\Testing\Snippet\Container; use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; diff --git a/Core/src/Testing/Snippet/Fixtures.php b/Core/src/Testing/Snippet/Fixtures.php new file mode 100644 index 000000000000..606be94fd3be --- /dev/null +++ b/Core/src/Testing/Snippet/Fixtures.php @@ -0,0 +1,26 @@ + Date: Fri, 2 Mar 2018 16:52:12 -0800 Subject: [PATCH 44/59] Update docs --- Core/src/Testing/Snippet/Coverage/Scanner.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/src/Testing/Snippet/Coverage/Scanner.php b/Core/src/Testing/Snippet/Coverage/Scanner.php index 26c6724846fd..34ccf181e4be 100644 --- a/Core/src/Testing/Snippet/Coverage/Scanner.php +++ b/Core/src/Testing/Snippet/Coverage/Scanner.php @@ -41,7 +41,7 @@ class Scanner implements ScannerInterface /** * @param Parser $parser An instance of the Snippet Parser. - * @param \Iterator|string $basepath The path(s) to scan for PHP files. + * @param \Iterator|string $basePath The path(s) to scan for PHP files. * * @experimental * @internal @@ -96,6 +96,8 @@ private function checkExclude($className, array $exclude) /** * Retrieve a list of classes in the given PHP files. * + * @param array $files + * @param array $exclude * @return string[] * * @experimental @@ -124,6 +126,7 @@ public function classes(array $files, array $exclude = []) * * @experimental * @internal + * @throws \ReflectionException */ public function snippets(array $classes) { From c5918b8f477663aab8264d6b420ab67233bf8916 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Sat, 3 Mar 2018 16:46:12 -0800 Subject: [PATCH 45/59] Update core to pass doc gen --- Core/src/Testing/Snippet/Coverage/ExcludeFilter.php | 11 +++++++++++ Core/src/Testing/Snippet/Fixtures.php | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php b/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php index 4915518af54a..d0ab83bbf073 100644 --- a/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php +++ b/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php @@ -20,16 +20,27 @@ use FilterIterator; use Iterator; +/** + * Class ExcludeFilter is used to exclude directories from an iterable list + */ class ExcludeFilter extends FilterIterator { private $excludeDirs; + /** + * ExcludeFilter constructor. + * @param Iterator $iterator + * @param array $excludeDirs + */ public function __construct(Iterator $iterator, array $excludeDirs) { parent::__construct($iterator); $this->excludeDirs = $excludeDirs; } + /** + * @return bool Determines whether to accept or exclude a path + */ public function accept() { // Accept the current item if we can recurse into it // or it is a value starting with "test" diff --git a/Core/src/Testing/Snippet/Fixtures.php b/Core/src/Testing/Snippet/Fixtures.php index 606be94fd3be..5759a7f8d02e 100644 --- a/Core/src/Testing/Snippet/Fixtures.php +++ b/Core/src/Testing/Snippet/Fixtures.php @@ -17,8 +17,14 @@ namespace Google\Cloud\Core\Testing\Snippet; +/** + * Class containing static functions to provide path to shared test fixtures + */ class Fixtures { + /** + * @return string Path the keyfile-stub.json fixture + */ public static function KEYFILE_STUB_FIXTURE() { return __DIR__ . '/keyfile-stub.json'; From e15e5a2418e16736021469c22405d3513d3a9e76 Mon Sep 17 00:00:00 2001 From: John Pedrie Date: Mon, 5 Mar 2018 09:27:49 -0500 Subject: [PATCH 46/59] Fix doc generator --- dev/src/DocGenerator/Command/Docs.php | 100 +++++++++++------- .../DocGenerator/FileListFilterIterator.php | 5 +- dev/src/DocGenerator/Parser/CodeParser.php | 2 +- .../DocGenerator/Parser/MarkdownParser.php | 17 ++- 4 files changed, 83 insertions(+), 41 deletions(-) diff --git a/dev/src/DocGenerator/Command/Docs.php b/dev/src/DocGenerator/Command/Docs.php index 74ca5f2c32c2..f34284c10f54 100644 --- a/dev/src/DocGenerator/Command/Docs.php +++ b/dev/src/DocGenerator/Command/Docs.php @@ -51,6 +51,8 @@ class Docs extends Command 'tests/Snippet', 'tests/System', 'tests/Conformance', + 'tests/Perf', + 'tests/conformance-fixtures' ]; public function __construct($cliBasePath) @@ -67,13 +69,15 @@ protected function configure() ->addOption('release', 'r', InputOption::VALUE_NONE, 'If set, docs will be generated into tag folders' . ' such as v1.0.0 rather than master.') ->addOption('pretty', 'p', InputOption::VALUE_NONE, 'If set, json files will be written with pretty'. - ' formatting using PHP\'s JSON_PRETTY_PRINT flag'); + ' formatting using PHP\'s JSON_PRETTY_PRINT flag') + ->addOption('component', 'c', InputOption::VALUE_OPTIONAL, 'Generate docs only for a single component.'); } protected function execute(InputInterface $input, OutputInterface $output) { $release = $input->getOption('release'); $pretty = $input->getOption('pretty'); + $component = $input->getOption('component'); $paths = [ 'source' => $this->cliBasePath .'/../'. self::DEFAULT_SOURCE_DIR, @@ -88,11 +92,56 @@ protected function execute(InputInterface $input, OutputInterface $output) $components = $this->getComponents(dirname($this->cliBasePath), $paths['source']); $tocTemplate = json_decode(file_get_contents($paths['tocTemplate']), true); - foreach ($components as $component) { - $input = $paths['project'] . $component['path'] .'/src'; - $source = $this->getFilesList($input, ['php', 'md'], [ - 'CONTRIBUTING.md' + if ($component !== 'google-cloud') { + if ($component) { + $components = array_filter($components, function ($componentInfo) use ($component) { + return $componentInfo['id'] === $component; + }); + + if (!$components) { + throw new \RuntimeException(sprintf('Given component ID %s does not exist', $component)); + } + } + + foreach ($components as $component) { + $input = $paths['project'] . $component['path'] .'/src'; + $source = $this->getFilesList($input, ['php', 'md'], [ + 'CONTRIBUTING.md' + ]); + $this->generateComponentDocumentation( + $output, + $source, + $component, + $paths, + $tocTemplate, + $release, + $pretty + ); + } + } + + if (!$component || $component === 'google-cloud') { + $projectRealPath = realpath($paths['project']); + $source = $this->getFilesList($projectRealPath, [ + 'php', 'md' + ], [ + '/vendor', + '/dev', + '/build', + '/docs', + '/tests', + '.github', + '/CODE_OF_CONDUCT.md', + '/README.md', + 'bootstrap.php' ]); + + + $component = [ + 'id' => 'google-cloud', + 'path' => 'src/' + ]; + $this->generateComponentDocumentation( $output, $source, @@ -100,39 +149,10 @@ protected function execute(InputInterface $input, OutputInterface $output) $paths, $tocTemplate, $release, - $pretty + $pretty, + false ); } - - $projectRealPath = realpath($paths['project']); - $source = $this->getFilesList($projectRealPath, [ - 'php', 'md' - ], [ - $projectRealPath .'/vendor', - $projectRealPath .'/dev', - $projectRealPath .'/build', - $projectRealPath .'/docs', - $projectRealPath .'/tests', - '.github', - new RegexFileFilter(str_replace('/', '\/', preg_quote($projectRealPath .'/') . '\w{0,}\.\w{0,}')), - 'bootstrap.php' - ]); - - $component = [ - 'id' => 'google-cloud', - 'path' => 'src/' - ]; - - $this->generateComponentDocumentation( - $output, - $source, - $component, - $paths, - $tocTemplate, - $release, - $pretty, - false - ); } private function generateComponentDocumentation( @@ -209,7 +229,13 @@ private function getFilesList($source, array $types, array $excludes = []) $directoryIterator = new RecursiveDirectoryIterator($source); $iterator = new RecursiveIteratorIterator($directoryIterator); // $regexIterator = new RegexIterator($iterator, $regex, RecursiveRegexIterator::GET_MATCH); - $fileList = new FileListFilterIterator($iterator, $types, $this->testPaths, $excludes); + $fileList = new FileListFilterIterator( + realpath($this->cliBasePath .'/../'), + $iterator, + $types, + $this->testPaths, + $excludes + ); $files = []; foreach ($fileList as $item) { diff --git a/dev/src/DocGenerator/FileListFilterIterator.php b/dev/src/DocGenerator/FileListFilterIterator.php index 0d28f4231454..e4d857a46629 100644 --- a/dev/src/DocGenerator/FileListFilterIterator.php +++ b/dev/src/DocGenerator/FileListFilterIterator.php @@ -22,16 +22,19 @@ */ class FileListFilterIterator extends \FilterIterator { + private $projectRootPath; private $fileTypes = []; private $testPaths = []; private $excludes = []; public function __construct( + $projectRootPath, \Iterator $iterator, array $fileTypes, array $testPaths, array $excludes ) { + $this->projectRootPath = $projectRootPath; $this->fileTypes = $fileTypes; $this->testPaths = $testPaths; $this->excludes = $excludes; @@ -44,7 +47,7 @@ public function accept() /** @var \SplFileInfo */ $file = parent::current(); - $path = realpath($file->getPathName()); + $path = '/' . trim(str_replace($this->projectRootPath, '', realpath($file->getPathName())), '/'); if (!in_array($file->getExtension(), $this->fileTypes)) { return false; diff --git a/dev/src/DocGenerator/Parser/CodeParser.php b/dev/src/DocGenerator/Parser/CodeParser.php index 4d1560959ca4..4f86e3109dfd 100644 --- a/dev/src/DocGenerator/Parser/CodeParser.php +++ b/dev/src/DocGenerator/Parser/CodeParser.php @@ -195,7 +195,7 @@ private function buildDocument($fileReflector, $reflector) } if (is_null($docBlock)) { - throw new \Exception(sprintf('%s has no description', $fullName)); + throw new \Exception(sprintf('%s has no description (%s)', $fullName, $fileReflector->getFilename())); } $split = $this->splitDescription($docBlock->getText()); diff --git a/dev/src/DocGenerator/Parser/MarkdownParser.php b/dev/src/DocGenerator/Parser/MarkdownParser.php index 058dba85bbfe..65c0bc89adce 100644 --- a/dev/src/DocGenerator/Parser/MarkdownParser.php +++ b/dev/src/DocGenerator/Parser/MarkdownParser.php @@ -31,18 +31,31 @@ public function __construct($currentFile, $content) $this->currentFile = $currentFile; $this->content = $content; $this->markdown = Parsedown::instance(); + + set_error_handler(function($number, $error){ + if (preg_match('/^DOMDocument::loadHTML\(\): (.+)$/', $error, $m) === 1) { + throw new \Exception($m[1]); + } + }); } public function parse() { $html = $this->markdown->parse($this->content); - $doc = new DOMDocument; - $doc->loadHTML($html); + try { + $doc = new DOMDocument; + $doc->loadHTML($html); + } catch (\Exception $e) { + throw new \RuntimeException($e->getMessage() .' ('. $this->currentFile .')'); + } $headings = $doc->getElementsByTagName('h1'); $heading = $headings->item(0); + if (!$heading) { + throw new \RuntimeException('Missing h1 tag ('. $this->currentFile .')'); + } $heading->parentNode->removeChild($heading); $pathinfo = pathinfo($this->currentFile); From 90faa5c88ea9a208c47fdfbff4163625a5eaa8e0 Mon Sep 17 00:00:00 2001 From: Michael Bausor Date: Mon, 5 Mar 2018 09:14:28 -0800 Subject: [PATCH 47/59] Add daemonutils to locate autoloader --- Core/bin/google-cloud-batch | 17 ++++------- Core/src/Daemon/DaemonUtils.php | 46 ++++++++++++++++++++++++++++++ Debugger/bin/google-cloud-debugger | 17 ++++------- 3 files changed, 58 insertions(+), 22 deletions(-) create mode 100644 Core/src/Daemon/DaemonUtils.php diff --git a/Core/bin/google-cloud-batch b/Core/bin/google-cloud-batch index b0114986908b..40ec606a07eb 100755 --- a/Core/bin/google-cloud-batch +++ b/Core/bin/google-cloud-batch @@ -18,20 +18,15 @@ namespace Google\Cloud\Core\Batch; -// Load the autoloader -if (file_exists(__DIR__ . '/../vendor/autoload.php')) { - // Called from local git clone. - require_once __DIR__ . '/../vendor/autoload.php'; -} elseif (file_exists(__DIR__ . '/../../../autoload.php')) { - // Called from google/cloud-core installation. - require_once __DIR__ . '/../../../autoload.php'; -} elseif (file_exists(__DIR__ . '/../../../../autoload.php')) { - // Called from google/cloud installation. - require_once __DIR__ . '/../../../../autoload.php'; -} else { +use Google\Cloud\Core\Daemon\DaemonUtils; + +$autoloader = DaemonUtils::locateAutoloader(__DIR__ . '/..'); +if (is_null($autoloader)) { die('No autoloader found'); } +require_once $autoloader; + function showUsageAndDie() { die("usage: " . __FILE__ . " [daemon|retry] {id}"); diff --git a/Core/src/Daemon/DaemonUtils.php b/Core/src/Daemon/DaemonUtils.php new file mode 100644 index 000000000000..dbfdd80c6db1 --- /dev/null +++ b/Core/src/Daemon/DaemonUtils.php @@ -0,0 +1,46 @@ + Date: Mon, 5 Mar 2018 10:31:23 -0800 Subject: [PATCH 48/59] Remove DaemonUtils, update autoloader locator --- Core/bin/google-cloud-batch | 20 +++++++++---- Core/src/Daemon/DaemonUtils.php | 46 ------------------------------ Debugger/bin/google-cloud-debugger | 20 +++++++++---- 3 files changed, 30 insertions(+), 56 deletions(-) delete mode 100644 Core/src/Daemon/DaemonUtils.php diff --git a/Core/bin/google-cloud-batch b/Core/bin/google-cloud-batch index 40ec606a07eb..7fe9e436a903 100755 --- a/Core/bin/google-cloud-batch +++ b/Core/bin/google-cloud-batch @@ -18,15 +18,25 @@ namespace Google\Cloud\Core\Batch; -use Google\Cloud\Core\Daemon\DaemonUtils; +$foundAutoloader = false; +$autoloaderCandidates = [ + '/../vendor/autoload.php', // Git clone of google-cloud-php-core + '/../../vendor/autoload.php', // Git clone of google-cloud-php + '/../../../autoload.php', // google/cloud-core installation + '/../../../../autoload.php', // google/cloud installation +]; +foreach ($autoloaderCandidates as $candidate) { + if (file_exists($candidate)) { + require_once $candidate; + $foundAutoloader = true; + break; + } +} -$autoloader = DaemonUtils::locateAutoloader(__DIR__ . '/..'); -if (is_null($autoloader)) { +if (!$foundAutoloader) { die('No autoloader found'); } -require_once $autoloader; - function showUsageAndDie() { die("usage: " . __FILE__ . " [daemon|retry] {id}"); diff --git a/Core/src/Daemon/DaemonUtils.php b/Core/src/Daemon/DaemonUtils.php deleted file mode 100644 index dbfdd80c6db1..000000000000 --- a/Core/src/Daemon/DaemonUtils.php +++ /dev/null @@ -1,46 +0,0 @@ - Date: Thu, 22 Mar 2018 18:42:53 -0400 Subject: [PATCH 49/59] Restructure testing (#929) * Add system test credentials CLI * Update Snippet testing for restructure * Fix unit tests for restructure * Fix system test runner * Fix conformance bootstrap * fix credentials CLIts * Fix docs * exclude dev folder from snippet parsing * install latest composer * Credentials CLI should not throw exception * Test component integration * Don't fail if extension is missing * skip tests if debugger ext is missing * Allow setting the search location paths for the SourceLocationResolver (#6) --- .gitignore | 1 + .travis.yml | 6 +- BigQuery/phpunit-snippets.xml.dist | 5 +- BigQuery/phpunit-system.xml.dist | 2 +- BigQuery/phpunit.xml.dist | 2 +- BigQuery/tests/Snippet/bootstrap.php | 43 --- BigQuery/tests/System/bootstrap.php | 23 +- BigQuery/tests/Unit/bootstrap.php | 3 - Bigtable/composer.json | 4 +- Bigtable/phpunit-snippets.xml.dist | 5 +- Bigtable/phpunit-system.xml.dist | 2 +- Bigtable/phpunit.xml.dist | 2 +- Bigtable/tests/Snippet/bootstrap.php | 43 --- Bigtable/tests/System/bootstrap.php | 8 +- Bigtable/tests/Unit/bootstrap.php | 3 - Container/composer.json | 4 +- Container/phpunit-snippets.xml.dist | 5 +- Container/phpunit-system.xml.dist | 2 +- Container/phpunit.xml.dist | 2 +- Container/tests/Snippet/bootstrap.php | 43 --- Container/tests/System/bootstrap.php | 8 +- Container/tests/Unit/bootstrap.php | 3 - Core/phpunit-snippets.xml.dist | 5 +- Core/phpunit-system.xml.dist | 2 +- Core/phpunit.xml.dist | 2 +- Core/snippet-bootstrap.php | 5 + .../src/Testing}/FileListFilterIterator.php | 22 +- Core/src/Testing/Snippet/Container.php | 12 + .../src/Testing/Snippet/Coverage/Coverage.php | 10 +- .../Snippet/Coverage/ExcludeFilter.php | 2 +- .../Snippet/Coverage/ResultPrinter.php | 75 +++++ Core/src/Testing/Snippet/Coverage/Scanner.php | 33 ++- Core/src/Testing/Snippet/Parser/Snippet.php | 12 +- Core/src/Testing/System/SystemTestCase.php | 4 +- Core/src/Testing/TestHelpers.php | 133 +++++++++ Core/system-bootstrap.php | 5 + Core/tests/Snippet/bootstrap.php | 43 --- Core/tests/System/bootstrap.php | 23 +- Core/tests/Unit/bootstrap.php | 3 - Dataproc/composer.json | 4 +- Dataproc/phpunit-snippets.xml.dist | 5 +- Dataproc/phpunit-system.xml.dist | 2 +- Dataproc/phpunit.xml.dist | 2 +- Dataproc/tests/Snippet/bootstrap.php | 43 --- Dataproc/tests/System/bootstrap.php | 8 +- Dataproc/tests/Unit/bootstrap.php | 3 - Datastore/phpunit-snippets.xml.dist | 5 +- Datastore/phpunit-system.xml.dist | 2 +- Datastore/phpunit.xml.dist | 2 +- Datastore/tests/Snippet/bootstrap.php | 43 --- Datastore/tests/System/bootstrap.php | 25 +- Datastore/tests/Unit/bootstrap.php | 3 - Debugger/phpunit-snippets.xml.dist | 5 +- Debugger/phpunit-system.xml.dist | 2 +- Debugger/phpunit.xml.dist | 2 +- Debugger/src/Breakpoint.php | 6 +- Debugger/src/SourceLocationResolver.php | 18 +- .../Snippet/MatchingFileIteratorTest.php | 3 + Debugger/tests/Snippet/bootstrap.php | 43 --- Debugger/tests/System/bootstrap.php | 23 +- Debugger/tests/Unit/BreakpointTest.php | 9 +- .../tests/Unit/SourceLocationResolverTest.php | 25 +- Debugger/tests/Unit/bootstrap.php | 3 - Dlp/composer.json | 4 +- Dlp/phpunit-snippets.xml.dist | 5 +- Dlp/phpunit-system.xml.dist | 2 +- Dlp/phpunit.xml.dist | 2 +- Dlp/tests/Snippet/bootstrap.php | 43 --- Dlp/tests/System/bootstrap.php | 8 +- Dlp/tests/Unit/bootstrap.php | 3 - ErrorReporting/composer.json | 4 +- ErrorReporting/phpunit-snippets.xml.dist | 5 +- ErrorReporting/phpunit-system.xml.dist | 2 +- ErrorReporting/phpunit.xml.dist | 2 +- ErrorReporting/tests/Snippet/bootstrap.php | 43 --- ErrorReporting/tests/System/bootstrap.php | 8 +- ErrorReporting/tests/Unit/bootstrap.php | 3 - Firestore/phpunit-conformance.xml.dist | 16 ++ Firestore/phpunit-snippets.xml.dist | 5 +- Firestore/phpunit-system.xml.dist | 2 +- Firestore/phpunit.xml.dist | 2 +- Firestore/tests/Snippet/bootstrap.php | 43 --- Firestore/tests/System/bootstrap.php | 23 +- Firestore/tests/Unit/bootstrap.php | 3 - Language/phpunit-snippets.xml.dist | 5 +- Language/phpunit-system.xml.dist | 2 +- Language/phpunit.xml.dist | 2 +- Language/tests/Snippet/bootstrap.php | 43 --- Language/tests/System/bootstrap.php | 23 +- Language/tests/Unit/bootstrap.php | 3 - Logging/phpunit-snippets.xml.dist | 5 +- Logging/phpunit-system.xml.dist | 2 +- Logging/phpunit.xml.dist | 2 +- Logging/tests/Snippet/bootstrap.php | 43 --- Logging/tests/System/bootstrap.php | 23 +- Logging/tests/Unit/bootstrap.php | 3 - Monitoring/composer.json | 4 +- Monitoring/phpunit-snippets.xml.dist | 5 +- Monitoring/phpunit-system.xml.dist | 2 +- Monitoring/phpunit.xml.dist | 2 +- Monitoring/tests/Snippet/bootstrap.php | 43 --- Monitoring/tests/System/bootstrap.php | 8 +- Monitoring/tests/Unit/bootstrap.php | 3 - OsLogin/composer.json | 4 +- OsLogin/phpunit-snippets.xml.dist | 5 +- OsLogin/phpunit-system.xml.dist | 2 +- OsLogin/phpunit.xml.dist | 2 +- OsLogin/tests/Snippet/bootstrap.php | 43 --- OsLogin/tests/System/bootstrap.php | 8 +- OsLogin/tests/Unit/bootstrap.php | 3 - PubSub/phpunit-snippets.xml.dist | 5 +- PubSub/phpunit-system.xml.dist | 2 +- PubSub/phpunit.xml.dist | 2 +- PubSub/tests/Snippet/bootstrap.php | 43 --- PubSub/tests/System/bootstrap.php | 23 +- PubSub/tests/Unit/bootstrap.php | 3 - Spanner/composer.json | 3 +- Spanner/phpunit-snippets.xml.dist | 5 +- Spanner/phpunit-system.xml.dist | 2 +- Spanner/phpunit.xml.dist | 2 +- Spanner/tests/Snippet/bootstrap.php | 43 --- Spanner/tests/System/bootstrap.php | 26 +- Spanner/tests/Unit/bootstrap.php | 3 - Speech/phpunit-snippets.xml.dist | 5 +- Speech/phpunit-system.xml.dist | 2 +- Speech/phpunit.xml.dist | 2 +- Speech/tests/Snippet/bootstrap.php | 43 --- Speech/tests/System/bootstrap.php | 23 +- Speech/tests/Unit/bootstrap.php | 3 - Storage/phpunit-snippets.xml.dist | 5 +- Storage/phpunit-system.xml.dist | 2 +- Storage/phpunit.xml.dist | 2 +- Storage/tests/Snippet/bootstrap.php | 43 --- Storage/tests/System/RequesterPaysTest.php | 63 ++-- .../StreamWrapper/StreamWrapperTestCase.php | 1 + Storage/tests/System/bootstrap.php | 30 +- Storage/tests/Unit/bootstrap.php | 3 - Trace/phpunit-snippets.xml.dist | 5 +- Trace/phpunit-system.xml.dist | 2 +- Trace/phpunit.xml.dist | 2 +- Trace/tests/Snippet/bootstrap.php | 43 --- Trace/tests/System/bootstrap.php | 23 +- Trace/tests/Unit/bootstrap.php | 3 - Translate/phpunit-snippets.xml.dist | 5 +- Translate/phpunit-system.xml.dist | 2 +- Translate/phpunit.xml.dist | 2 +- Translate/tests/Snippet/bootstrap.php | 43 --- Translate/tests/System/bootstrap.php | 23 +- Translate/tests/Unit/bootstrap.php | 3 - VideoIntelligence/composer.json | 4 +- VideoIntelligence/phpunit-snippets.xml.dist | 5 +- VideoIntelligence/phpunit-system.xml.dist | 2 +- VideoIntelligence/phpunit.xml.dist | 2 +- VideoIntelligence/tests/Snippet/bootstrap.php | 43 --- VideoIntelligence/tests/System/bootstrap.php | 8 +- VideoIntelligence/tests/Unit/bootstrap.php | 3 - Vision/phpunit-snippets.xml.dist | 5 +- Vision/phpunit-system.xml.dist | 2 +- Vision/phpunit.xml.dist | 2 +- Vision/tests/Snippet/bootstrap.php | 43 --- Vision/tests/System/bootstrap.php | 23 +- Vision/tests/Unit/bootstrap.php | 3 - appveyor.yml | 3 +- dev/google-cloud | 8 +- dev/sh/system-test-credentials | 52 ---- .../Command/ComponentIntegration.php | 272 ++++++++++++++++++ dev/src/Credentials/Command.php | 84 ++++++ dev/src/Credentials/help.txt | 7 + dev/src/DocGenerator/Command/Docs.php | 3 +- dev/src/GetComponentsTrait.php | 10 +- phpunit-conformance.xml.dist | 4 +- phpunit-snippets.xml.dist | 6 +- phpunit-system.xml.dist | 2 +- phpunit.xml.dist | 3 +- .../Snippet/Coverage/ExcludeFilter.php | 55 ---- src/Core/Testing/Snippet/Fixtures.php | 32 --- src/Core/Testing/Snippet/keyfile-stub.json | 12 - tests/System/bootstrap.php | 45 +-- tests/Unit/bootstrap.php | 3 - 179 files changed, 998 insertions(+), 1707 deletions(-) delete mode 100644 BigQuery/tests/Snippet/bootstrap.php delete mode 100644 BigQuery/tests/Unit/bootstrap.php delete mode 100644 Bigtable/tests/Snippet/bootstrap.php delete mode 100644 Bigtable/tests/Unit/bootstrap.php delete mode 100644 Container/tests/Snippet/bootstrap.php delete mode 100644 Container/tests/Unit/bootstrap.php create mode 100644 Core/snippet-bootstrap.php rename {dev/src/DocGenerator => Core/src/Testing}/FileListFilterIterator.php (78%) create mode 100644 Core/src/Testing/Snippet/Coverage/ResultPrinter.php create mode 100644 Core/system-bootstrap.php delete mode 100644 Core/tests/Snippet/bootstrap.php delete mode 100644 Core/tests/Unit/bootstrap.php delete mode 100644 Dataproc/tests/Snippet/bootstrap.php delete mode 100644 Dataproc/tests/Unit/bootstrap.php delete mode 100644 Datastore/tests/Snippet/bootstrap.php delete mode 100644 Datastore/tests/Unit/bootstrap.php delete mode 100644 Debugger/tests/Snippet/bootstrap.php delete mode 100644 Debugger/tests/Unit/bootstrap.php delete mode 100644 Dlp/tests/Snippet/bootstrap.php delete mode 100644 Dlp/tests/Unit/bootstrap.php delete mode 100644 ErrorReporting/tests/Snippet/bootstrap.php delete mode 100644 ErrorReporting/tests/Unit/bootstrap.php create mode 100644 Firestore/phpunit-conformance.xml.dist delete mode 100644 Firestore/tests/Snippet/bootstrap.php delete mode 100644 Firestore/tests/Unit/bootstrap.php delete mode 100644 Language/tests/Snippet/bootstrap.php delete mode 100644 Language/tests/Unit/bootstrap.php delete mode 100644 Logging/tests/Snippet/bootstrap.php delete mode 100644 Logging/tests/Unit/bootstrap.php delete mode 100644 Monitoring/tests/Snippet/bootstrap.php delete mode 100644 Monitoring/tests/Unit/bootstrap.php delete mode 100644 OsLogin/tests/Snippet/bootstrap.php delete mode 100644 OsLogin/tests/Unit/bootstrap.php delete mode 100644 PubSub/tests/Snippet/bootstrap.php delete mode 100644 PubSub/tests/Unit/bootstrap.php delete mode 100644 Spanner/tests/Snippet/bootstrap.php delete mode 100644 Spanner/tests/Unit/bootstrap.php delete mode 100644 Speech/tests/Snippet/bootstrap.php delete mode 100644 Speech/tests/Unit/bootstrap.php delete mode 100644 Storage/tests/Snippet/bootstrap.php delete mode 100644 Storage/tests/Unit/bootstrap.php delete mode 100644 Trace/tests/Snippet/bootstrap.php delete mode 100644 Trace/tests/Unit/bootstrap.php delete mode 100644 Translate/tests/Snippet/bootstrap.php delete mode 100644 Translate/tests/Unit/bootstrap.php delete mode 100644 VideoIntelligence/tests/Snippet/bootstrap.php delete mode 100644 VideoIntelligence/tests/Unit/bootstrap.php delete mode 100644 Vision/tests/Snippet/bootstrap.php delete mode 100644 Vision/tests/Unit/bootstrap.php delete mode 100755 dev/sh/system-test-credentials create mode 100644 dev/src/ComponentIntegration/Command/ComponentIntegration.php create mode 100644 dev/src/Credentials/Command.php create mode 100644 dev/src/Credentials/help.txt delete mode 100644 src/Core/Testing/Snippet/Coverage/ExcludeFilter.php delete mode 100644 src/Core/Testing/Snippet/Fixtures.php delete mode 100644 src/Core/Testing/Snippet/keyfile-stub.json delete mode 100644 tests/Unit/bootstrap.php diff --git a/.gitignore b/.gitignore index 85c6eae17ab5..c65362505885 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ vendor/ # do not delete keys/ +.testing diff --git a/.travis.yml b/.travis.yml index b638dd434ebf..acc85ad34057 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ before_script: - if [[ $TRAVIS_PHP_VERSION =~ ^7 ]]; then pecl install stackdriver_debugger-alpha || echo 'Failed to install stackdriver_debugger'; fi - composer install - if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then composer --no-interaction --dev remove google/protobuf google/gax google/proto-client; fi - - ./dev/sh/system-test-credentials + - dev/google-cloud credentials env: global: @@ -34,7 +34,3 @@ after_success: - if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then bash <(curl -s https://codecov.io/bash); fi - ./dev/sh/push-docs - ./dev/sh/trigger-split - - cat ./build/snippets-uncovered.json - -after_failure: - - echo "SNIPPET COVERAGE REPORT" && cat ./build/snippets-uncovered.json diff --git a/BigQuery/phpunit-snippets.xml.dist b/BigQuery/phpunit-snippets.xml.dist index 71e5bf96a35c..b92fd83e3c1b 100644 --- a/BigQuery/phpunit-snippets.xml.dist +++ b/BigQuery/phpunit-snippets.xml.dist @@ -1,5 +1,8 @@ - + tests/Snippet diff --git a/BigQuery/phpunit-system.xml.dist b/BigQuery/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/BigQuery/phpunit-system.xml.dist +++ b/BigQuery/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/BigQuery/phpunit.xml.dist b/BigQuery/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/BigQuery/phpunit.xml.dist +++ b/BigQuery/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/BigQuery/tests/Snippet/bootstrap.php b/BigQuery/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/BigQuery/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/BigQuery/tests/System/bootstrap.php b/BigQuery/tests/System/bootstrap.php index 54420c6632cc..38465605b9a8 100644 --- a/BigQuery/tests/System/bootstrap.php +++ b/BigQuery/tests/System/bootstrap.php @@ -1,24 +1,5 @@ - + tests/Snippet diff --git a/Bigtable/phpunit-system.xml.dist b/Bigtable/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Bigtable/phpunit-system.xml.dist +++ b/Bigtable/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Bigtable/phpunit.xml.dist b/Bigtable/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Bigtable/phpunit.xml.dist +++ b/Bigtable/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Bigtable/tests/Snippet/bootstrap.php b/Bigtable/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Bigtable/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Bigtable/tests/System/bootstrap.php b/Bigtable/tests/System/bootstrap.php index b3f22de9e969..38465605b9a8 100644 --- a/Bigtable/tests/System/bootstrap.php +++ b/Bigtable/tests/System/bootstrap.php @@ -1,9 +1,5 @@ - + tests/Snippet diff --git a/Container/phpunit-system.xml.dist b/Container/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Container/phpunit-system.xml.dist +++ b/Container/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Container/phpunit.xml.dist b/Container/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Container/phpunit.xml.dist +++ b/Container/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Container/tests/Snippet/bootstrap.php b/Container/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Container/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Container/tests/System/bootstrap.php b/Container/tests/System/bootstrap.php index b3f22de9e969..38465605b9a8 100644 --- a/Container/tests/System/bootstrap.php +++ b/Container/tests/System/bootstrap.php @@ -1,9 +1,5 @@ - + tests/Snippet diff --git a/Core/phpunit-system.xml.dist b/Core/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Core/phpunit-system.xml.dist +++ b/Core/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Core/phpunit.xml.dist b/Core/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Core/phpunit.xml.dist +++ b/Core/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Core/snippet-bootstrap.php b/Core/snippet-bootstrap.php new file mode 100644 index 000000000000..c36fafda5136 --- /dev/null +++ b/Core/snippet-bootstrap.php @@ -0,0 +1,5 @@ +excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== FALSE) { + if (strpos($this->current(), $excludeDir) !== false) { return false; } } diff --git a/Core/src/Testing/Snippet/Coverage/ResultPrinter.php b/Core/src/Testing/Snippet/Coverage/ResultPrinter.php new file mode 100644 index 000000000000..122f9e5e5d4b --- /dev/null +++ b/Core/src/Testing/Snippet/Coverage/ResultPrinter.php @@ -0,0 +1,75 @@ +uncovered(); + Container::reset(); + + if (!empty($uncovered)) { + $this->writeWithColor('bg-red', sprintf("NOTICE: %s uncovered snippets!", count($uncovered))); + + if ($this->verbose) { + $i = 0; + foreach ($uncovered as $snippet) { + $fqn = $snippet->fqn(); + $type = (strpos($fqn, '::') !== false) + ? 'Method' + : 'Class'; + + $this->write("$i: $type example: {$snippet->fqn()}[{$snippet->index()}]"); + $this->writeNewLine(); + $this->write("Declared on or around {$snippet->file()}:{$snippet->line()}"); + $this->writeNewLine(); + $this->writeNewLine(); + + $i++; + } + } else { + $this->write("Run command with `--verbose` flag to see uncovered snippets."); + } + + if (extension_loaded('grpc')) { + exit(1); + } + } + } +} diff --git a/Core/src/Testing/Snippet/Coverage/Scanner.php b/Core/src/Testing/Snippet/Coverage/Scanner.php index 34ccf181e4be..c5f725db3350 100644 --- a/Core/src/Testing/Snippet/Coverage/Scanner.php +++ b/Core/src/Testing/Snippet/Coverage/Scanner.php @@ -17,6 +17,7 @@ namespace Google\Cloud\Core\Testing\Snippet\Coverage; +use Google\Cloud\Core\Testing\FileListFilterIterator; use Google\Cloud\Core\Testing\Snippet\Parser\Parser; use phpDocumentor\Reflection\FileReflector; @@ -39,20 +40,27 @@ class Scanner implements ScannerInterface */ private $basePath; + /** + * @var array + */ + private $exclude; + /** * @param Parser $parser An instance of the Snippet Parser. * @param \Iterator|string $basePath The path(s) to scan for PHP files. + * @param array $exclude A list of patterns to exclude. * * @experimental * @internal */ - public function __construct(Parser $parser, $basePath) + public function __construct(Parser $parser, $basePath, array $exclude = []) { $this->parser = $parser; if (is_string($basePath)) { $basePath = [$basePath]; } $this->basePath = $basePath; + $this->exclude = $exclude; } /** @@ -66,17 +74,22 @@ public function __construct(Parser $parser, $basePath) public function files() { $files = []; - foreach ($this->basePath as $basePath) { - $regexIterator = new \RegexIterator( - new \RecursiveIteratorIterator( - new \RecursiveDirectoryIterator($basePath) - ), - '/^.+\.php$/i', - \RecursiveRegexIterator::GET_MATCH + + foreach ($this->basePath as $path) { + $directoryIterator = new \RecursiveDirectoryIterator($path); + $iterator = new \RecursiveIteratorIterator($directoryIterator); + $fileList = new FileListFilterIterator( + $path, + $iterator, + ['php'], + [ + '/tests/' + ], + $this->exclude ); - foreach ($regexIterator as $item) { - array_push($files, $item[0]); + foreach ($fileList as $item) { + array_push($files, realPath($item->getPathName())); } } diff --git a/Core/src/Testing/Snippet/Parser/Snippet.php b/Core/src/Testing/Snippet/Parser/Snippet.php index ddf3398863f4..3499d75d1066 100644 --- a/Core/src/Testing/Snippet/Parser/Snippet.php +++ b/Core/src/Testing/Snippet/Parser/Snippet.php @@ -30,7 +30,7 @@ class Snippet implements \JsonSerializable /** * @var array */ - private $options; + private $config; /** * @var array @@ -84,6 +84,16 @@ public function file() return $this->config['file']; } + /** + * The Snippet fully-qualified name. + * + * @return string + */ + public function fqn() + { + return $this->config['fqn']; + } + /** * The line number where the snippet's method or class is declared. * diff --git a/Core/src/Testing/System/SystemTestCase.php b/Core/src/Testing/System/SystemTestCase.php index 1cb6fe677b89..d05627e49a6d 100644 --- a/Core/src/Testing/System/SystemTestCase.php +++ b/Core/src/Testing/System/SystemTestCase.php @@ -42,7 +42,9 @@ class SystemTestCase extends TestCase */ public static function setupQueue() { - self::$deletionQueue = new DeletionQueue; + if (!self::$deletionQueue) { + self::$deletionQueue = new DeletionQueue; + } } /** diff --git a/Core/src/Testing/TestHelpers.php b/Core/src/Testing/TestHelpers.php index 30daac61e6ea..328e9a12c1fe 100644 --- a/Core/src/Testing/TestHelpers.php +++ b/Core/src/Testing/TestHelpers.php @@ -18,6 +18,13 @@ namespace Google\Cloud\Core\Testing; +use Google\Cloud\Core\Testing\Snippet\Container; +use Google\Cloud\Core\Testing\Snippet\Coverage\Coverage; +use Google\Cloud\Core\Testing\Snippet\Coverage\ExcludeFilter; +use Google\Cloud\Core\Testing\Snippet\Coverage\Scanner; +use Google\Cloud\Core\Testing\Snippet\Parser\Parser; +use Google\Cloud\Core\Testing\System\SystemTestCase; + /** * Class TestHelpers is used to hold static functions required for testing * @@ -89,4 +96,130 @@ public function call($fn, array $args = []) { return call_user_func_array([$this return new $name; } + + /** + * Setup snippet tests support. + * + * @return void + * @experimental + * @internal + */ + public static function snippetBootstrap() + { + putenv('GOOGLE_APPLICATION_CREDENTIALS='. \Google\Cloud\Core\Testing\Snippet\Fixtures::KEYFILE_STUB_FIXTURE()); + + $parser = new Parser; + $scanner = new Scanner($parser, self::projectRoot(), ['/vendor/', '/dev/']); + $coverage = new Coverage($scanner); + $coverage->buildListToCover(); + + Container::$coverage = $coverage; + Container::$parser = $parser; + } + + /** + * Check that the required environment variable keyfile paths are set and exist. + * + * @param array|string $env The environment variable(s) required. + * @throws \RuntimeException + * @experimental + * @internal + */ + public static function requireKeyfile($env) + { + $env = is_array($env) ? $env : [$env]; + + foreach ($env as $var) { + if (!getenv($var)) { + throw new \RuntimeException(sprintf( + 'Please set the \'%s\' env var to run the system tests', + $var + )); + } + + $path = getenv($var); + if (!file_exists($path)) { + throw new \RuntimeException(sprintf( + 'The path \`%s\` specified in environment variable `%s` does not exist.', + $path, + $var + )); + } + } + } + + /** + * Setup stuff needed for the system test runner. + * + * This method can only be called once per run. Subsequent calls will thrown \RuntimeException. + * + * @internal + * @experimental + */ + public static function systemBootstrap() + { + static $started = false; + + if ($started) { + throw new \RuntimeException('system tests cannot be bootstrapped more than once.'); + } + + SystemTestCase::setupQueue(); + + $bootstraps = glob(self::projectRoot() .'/*/tests/System/bootstrap.php'); + foreach ($bootstraps as $bootstrap) { + require_once $bootstrap; + } + + // This should always be last. + self::systemTestShutdown(function () { + SystemTestCase::processQueue(); + }); + + $started = true; + } + + /** + * Add cleanup function for system tests. + * + * Calls to this method enqueue a PHP shutdown function, scoped to the parent + * PID. + * + * @param callable $shutdown The shutdown function. + * @return void + * @experimental + * @internal + */ + public static function systemTestShutdown(callable $shutdown) + { + $pid = getmypid(); + register_shutdown_function(function () use ($pid, $shutdown) { + // Skip flushing deletion queue if exiting a forked process. + if ($pid !== getmypid()) { + return; + } + + $shutdown(); + }); + } + + /** + * Determine the path of the project root based on where the composer + * autoloader is located. + * + * @return string + * @experimental + * @internal + */ + private static function projectRoot() + { + static $projectRoot; + + if (!$projectRoot) { + $ref = new \ReflectionClass(\Composer\Autoload\ClassLoader::class); + $projectRoot = dirname(dirname(dirname($ref->getFileName()))); + } + + return $projectRoot; + } } diff --git a/Core/system-bootstrap.php b/Core/system-bootstrap.php new file mode 100644 index 000000000000..e49b0c19402c --- /dev/null +++ b/Core/system-bootstrap.php @@ -0,0 +1,5 @@ +buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Core/tests/System/bootstrap.php b/Core/tests/System/bootstrap.php index 54420c6632cc..38465605b9a8 100644 --- a/Core/tests/System/bootstrap.php +++ b/Core/tests/System/bootstrap.php @@ -1,24 +1,5 @@ - + tests/Snippet diff --git a/Dataproc/phpunit-system.xml.dist b/Dataproc/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Dataproc/phpunit-system.xml.dist +++ b/Dataproc/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Dataproc/phpunit.xml.dist b/Dataproc/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Dataproc/phpunit.xml.dist +++ b/Dataproc/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Dataproc/tests/Snippet/bootstrap.php b/Dataproc/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Dataproc/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Dataproc/tests/System/bootstrap.php b/Dataproc/tests/System/bootstrap.php index b3f22de9e969..38465605b9a8 100644 --- a/Dataproc/tests/System/bootstrap.php +++ b/Dataproc/tests/System/bootstrap.php @@ -1,9 +1,5 @@ - + tests/Snippet diff --git a/Datastore/phpunit-system.xml.dist b/Datastore/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Datastore/phpunit-system.xml.dist +++ b/Datastore/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Datastore/phpunit.xml.dist b/Datastore/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Datastore/phpunit.xml.dist +++ b/Datastore/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Datastore/tests/Snippet/bootstrap.php b/Datastore/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Datastore/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Datastore/tests/System/bootstrap.php b/Datastore/tests/System/bootstrap.php index 54420c6632cc..5a6093eab7b7 100644 --- a/Datastore/tests/System/bootstrap.php +++ b/Datastore/tests/System/bootstrap.php @@ -1,24 +1,9 @@ - + tests/Snippet diff --git a/Debugger/phpunit-system.xml.dist b/Debugger/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Debugger/phpunit-system.xml.dist +++ b/Debugger/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Debugger/phpunit.xml.dist b/Debugger/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Debugger/phpunit.xml.dist +++ b/Debugger/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Debugger/src/Breakpoint.php b/Debugger/src/Breakpoint.php index e1d0f7de55a7..b8c7e42d15a6 100644 --- a/Debugger/src/Breakpoint.php +++ b/Debugger/src/Breakpoint.php @@ -594,11 +594,13 @@ public function validate() * $found = $breakpoint->resolveLocation(); * ``` * + * @param SourceLocationResolver $resolver [optional] **Defaults to** a + * resolver that uses the current include path. * @return bool */ - public function resolveLocation() + public function resolveLocation(SourceLocationResolver $resolver = null) { - $resolver = new SourceLocationResolver(); + $resolver = $resolver ?: new SourceLocationResolver(); $this->resolvedLocation = $resolver->resolve($this->location); return $this->resolvedLocation !== null; diff --git a/Debugger/src/SourceLocationResolver.php b/Debugger/src/SourceLocationResolver.php index 904c182ea488..60f1920db285 100644 --- a/Debugger/src/SourceLocationResolver.php +++ b/Debugger/src/SourceLocationResolver.php @@ -31,6 +31,22 @@ */ class SourceLocationResolver { + /** + * @var string[] Search paths used to find matching source files. + */ + private $includePaths = []; + + /** + * Create a new SourceLocationResolver. + * + * @param string[]|null $includePaths The search paths used to find matching + * source files. **Defaults to** the configured include path for PHP. + */ + public function __construct($includePaths = null) + { + $this->includePaths = $includePaths ?: explode(PATH_SEPARATOR, get_include_path()); + } + /** * Resolve the full path of an existing file in the application's source. * If no matching source file is found, then return null. If found, the @@ -74,7 +90,7 @@ public function resolve(SourceLocation $location) $basename = basename($origPath); $prefixes = $this->searchPrefixes($origPath); - $includePaths = array_filter(explode(PATH_SEPARATOR, get_include_path()), function ($path) { + $includePaths = array_filter($this->includePaths, function ($path) { return file_exists($path); }); diff --git a/Debugger/tests/Snippet/MatchingFileIteratorTest.php b/Debugger/tests/Snippet/MatchingFileIteratorTest.php index f45178c9d9f8..e9bc18f9609d 100644 --- a/Debugger/tests/Snippet/MatchingFileIteratorTest.php +++ b/Debugger/tests/Snippet/MatchingFileIteratorTest.php @@ -28,6 +28,9 @@ class MatchingFileIteratorTest extends SnippetTestCase public function testClass() { $snippet = $this->snippetFromClass(MatchingFileIterator::class); + + $this->markTestSkipped('unreliable paths'); + $snippet->addUse(MatchingFileIterator::class); $matches = $snippet->invoke('matches')->returnVal(); $this->assertCount(1, $matches); diff --git a/Debugger/tests/Snippet/bootstrap.php b/Debugger/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Debugger/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Debugger/tests/System/bootstrap.php b/Debugger/tests/System/bootstrap.php index 54420c6632cc..38465605b9a8 100644 --- a/Debugger/tests/System/bootstrap.php +++ b/Debugger/tests/System/bootstrap.php @@ -1,24 +1,5 @@ markTestSkipped('unreliable paths'); + + $path = 'DebuggerClient.php'; $breakpoint = new Breakpoint([ 'location' => [ 'path' => $path, 'line' => 1 ] ]); - $this->assertTrue($breakpoint->resolveLocation()); + $cwd = realpath(implode(DIRECTORY_SEPARATOR, [__DIR__, '../../'])); + $resolver = new SourceLocationResolver([$cwd]); + $this->assertTrue($breakpoint->resolveLocation($resolver)); // resolved location should have changed the path $this->assertLessThan(strlen($breakpoint->location()->path()), strlen($path)); diff --git a/Debugger/tests/Unit/SourceLocationResolverTest.php b/Debugger/tests/Unit/SourceLocationResolverTest.php index 87569f15e8d5..575fb70ab6b7 100644 --- a/Debugger/tests/Unit/SourceLocationResolverTest.php +++ b/Debugger/tests/Unit/SourceLocationResolverTest.php @@ -26,35 +26,42 @@ */ class SourceLocationResolverTest extends TestCase { + private static $cwd; + + public static function setUpBeforeClass() + { + self::$cwd = realpath(implode(DIRECTORY_SEPARATOR, [__DIR__, '../../'])); + } + public function testExactMatch() { - $location = new SourceLocation('src/Debugger/DebuggerClient.php', 1); - $resolver = new SourceLocationResolver(); + $location = new SourceLocation('src/DebuggerClient.php', 1); + $resolver = new SourceLocationResolver([self::$cwd]); $resolvedLocation = $resolver->resolve($location); $this->assertInstanceOf(SourceLocation::class, $resolvedLocation); - $expectedFile = $this->sourcePath(['Debugger', 'src', 'DebuggerClient.php']); + $expectedFile = $this->sourcePath(['src', 'DebuggerClient.php']); $this->assertEquals($expectedFile, $resolvedLocation->path()); $this->assertEquals(1, $resolvedLocation->line()); } public function testExtraDirectories() { - $location = new SourceLocation('extra/src/Debugger/DebuggerClient.php', 1); - $resolver = new SourceLocationResolver(); + $location = new SourceLocation('extra/src/DebuggerClient.php', 1); + $resolver = new SourceLocationResolver([self::$cwd]); $resolvedLocation = $resolver->resolve($location); $this->assertInstanceOf(SourceLocation::class, $resolvedLocation); - $expectedFile = $this->sourcePath(['Debugger', 'src', 'DebuggerClient.php']); + $expectedFile = $this->sourcePath(['src', 'DebuggerClient.php']); $this->assertEquals($expectedFile, $resolvedLocation->path()); $this->assertEquals(1, $resolvedLocation->line()); } public function testMissingDirectories() { - $location = new SourceLocation('Debugger/DebuggerClient.php', 1); - $resolver = new SourceLocationResolver(); + $location = new SourceLocation('DebuggerClient.php', 1); + $resolver = new SourceLocationResolver([self::$cwd]); $resolvedLocation = $resolver->resolve($location); $this->assertInstanceOf(SourceLocation::class, $resolvedLocation); - $expectedFile = $this->sourcePath(['Debugger', 'src', 'DebuggerClient.php']); + $expectedFile = $this->sourcePath(['src', 'DebuggerClient.php']); $this->assertEquals($expectedFile, $resolvedLocation->path()); $this->assertEquals(1, $resolvedLocation->line()); } diff --git a/Debugger/tests/Unit/bootstrap.php b/Debugger/tests/Unit/bootstrap.php deleted file mode 100644 index 19d4b20353dd..000000000000 --- a/Debugger/tests/Unit/bootstrap.php +++ /dev/null @@ -1,3 +0,0 @@ - - + tests/Snippet diff --git a/Dlp/phpunit-system.xml.dist b/Dlp/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Dlp/phpunit-system.xml.dist +++ b/Dlp/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Dlp/phpunit.xml.dist b/Dlp/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Dlp/phpunit.xml.dist +++ b/Dlp/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Dlp/tests/Snippet/bootstrap.php b/Dlp/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Dlp/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Dlp/tests/System/bootstrap.php b/Dlp/tests/System/bootstrap.php index b3f22de9e969..38465605b9a8 100644 --- a/Dlp/tests/System/bootstrap.php +++ b/Dlp/tests/System/bootstrap.php @@ -1,9 +1,5 @@ - + tests/Snippet diff --git a/ErrorReporting/phpunit-system.xml.dist b/ErrorReporting/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/ErrorReporting/phpunit-system.xml.dist +++ b/ErrorReporting/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/ErrorReporting/phpunit.xml.dist b/ErrorReporting/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/ErrorReporting/phpunit.xml.dist +++ b/ErrorReporting/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/ErrorReporting/tests/Snippet/bootstrap.php b/ErrorReporting/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/ErrorReporting/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/ErrorReporting/tests/System/bootstrap.php b/ErrorReporting/tests/System/bootstrap.php index b3f22de9e969..38465605b9a8 100644 --- a/ErrorReporting/tests/System/bootstrap.php +++ b/ErrorReporting/tests/System/bootstrap.php @@ -1,9 +1,5 @@ + + + + tests/Conformance + + + + + src + + src/V[!a-zA-Z]* + + + + diff --git a/Firestore/phpunit-snippets.xml.dist b/Firestore/phpunit-snippets.xml.dist index 71e5bf96a35c..b92fd83e3c1b 100644 --- a/Firestore/phpunit-snippets.xml.dist +++ b/Firestore/phpunit-snippets.xml.dist @@ -1,5 +1,8 @@ - + tests/Snippet diff --git a/Firestore/phpunit-system.xml.dist b/Firestore/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Firestore/phpunit-system.xml.dist +++ b/Firestore/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Firestore/phpunit.xml.dist b/Firestore/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Firestore/phpunit.xml.dist +++ b/Firestore/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Firestore/tests/Snippet/bootstrap.php b/Firestore/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Firestore/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Firestore/tests/System/bootstrap.php b/Firestore/tests/System/bootstrap.php index 450cd6cc2f3e..125389a2712a 100644 --- a/Firestore/tests/System/bootstrap.php +++ b/Firestore/tests/System/bootstrap.php @@ -1,24 +1,5 @@ - + tests/Snippet diff --git a/Language/phpunit-system.xml.dist b/Language/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Language/phpunit-system.xml.dist +++ b/Language/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Language/phpunit.xml.dist b/Language/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Language/phpunit.xml.dist +++ b/Language/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Language/tests/Snippet/bootstrap.php b/Language/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Language/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Language/tests/System/bootstrap.php b/Language/tests/System/bootstrap.php index 54420c6632cc..38465605b9a8 100644 --- a/Language/tests/System/bootstrap.php +++ b/Language/tests/System/bootstrap.php @@ -1,24 +1,5 @@ - + tests/Snippet diff --git a/Logging/phpunit-system.xml.dist b/Logging/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Logging/phpunit-system.xml.dist +++ b/Logging/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Logging/phpunit.xml.dist b/Logging/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Logging/phpunit.xml.dist +++ b/Logging/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Logging/tests/Snippet/bootstrap.php b/Logging/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Logging/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Logging/tests/System/bootstrap.php b/Logging/tests/System/bootstrap.php index 54420c6632cc..38465605b9a8 100644 --- a/Logging/tests/System/bootstrap.php +++ b/Logging/tests/System/bootstrap.php @@ -1,24 +1,5 @@ - + tests/Snippet diff --git a/Monitoring/phpunit-system.xml.dist b/Monitoring/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Monitoring/phpunit-system.xml.dist +++ b/Monitoring/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Monitoring/phpunit.xml.dist b/Monitoring/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Monitoring/phpunit.xml.dist +++ b/Monitoring/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Monitoring/tests/Snippet/bootstrap.php b/Monitoring/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Monitoring/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Monitoring/tests/System/bootstrap.php b/Monitoring/tests/System/bootstrap.php index b3f22de9e969..38465605b9a8 100644 --- a/Monitoring/tests/System/bootstrap.php +++ b/Monitoring/tests/System/bootstrap.php @@ -1,9 +1,5 @@ - + tests/Snippet diff --git a/OsLogin/phpunit-system.xml.dist b/OsLogin/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/OsLogin/phpunit-system.xml.dist +++ b/OsLogin/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/OsLogin/phpunit.xml.dist b/OsLogin/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/OsLogin/phpunit.xml.dist +++ b/OsLogin/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/OsLogin/tests/Snippet/bootstrap.php b/OsLogin/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/OsLogin/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/OsLogin/tests/System/bootstrap.php b/OsLogin/tests/System/bootstrap.php index b3f22de9e969..38465605b9a8 100644 --- a/OsLogin/tests/System/bootstrap.php +++ b/OsLogin/tests/System/bootstrap.php @@ -1,9 +1,5 @@ - + tests/Snippet diff --git a/PubSub/phpunit-system.xml.dist b/PubSub/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/PubSub/phpunit-system.xml.dist +++ b/PubSub/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/PubSub/phpunit.xml.dist b/PubSub/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/PubSub/phpunit.xml.dist +++ b/PubSub/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/PubSub/tests/Snippet/bootstrap.php b/PubSub/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/PubSub/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/PubSub/tests/System/bootstrap.php b/PubSub/tests/System/bootstrap.php index 54420c6632cc..38465605b9a8 100644 --- a/PubSub/tests/System/bootstrap.php +++ b/PubSub/tests/System/bootstrap.php @@ -1,24 +1,5 @@ - + tests/Snippet diff --git a/Spanner/phpunit-system.xml.dist b/Spanner/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Spanner/phpunit-system.xml.dist +++ b/Spanner/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Spanner/phpunit.xml.dist b/Spanner/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Spanner/phpunit.xml.dist +++ b/Spanner/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Spanner/tests/Snippet/bootstrap.php b/Spanner/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Spanner/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Spanner/tests/System/bootstrap.php b/Spanner/tests/System/bootstrap.php index 54420c6632cc..f45f59500ebb 100644 --- a/Spanner/tests/System/bootstrap.php +++ b/Spanner/tests/System/bootstrap.php @@ -1,24 +1,8 @@ - + tests/Snippet diff --git a/Speech/phpunit-system.xml.dist b/Speech/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Speech/phpunit-system.xml.dist +++ b/Speech/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Speech/phpunit.xml.dist b/Speech/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Speech/phpunit.xml.dist +++ b/Speech/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Speech/tests/Snippet/bootstrap.php b/Speech/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Speech/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Speech/tests/System/bootstrap.php b/Speech/tests/System/bootstrap.php index 54420c6632cc..38465605b9a8 100644 --- a/Speech/tests/System/bootstrap.php +++ b/Speech/tests/System/bootstrap.php @@ -1,24 +1,5 @@ - + tests/Snippet diff --git a/Storage/phpunit-system.xml.dist b/Storage/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Storage/phpunit-system.xml.dist +++ b/Storage/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Storage/phpunit.xml.dist b/Storage/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Storage/phpunit.xml.dist +++ b/Storage/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Storage/tests/Snippet/bootstrap.php b/Storage/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Storage/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Storage/tests/System/RequesterPaysTest.php b/Storage/tests/System/RequesterPaysTest.php index e73426eb0c50..748652aa3935 100644 --- a/Storage/tests/System/RequesterPaysTest.php +++ b/Storage/tests/System/RequesterPaysTest.php @@ -34,7 +34,7 @@ class RequesterPaysTest extends StorageTestCase private $keyFilePath; private $requesterPaysClient; private $requesterProject; - private $user; + private $keyfileUser; private static $bucketName; private static $ownerBucketInstance; @@ -71,13 +71,13 @@ public static function setupBeforeClass() public function setUp() { - if (!defined('GOOGLE_CLOUD_WHITELIST_KEY_PATH')) { - $this->markTestSkipped('Missing whitelist keyfile path for whitelist system tests.'); - } + $this->keyFilePath = getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH'); + + $keyfile = json_decode(file_get_contents(getenv('GOOGLE_CLOUD_PHP_TESTS_WHITELIST_KEY_PATH')), true); + $this->keyfileUser = $keyfile['client_email']; - $this->keyFilePath = GOOGLE_CLOUD_WHITELIST_KEY_PATH; $this->requesterPaysClient = new StorageClient([ - 'keyFilePath' => $this->keyFilePath + 'keyFile' => $keyfile ]); $parentKeyfile = json_decode(file_get_contents(getenv('GOOGLE_CLOUD_PHP_TESTS_KEY_PATH')), true); @@ -175,49 +175,48 @@ public function testRequesterPaysWithUserProject(callable $call) public function requesterPaysMethods() { - $keyfile = json_decode(file_get_contents(GOOGLE_CLOUD_WHITELIST_KEY_PATH), true); - $user = $keyfile['client_email']; + $this->setup(); return [ [ - function (Bucket $bucket) use ($user) { + function (Bucket $bucket) { $acl = $bucket->acl(); - $acl->add('user-'. $user, Acl::ROLE_READER); + $acl->add('user-'. $this->keyfileUser, Acl::ROLE_READER); } ], [ - function (Bucket $bucket) use ($user) { + function (Bucket $bucket) { $acl = $bucket->acl(); - $item = $acl->get(['entity' => 'user-'. $user]); + $item = $acl->get(['entity' => 'user-'. $this->keyfileUser]); } ], [ - function (Bucket $bucket) use ($user) { + function (Bucket $bucket) { $acl = $bucket->acl(); - $acl->update('user-'. $user, Acl::ROLE_OWNER); + $acl->update('user-'. $this->keyfileUser, Acl::ROLE_OWNER); } ], [ - function (Bucket $bucket) use ($user) { + function (Bucket $bucket) { $acl = $bucket->acl(); - $acl->delete('user-'. $user); + $acl->delete('user-'. $this->keyfileUser); } ], [ - function (Bucket $bucket) use ($user) { + function (Bucket $bucket) { $acl = $bucket->defaultAcl(); - $acl->add('user-'. $user, Acl::ROLE_READER); + $acl->add('user-'. $this->keyfileUser, Acl::ROLE_READER); } ], [ - function (Bucket $bucket) use ($user) { + function (Bucket $bucket) { $acl = $bucket->defaultAcl(); - $item = $acl->get(['entity' => 'user-'. $user]); + $item = $acl->get(['entity' => 'user-'. $this->keyfileUser]); } ], [ - function (Bucket $bucket) use ($user) { + function (Bucket $bucket) { $acl = $bucket->defaultAcl(); - $acl->update('user-'. $user, Acl::ROLE_OWNER); + $acl->update('user-'. $this->keyfileUser, Acl::ROLE_OWNER); } ], [ - function (Bucket $bucket) use ($user) { + function (Bucket $bucket) { $acl = $bucket->defaultAcl(); - $acl->delete('user-'. $user); + $acl->delete('user-'. $this->keyfileUser); } ], [ function (Bucket $bucket) { @@ -272,24 +271,24 @@ function (Bucket $bucket) { $bucket->notification(self::$notificationId)->reload(); } ], [ - function (Bucket $bucket, StorageObject $object) use ($user) { + function (Bucket $bucket, StorageObject $object) { $acl = $object->acl(); - $acl->add('user-'. $user, Acl::ROLE_READER); + $acl->add('user-'. $this->keyfileUser, Acl::ROLE_READER); } ], [ - function (Bucket $bucket, StorageObject $object) use ($user) { + function (Bucket $bucket, StorageObject $object) { $acl = $object->acl(); - $item = $acl->get(['entity' => 'user-'. $user]); + $item = $acl->get(['entity' => 'user-'. $this->keyfileUser]); } ], [ - function (Bucket $bucket, StorageObject $object) use ($user) { + function (Bucket $bucket, StorageObject $object) { $acl = $object->acl(); - $acl->update('user-'. $user, Acl::ROLE_OWNER); + $acl->update('user-'. $this->keyfileUser, Acl::ROLE_OWNER); } ], [ - function (Bucket $bucket, StorageObject $object) use ($user) { + function (Bucket $bucket, StorageObject $object) { $acl = $object->acl(); - $acl->delete('user-'. $user); + $acl->delete('user-'. $this->keyfileUser); } ], [ function (Bucket $bucket, StorageObject $object) { diff --git a/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php b/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php index 3701c18b8d13..72a4c4080c1a 100644 --- a/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php +++ b/Storage/tests/System/StreamWrapper/StreamWrapperTestCase.php @@ -18,6 +18,7 @@ namespace Google\Cloud\Storage\Tests\System\StreamWrapper; use Google\Cloud\Storage\Storage\Tests\SystemTestCase; +use Google\Cloud\Storage\Tests\System\StorageTestCase; /** * @group storage diff --git a/Storage/tests/System/bootstrap.php b/Storage/tests/System/bootstrap.php index 4c192f443571..f45f59500ebb 100644 --- a/Storage/tests/System/bootstrap.php +++ b/Storage/tests/System/bootstrap.php @@ -1,28 +1,8 @@ - + tests/Snippet diff --git a/Trace/phpunit-system.xml.dist b/Trace/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Trace/phpunit-system.xml.dist +++ b/Trace/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Trace/phpunit.xml.dist b/Trace/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Trace/phpunit.xml.dist +++ b/Trace/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Trace/tests/Snippet/bootstrap.php b/Trace/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Trace/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Trace/tests/System/bootstrap.php b/Trace/tests/System/bootstrap.php index 54420c6632cc..38465605b9a8 100644 --- a/Trace/tests/System/bootstrap.php +++ b/Trace/tests/System/bootstrap.php @@ -1,24 +1,5 @@ - + tests/Snippet diff --git a/Translate/phpunit-system.xml.dist b/Translate/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Translate/phpunit-system.xml.dist +++ b/Translate/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Translate/phpunit.xml.dist b/Translate/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Translate/phpunit.xml.dist +++ b/Translate/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Translate/tests/Snippet/bootstrap.php b/Translate/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Translate/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Translate/tests/System/bootstrap.php b/Translate/tests/System/bootstrap.php index 54420c6632cc..38465605b9a8 100644 --- a/Translate/tests/System/bootstrap.php +++ b/Translate/tests/System/bootstrap.php @@ -1,24 +1,5 @@ - + tests/Snippet diff --git a/VideoIntelligence/phpunit-system.xml.dist b/VideoIntelligence/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/VideoIntelligence/phpunit-system.xml.dist +++ b/VideoIntelligence/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/VideoIntelligence/phpunit.xml.dist b/VideoIntelligence/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/VideoIntelligence/phpunit.xml.dist +++ b/VideoIntelligence/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/VideoIntelligence/tests/Snippet/bootstrap.php b/VideoIntelligence/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/VideoIntelligence/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/VideoIntelligence/tests/System/bootstrap.php b/VideoIntelligence/tests/System/bootstrap.php index b3f22de9e969..38465605b9a8 100644 --- a/VideoIntelligence/tests/System/bootstrap.php +++ b/VideoIntelligence/tests/System/bootstrap.php @@ -1,9 +1,5 @@ - + tests/Snippet diff --git a/Vision/phpunit-system.xml.dist b/Vision/phpunit-system.xml.dist index 3b89f8d6d44d..f6deee15a036 100644 --- a/Vision/phpunit-system.xml.dist +++ b/Vision/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + tests/System diff --git a/Vision/phpunit.xml.dist b/Vision/phpunit.xml.dist index ef42703546cb..1c2b8f6b56d2 100644 --- a/Vision/phpunit.xml.dist +++ b/Vision/phpunit.xml.dist @@ -1,5 +1,5 @@ - + tests/Unit diff --git a/Vision/tests/Snippet/bootstrap.php b/Vision/tests/Snippet/bootstrap.php deleted file mode 100644 index c3d626744d13..000000000000 --- a/Vision/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/Vision/tests/System/bootstrap.php b/Vision/tests/System/bootstrap.php index 54420c6632cc..38465605b9a8 100644 --- a/Vision/tests/System/bootstrap.php +++ b/Vision/tests/System/bootstrap.php @@ -1,24 +1,5 @@ add(new Release(__DIR__)); +$app->add(new AddComponent(__DIR__)); +$app->add(new ComponentIntegration(__DIR__)); +$app->add(new Credentials(__DIR__)); $app->add(new Docs(__DIR__)); +$app->add(new Release(__DIR__)); $app->add(new Split(__DIR__)); -$app->add(new AddComponent(__DIR__)); $app->run(); diff --git a/dev/sh/system-test-credentials b/dev/sh/system-test-credentials deleted file mode 100755 index 07ed8df1b7ca..000000000000 --- a/dev/sh/system-test-credentials +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env php -cliBasePath = $cliBasePath; + + parent::__construct(); + } + + protected function configure() + { + $this->setName('integration') + ->setDescription('Test each component individually.'); + } + + protected function execute(InputInterface $input, OutputInterface $output) + { + $this->execute = true; + $this->output = $output; + + $rootPath = dirname($this->cliBasePath); + $manifestPath = $rootPath . DIRECTORY_SEPARATOR . self::MANIFEST_PATH; + + $components = $this->getComponents($rootPath, $rootPath); + + $dest = $rootPath . DIRECTORY_SEPARATOR . self::TESTING_DIR; + $this->tmpDir = $dest; + @mkdir($dest); + + $guzzle = new Client; + + // do setup on components -- copy to tmp directory and check version info + foreach ($components as &$component) { + $tmpDir = $this->copyComponent($rootPath, $dest, $component); + + $localLatestVersion = $this->getComponentVersion($manifestPath, $component['id']); + $remoteLatestVersion = $this->getRemoteLatestVersion($guzzle, $component); + + // If the latest version in the manifest is greater than the latest remote, + // then the component is being updated. + // use semver to normalize both versions. + $isUpdated = version::gt($localLatestVersion, $remoteLatestVersion); + $component['useLocalPath'] = $isUpdated; + $component['tmpDir'] = $tmpDir; + } + + $components = $this->updateComposerFiles($dest, $components); + + // run tests on each component. + foreach ($components as $component) { + if (isset($component['missingDependency']) && $component['missingDependency']) { + $this->output->writeln('Skipping '. $component['id'] .' because a required PHP extension is missing.'); + $this->output->writeln(''); + continue; + } + + $this->testComponent($component); + } + + $this->deleteTmp($dest); + } + + private function copyComponent($rootPath, $dest, array $component) + { + $src = $rootPath . DIRECTORY_SEPARATOR . $component['path']; + $dest = $dest . DIRECTORY_SEPARATOR . $component['id']; + + if (file_exists($dest)) { + $this->deleteTmp($dest); + } + + $this->output->writeln('Creating temp directory for '. $component['id']); + $this->output->writeln('path: '. $dest); + $this->output->writeln(''); + + @mkdir($dest); + $iterator = new \RecursiveIteratorIterator( + new \RecursiveDirectoryIterator($src, \RecursiveDirectoryIterator::SKIP_DOTS), + \RecursiveIteratorIterator::SELF_FIRST + ); + + foreach ($iterator as $item) { + if ($item->isDir()) { + mkdir($dest . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); + } else { + copy($item, $dest . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); + } + } + + return $dest; + } + + private function deleteTmp($path) + { + $this->output->writeln('Deleting '. $path); + $this->output->writeln(''); + + if (!strpos($this->tmpDir, $path) === false) { + throw new \RuntimeException('cannot delete files outside test root path.'); + } + + passthru('rm -rf '. $path); + } + + private function getRemoteLatestVersion(Client $guzzle, array $component) + { + $target = str_replace('.git', '', trim($component['target'], '/')); + + $uri = 'https://api.github.com/repos/'. $target .'/releases/latest'; + if (getenv('GH_OAUTH_TOKEN')) { + $uri .= '?access_token='. getenv('GH_OAUTH_TOKEN'); + } + + $res = $guzzle->get($uri); + + $release = json_decode((string) $res->getBody(), true); + + if (!isset($release['tag_name'])) { + throw new \RuntimeException('Unexpected response from '. $uri); + } + + return $release['tag_name']; + } + + private function updateComposerFiles($tmpDir, array $components) + { + $repositories = []; + $aliases = []; + + foreach ($components as $component) { + if (!$component['useLocalPath']) { + continue; + } + + $repositories[] = [ + 'type' => 'path', + 'url' => '../'. $component['id'] + ]; + + $aliases[] = $component['id']; + } + + foreach ($components as &$component) { + $composerFile = $component['tmpDir'] . DIRECTORY_SEPARATOR .'composer.json'; + $composer = json_decode(file_get_contents($composerFile), true); + if (json_last_error() !== JSON_ERROR_NONE) { + throw new \RuntimeException('Could not decode composer file '. $composerFile); + } + + foreach ($aliases as $alias) { + $id = $component['id']; + if ( + !in_array($id, $aliases) && ( + array_key_exists('google/'. $alias, $composer['require']) || + array_key_exists('google/'. $alias, $composer['require-dev']) + )) { + $aliases[] = $id; + + $repositories[] = [ + 'type' => 'path', + 'url' => '../'. $component['id'] + ]; + } + } + + $component['missingDependency'] = false; + foreach ($composer['require'] as $require => $version) { + if (strpos($require, 'ext-') === 0) { + $ext = str_replace('ext-', '', $require); + if (!extension_loaded($ext)) { + $component['missingDependency'] = true; + continue; + } + } + } + } + + foreach ($components as $component) { + $composerFile = $component['tmpDir'] . DIRECTORY_SEPARATOR .'composer.json'; + $this->modifyComposerFile($composerFile, $repositories, $aliases); + } + + return $components; + } + + private function testComponent(array $component) + { + $this->output->writeln('Testing component '. $component['id'] .''); + $this->output->writeln(''); + $commands = [ + "cd {$component['tmpDir']}", + "composer update --no-suggest", + "echo \"\\nRUNNING UNIT TESTS\\n\"", + "vendor/bin/phpunit", + "echo \"\\nRUNNING SNIPPET TESTS\\n\"", + "vendor/bin/phpunit -c phpunit-snippets.xml.dist" + ]; + + passthru(implode(" && ", $commands), $exitCode); + + if ($exitCode !== 0) { + throw new \RuntimeException('Testing '. $component['id'] .' exited with a non-zero code'); + } + + $this->output->writeln(''); + } + + private function modifyComposerFile($composerFile, array $repositories, array $aliases) + { + $composer = json_decode(file_get_contents($composerFile), true); + if (json_last_error() !== JSON_ERROR_NONE) { + throw new \RuntimeException('Could not decode composer file '. $composerFile); + } + + foreach ($aliases as $alias) { + if (isset($composer['require']['google/'. $alias])) { + $composer['require']['google/'. $alias] = "@dev"; + } + + if (isset($composer['require-dev']['google/'. $alias])) { + $composer['require-dev']['google/'. $alias] = "@dev"; + } + } + + $oldRepositories = isset($composer['repositories']) + ? $composer['repositories'] + : []; + + $composer['repositories'] = array_merge($oldRepositories, $repositories); + + file_put_contents($composerFile, json_encode($composer, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES)); + } +} diff --git a/dev/src/Credentials/Command.php b/dev/src/Credentials/Command.php new file mode 100644 index 000000000000..3367f14fe438 --- /dev/null +++ b/dev/src/Credentials/Command.php @@ -0,0 +1,84 @@ +cliBasePath = $cliBasePath; + + parent::__construct(); + } + + protected function configure() + { + $this->setName('credentials') + ->setDescription('Configure credentials for system tests') + ->setHelp(file_get_contents(__DIR__ .'/help.txt')); + } + + protected function execute(InputInterface $input, OutputInterface $output) + { + $base = realpath($this->cliBasePath .'/../'); + + $keyfiles = getenv('GOOGLE_CLOUD_PHP_KEYFILES'); + $decoded = json_decode(base64_decode($keyfiles), true); + if (!$keyfiles || json_last_error() !== JSON_ERROR_NONE) { + $output->writeln('You must specify `GOOGLE_CLOUD_PHP_KEYFILES` as a base64-encoded json array of keyfile names.'); + return; + } + + foreach ($decoded as $kf) { + $err = false; + + $data = base64_decode(getenv($kf . '_ENCODED'), true); + if (json_last_error() !== JSON_ERROR_NONE) { + $output->writeln('Required environment variable `' . $kf . '_ENCODED` not set or invalid!'); + return; + } else { + $output->writeln('Found valid json at environment variable `' . $kf .'`'); + } + + $dir = $base . '/keys/'; + $path = $dir . $kf .'.json'; + + if (!file_exists($dir)) { + mkdir($dir); + } + + if (file_put_contents($path, $data) !== false) { + $output->writeln('Wrote keyfile contents to file `' . realpath($path) . '`'); + } else { + $output->writeln('Could not write to file'); + return; + } + } + + $output->writeln('Credentials configured!'); + } +} diff --git a/dev/src/Credentials/help.txt b/dev/src/Credentials/help.txt new file mode 100644 index 000000000000..f5339dbdbc9d --- /dev/null +++ b/dev/src/Credentials/help.txt @@ -0,0 +1,7 @@ +This command reads keyfile data from the environment and generates on-disk keyfiles. + +This command relies on environment variables which must be set prior to running this command. + +1. `GOOGLE_CLOUD_PHP_KEYFILES` is a base64-encoded, json-encoded list of keyfiles to load. For instance, if you only need a single keyfile to run system tests, this environment variable should be the value of `base64_encode(json_encode(['KEYFILE_NAME']))`. +2. `_ENCODED` is a base64-encoded, json-encoded keyfile. There must be one environment variable corresponding to each member of `GOOGLE_CLOUD_PHP_KEYFILES` and it must contain the keyfile in its expected format. + diff --git a/dev/src/DocGenerator/Command/Docs.php b/dev/src/DocGenerator/Command/Docs.php index f34284c10f54..adcd6f6b8bb1 100644 --- a/dev/src/DocGenerator/Command/Docs.php +++ b/dev/src/DocGenerator/Command/Docs.php @@ -17,8 +17,8 @@ namespace Google\Cloud\Dev\DocGenerator\Command; +use Google\Cloud\Core\Testing\FileListFilterIterator; use Google\Cloud\Dev\DocGenerator\DocGenerator; -use Google\Cloud\Dev\DocGenerator\FileListFilterIterator; use Google\Cloud\Dev\DocGenerator\GuideGenerator; use Google\Cloud\Dev\DocGenerator\RegexFileFilter; use Google\Cloud\Dev\DocGenerator\TableOfContents; @@ -228,7 +228,6 @@ private function getFilesList($source, array $types, array $excludes = []) { $directoryIterator = new RecursiveDirectoryIterator($source); $iterator = new RecursiveIteratorIterator($directoryIterator); - // $regexIterator = new RegexIterator($iterator, $regex, RecursiveRegexIterator::GET_MATCH); $fileList = new FileListFilterIterator( realpath($this->cliBasePath .'/../'), $iterator, diff --git a/dev/src/GetComponentsTrait.php b/dev/src/GetComponentsTrait.php index 6635ddef26d1..ffe73f9186fd 100644 --- a/dev/src/GetComponentsTrait.php +++ b/dev/src/GetComponentsTrait.php @@ -139,7 +139,15 @@ private function getManifest($manifestPath) */ private function getComponentComposer($libraryRootPath, $componentId) { - $components = $this->getComponents($libraryRootPath, $this->components, $this->defaultComponentComposer); + $defaultComposerPath = isset($this->defaultComponentComposer) + ? $this->defaultComponentComposer + : null; + + $componentsDir = isset($this->components) + ? $this->components + : $libraryRootPath; + + $components = $this->getComponents($libraryRootPath, $componentsDir, $defaultComposerPath); $components = array_values(array_filter($components, function ($component) use ($componentId) { return ($component['id'] === $componentId); diff --git a/phpunit-conformance.xml.dist b/phpunit-conformance.xml.dist index 9e8ee84d7cea..6c93b1d353b3 100644 --- a/phpunit-conformance.xml.dist +++ b/phpunit-conformance.xml.dist @@ -1,8 +1,8 @@ - + - tests/conformance + */tests/conformance diff --git a/phpunit-snippets.xml.dist b/phpunit-snippets.xml.dist index 7128ae461909..78e6f60612a3 100644 --- a/phpunit-snippets.xml.dist +++ b/phpunit-snippets.xml.dist @@ -1,5 +1,9 @@ - + */tests/Snippet diff --git a/phpunit-system.xml.dist b/phpunit-system.xml.dist index adedf6efa577..aa9dc976501f 100644 --- a/phpunit-system.xml.dist +++ b/phpunit-system.xml.dist @@ -1,5 +1,5 @@ - + */tests/system diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 46a81d77b410..bf46c0c76e66 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,8 +1,9 @@ - + */tests/Unit + ./tests/Unit diff --git a/src/Core/Testing/Snippet/Coverage/ExcludeFilter.php b/src/Core/Testing/Snippet/Coverage/ExcludeFilter.php deleted file mode 100644 index da9a254f4dc4..000000000000 --- a/src/Core/Testing/Snippet/Coverage/ExcludeFilter.php +++ /dev/null @@ -1,55 +0,0 @@ -excludeDirs = $excludeDirs; - } - - /** - * @return bool - */ - public function accept() - { - // Accept the current item if we can recurse into it - // or it is a value starting with "test" - foreach ($this->excludeDirs as $excludeDir) { - if (strpos($this->current(), $excludeDir) !== false) { - return false; - } - } - return true; - } -} diff --git a/src/Core/Testing/Snippet/Fixtures.php b/src/Core/Testing/Snippet/Fixtures.php deleted file mode 100644 index cbf7132bce2e..000000000000 --- a/src/Core/Testing/Snippet/Fixtures.php +++ /dev/null @@ -1,32 +0,0 @@ - Date: Thu, 22 Mar 2018 22:07:13 -0400 Subject: [PATCH 50/59] update bin paths --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 48286ccc2a7f..b8aa633b9a4e 100644 --- a/composer.json +++ b/composer.json @@ -152,8 +152,8 @@ "google-cloud": "dev/google-cloud" }, "bin": [ - "src/Core/bin/google-cloud-batch", - "src/Debugger/bin/google-cloud-debugger" + "Core/bin/google-cloud-batch", + "Debugger/bin/google-cloud-debugger" ], "extra": { "component": { From d5883ac9743a5fc57cc1cfdfa016cbfc1f699231 Mon Sep 17 00:00:00 2001 From: Dave Supplee Date: Thu, 22 Mar 2018 22:08:07 -0400 Subject: [PATCH 51/59] move dlp v2 to new structure --- {src/Dlp => Dlp/src}/V2/DlpServiceClient.php | 0 {src/Dlp => Dlp/src}/V2/Gapic/DlpServiceGapicClient.php | 0 {src/Dlp => Dlp/src}/V2/README.md | 0 {src/Dlp => Dlp/src}/V2/resources/dlp_service_client_config.json | 0 .../src}/V2/resources/dlp_service_descriptor_config.php | 0 .../src}/V2/resources/dlp_service_rest_client_config.php | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename {src/Dlp => Dlp/src}/V2/DlpServiceClient.php (100%) rename {src/Dlp => Dlp/src}/V2/Gapic/DlpServiceGapicClient.php (100%) rename {src/Dlp => Dlp/src}/V2/README.md (100%) rename {src/Dlp => Dlp/src}/V2/resources/dlp_service_client_config.json (100%) rename {src/Dlp => Dlp/src}/V2/resources/dlp_service_descriptor_config.php (100%) rename {src/Dlp => Dlp/src}/V2/resources/dlp_service_rest_client_config.php (100%) diff --git a/src/Dlp/V2/DlpServiceClient.php b/Dlp/src/V2/DlpServiceClient.php similarity index 100% rename from src/Dlp/V2/DlpServiceClient.php rename to Dlp/src/V2/DlpServiceClient.php diff --git a/src/Dlp/V2/Gapic/DlpServiceGapicClient.php b/Dlp/src/V2/Gapic/DlpServiceGapicClient.php similarity index 100% rename from src/Dlp/V2/Gapic/DlpServiceGapicClient.php rename to Dlp/src/V2/Gapic/DlpServiceGapicClient.php diff --git a/src/Dlp/V2/README.md b/Dlp/src/V2/README.md similarity index 100% rename from src/Dlp/V2/README.md rename to Dlp/src/V2/README.md diff --git a/src/Dlp/V2/resources/dlp_service_client_config.json b/Dlp/src/V2/resources/dlp_service_client_config.json similarity index 100% rename from src/Dlp/V2/resources/dlp_service_client_config.json rename to Dlp/src/V2/resources/dlp_service_client_config.json diff --git a/src/Dlp/V2/resources/dlp_service_descriptor_config.php b/Dlp/src/V2/resources/dlp_service_descriptor_config.php similarity index 100% rename from src/Dlp/V2/resources/dlp_service_descriptor_config.php rename to Dlp/src/V2/resources/dlp_service_descriptor_config.php diff --git a/src/Dlp/V2/resources/dlp_service_rest_client_config.php b/Dlp/src/V2/resources/dlp_service_rest_client_config.php similarity index 100% rename from src/Dlp/V2/resources/dlp_service_rest_client_config.php rename to Dlp/src/V2/resources/dlp_service_rest_client_config.php From 0a4e08dc972fab83c94dac471ecc5adf2d921aae Mon Sep 17 00:00:00 2001 From: Dave Supplee Date: Thu, 22 Mar 2018 23:46:48 -0400 Subject: [PATCH 52/59] require opis/closure for tests --- Core/composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/composer.json b/Core/composer.json index 0fc316b479fe..e148e7b388ef 100644 --- a/Core/composer.json +++ b/Core/composer.json @@ -17,7 +17,8 @@ "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", "erusev/parsedown": "^1.6", - "google/gax": "^0.30" + "google/gax": "^0.30", + "opis/closure": "^3" }, "suggest": { "opis/closure": "May be used to serialize closures to process jobs in the batch daemon. Please require version ^3.", From fec7b7eeb098ad86012e5dbb41935fbc042d9fd2 Mon Sep 17 00:00:00 2001 From: Dave Supplee Date: Thu, 22 Mar 2018 23:47:41 -0400 Subject: [PATCH 53/59] add internal tags and fix cs --- Core/src/Testing/DatastoreOperationRefreshTrait.php | 3 +++ Core/src/Testing/Snippet/Coverage/ExcludeFilter.php | 6 +++++- Core/src/Testing/Snippet/Fixtures.php | 3 +++ Core/src/Testing/SpannerOperationRefreshTrait.php | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Core/src/Testing/DatastoreOperationRefreshTrait.php b/Core/src/Testing/DatastoreOperationRefreshTrait.php index 7d976535575b..d3e65d35d5fc 100644 --- a/Core/src/Testing/DatastoreOperationRefreshTrait.php +++ b/Core/src/Testing/DatastoreOperationRefreshTrait.php @@ -23,6 +23,9 @@ /** * Refresh Datastore operation class + * + * @experimental + * @internal */ trait DatastoreOperationRefreshTrait { diff --git a/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php b/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php index 4b8311720ae9..6ca0bce0b65b 100644 --- a/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php +++ b/Core/src/Testing/Snippet/Coverage/ExcludeFilter.php @@ -22,6 +22,9 @@ /** * Class ExcludeFilter is used to exclude directories from an iterable list + * + * @experimental + * @internal */ class ExcludeFilter extends FilterIterator { @@ -41,7 +44,8 @@ public function __construct(Iterator $iterator, array $excludeDirs) /** * @return bool Determines whether to accept or exclude a path */ - public function accept() { + public function accept() + { // Accept the current item if we can recurse into it // or it is a value starting with "test" foreach ($this->excludeDirs as $excludeDir) { diff --git a/Core/src/Testing/Snippet/Fixtures.php b/Core/src/Testing/Snippet/Fixtures.php index 5759a7f8d02e..314f0cc3bec4 100644 --- a/Core/src/Testing/Snippet/Fixtures.php +++ b/Core/src/Testing/Snippet/Fixtures.php @@ -19,6 +19,9 @@ /** * Class containing static functions to provide path to shared test fixtures + * + * @experimental + * @internal */ class Fixtures { diff --git a/Core/src/Testing/SpannerOperationRefreshTrait.php b/Core/src/Testing/SpannerOperationRefreshTrait.php index 5f3e743eb402..57e5cde23336 100644 --- a/Core/src/Testing/SpannerOperationRefreshTrait.php +++ b/Core/src/Testing/SpannerOperationRefreshTrait.php @@ -22,6 +22,9 @@ /** * Refresh Spanner operation class + * + * @experimental + * @internal */ trait SpannerOperationRefreshTrait { From 074e55d70de5b07081ebb335e277e40493d6726f Mon Sep 17 00:00:00 2001 From: Dave Supplee Date: Fri, 23 Mar 2018 00:26:35 -0400 Subject: [PATCH 54/59] update configurations --- Bigtable/phpunit.xml.dist | 1 + Spanner/phpunit.xml.dist | 2 ++ phpcs-ruleset.xml | 17 +++++++++++++---- phpunit-conformance.xml.dist | 9 +++++++-- phpunit-perf.xml.dist | 3 +-- phpunit-snippets.xml.dist | 7 ++++++- phpunit-system.xml.dist | 9 +++++++-- phpunit.xml.dist | 10 ++++++---- 8 files changed, 43 insertions(+), 15 deletions(-) diff --git a/Bigtable/phpunit.xml.dist b/Bigtable/phpunit.xml.dist index 1c2b8f6b56d2..b27349b8debf 100644 --- a/Bigtable/phpunit.xml.dist +++ b/Bigtable/phpunit.xml.dist @@ -10,6 +10,7 @@ src src/V[!a-zA-Z]* + src/*/V[!a-zA-Z]* diff --git a/Spanner/phpunit.xml.dist b/Spanner/phpunit.xml.dist index 1c2b8f6b56d2..fa7e3dc0adbb 100644 --- a/Spanner/phpunit.xml.dist +++ b/Spanner/phpunit.xml.dist @@ -10,6 +10,8 @@ src src/V[!a-zA-Z]* + src/*/V[!a-zA-Z]* + src/*/*/V[!a-zA-Z]* diff --git a/phpcs-ruleset.xml b/phpcs-ruleset.xml index 1f7d13c8f1a4..05e4ff4add13 100644 --- a/phpcs-ruleset.xml +++ b/phpcs-ruleset.xml @@ -2,13 +2,22 @@ - src/*/V[0-9]+ + */src/V[0-9]+ + */src/*/V[0-9]+ + */src/*/*/V[0-9]+ - src/Storage/StreamWrapper.php + Storage/src/StreamWrapper.php - src/Core/Testing/Lock/MockValues.php + Core/src/Testing/Lock/MockValues.php - src + . + Core/src/Testing + */tests + vendor + tests + dev + docs + diff --git a/phpunit-conformance.xml.dist b/phpunit-conformance.xml.dist index 6c93b1d353b3..a6e8a9e175d3 100644 --- a/phpunit-conformance.xml.dist +++ b/phpunit-conformance.xml.dist @@ -2,14 +2,19 @@ - */tests/conformance + */tests/Conformance + */src src - src/*/V[!a-zA-Z]* + */src/V[!a-zA-Z]* + */src/*/V[!a-zA-Z]* + */src/*/*/V[!a-zA-Z]* + Core/src/Testing + dev diff --git a/phpunit-perf.xml.dist b/phpunit-perf.xml.dist index 9d8bf59eec02..8f25eff80720 100644 --- a/phpunit-perf.xml.dist +++ b/phpunit-perf.xml.dist @@ -7,9 +7,8 @@ - src - src/*/V[!a-zA-Z]* + */src/V[!a-zA-Z]* diff --git a/phpunit-snippets.xml.dist b/phpunit-snippets.xml.dist index 78e6f60612a3..656a09e9e834 100644 --- a/phpunit-snippets.xml.dist +++ b/phpunit-snippets.xml.dist @@ -11,9 +11,14 @@ + */src src - src/*/V[!a-zA-Z]* + */src/V[!a-zA-Z]* + */src/*/V[!a-zA-Z]* + */src/*/*/V[!a-zA-Z]* + Core/src/Testing + dev diff --git a/phpunit-system.xml.dist b/phpunit-system.xml.dist index aa9dc976501f..47907d43b6d6 100644 --- a/phpunit-system.xml.dist +++ b/phpunit-system.xml.dist @@ -2,14 +2,19 @@ - */tests/system + */tests/System + */src src - src/*/V[!a-zA-Z]* + */src/V[!a-zA-Z]* + */src/*/V[!a-zA-Z]* + */src/*/*/V[!a-zA-Z]* + Core/src/Testing + dev diff --git a/phpunit.xml.dist b/phpunit.xml.dist index bf46c0c76e66..270f49ac819e 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -8,12 +8,14 @@ + */src src - src/*/V[!a-zA-Z]* - src/*/*/V[!a-zA-Z]* - src/*/*/*/V[!a-zA-Z]* - src/Core/Testing + */src/V[!a-zA-Z]* + */src/*/V[!a-zA-Z]* + */src/*/*/V[!a-zA-Z]* + Core/src/Testing + dev From 7ecfd54df471075879f1a01fa23c808a06237840 Mon Sep 17 00:00:00 2001 From: Dave Supplee Date: Fri, 23 Mar 2018 01:10:33 -0400 Subject: [PATCH 55/59] resolve issues with perf/conformance tests --- BigQuery/tests/Perf/bootstrap.php | 8 ++------ Core/perf-bootstrap.php | 5 +++++ Core/src/Testing/TestHelpers.php | 17 ++++++++++++++++- Firestore/tests/Conformance/FirestoreTest.php | 2 +- Logging/tests/Perf/bootstrap.php | 8 ++------ phpunit-perf.xml.dist | 2 +- 6 files changed, 27 insertions(+), 15 deletions(-) create mode 100644 Core/perf-bootstrap.php diff --git a/BigQuery/tests/Perf/bootstrap.php b/BigQuery/tests/Perf/bootstrap.php index 38a03fbbaaf5..38465605b9a8 100644 --- a/BigQuery/tests/Perf/bootstrap.php +++ b/BigQuery/tests/Perf/bootstrap.php @@ -1,9 +1,5 @@ - + */tests/Perf From 3042e877da335ae477ad89b9e17ef5b74ce5bc0f Mon Sep 17 00:00:00 2001 From: Dave Supplee Date: Fri, 23 Mar 2018 01:19:38 -0400 Subject: [PATCH 56/59] update bootstraps --- phpunit-system.xml.dist | 1 + tests/Snippet/bootstrap.php | 43 ------------------------------------- tests/System/bootstrap.php | 8 ------- 3 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 tests/Snippet/bootstrap.php delete mode 100644 tests/System/bootstrap.php diff --git a/phpunit-system.xml.dist b/phpunit-system.xml.dist index 47907d43b6d6..04ad0a574ace 100644 --- a/phpunit-system.xml.dist +++ b/phpunit-system.xml.dist @@ -3,6 +3,7 @@ */tests/System + tests/System diff --git a/tests/Snippet/bootstrap.php b/tests/Snippet/bootstrap.php deleted file mode 100644 index af6622402481..000000000000 --- a/tests/Snippet/bootstrap.php +++ /dev/null @@ -1,43 +0,0 @@ -buildListToCover(); - -Container::$coverage = $coverage; -Container::$parser = $parser; - -register_shutdown_function(function () { - $uncovered = Container::$coverage->uncovered(); - - if (!file_exists(__DIR__ . '/../../build')) { - mkdir(__DIR__ . '/../../build', 0777, true); - } - - file_put_contents(__DIR__ . '/../../build/snippets-uncovered.json', json_encode($uncovered, JSON_PRETTY_PRINT)); - - if (!empty($uncovered)) { - echo sprintf("\033[31mNOTICE: %s uncovered snippets! \033[0m See build/snippets-uncovered.json for a report.\n", count($uncovered)); - if (extension_loaded('grpc')) { - exit(1); - } - } -}); diff --git a/tests/System/bootstrap.php b/tests/System/bootstrap.php deleted file mode 100644 index f45f59500ebb..000000000000 --- a/tests/System/bootstrap.php +++ /dev/null @@ -1,8 +0,0 @@ - Date: Fri, 23 Mar 2018 01:42:25 -0400 Subject: [PATCH 57/59] update PR template --- BigQuery/.github/pull_request_template.md | 2 +- Bigtable/.github/pull_request_template.md | 2 +- Container/.github/pull_request_template.md | 2 +- Core/.github/pull_request_template.md | 2 +- Dataproc/.github/pull_request_template.md | 2 +- Datastore/.github/pull_request_template.md | 2 +- Debugger/.github/pull_request_template.md | 2 +- Dlp/.github/pull_request_template.md | 2 +- ErrorReporting/.github/pull_request_template.md | 2 +- Firestore/.github/pull_request_template.md | 2 +- Language/.github/pull_request_template.md | 2 +- Logging/.github/pull_request_template.md | 2 +- Monitoring/.github/pull_request_template.md | 2 +- OsLogin/.github/pull_request_template.md | 2 +- PubSub/.github/pull_request_template.md | 2 +- Spanner/.github/pull_request_template.md | 2 +- Speech/.github/pull_request_template.md | 2 +- Storage/.github/pull_request_template.md | 2 +- Trace/.github/pull_request_template.md | 2 +- Translate/.github/pull_request_template.md | 2 +- VideoIntelligence/.github/pull_request_template.md | 2 +- Vision/.github/pull_request_template.md | 2 +- .../templates/template-pull_request_template.md.txt | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/BigQuery/.github/pull_request_template.md b/BigQuery/.github/pull_request_template.md index 886f2976b506..b1c7e28b8881 100644 --- a/BigQuery/.github/pull_request_template.md +++ b/BigQuery/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/BigQuery`, and tests in `tests/*/BigQuery`. +belongs in `BigQuery/src`, and tests in `BigQuery/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Bigtable/.github/pull_request_template.md b/Bigtable/.github/pull_request_template.md index e3027adab95f..2a6e80c0bbd1 100644 --- a/Bigtable/.github/pull_request_template.md +++ b/Bigtable/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Bigtable`, and tests in `tests/*/Bigtable`. +belongs in `Bigtable/src`, and tests in `Bigtable/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Container/.github/pull_request_template.md b/Container/.github/pull_request_template.md index b440ed63c035..73ddf14a6c43 100644 --- a/Container/.github/pull_request_template.md +++ b/Container/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Container`, and tests in `tests/*/Container`. +belongs in `Container/src`, and tests in `Container/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Core/.github/pull_request_template.md b/Core/.github/pull_request_template.md index c63e788a6bbc..5371520b78d6 100644 --- a/Core/.github/pull_request_template.md +++ b/Core/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Core`, and tests in `tests/*/Core`. +belongs in `Core/src`, and tests in `Core/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Dataproc/.github/pull_request_template.md b/Dataproc/.github/pull_request_template.md index 967c12b675c2..c29cf03d1bf5 100644 --- a/Dataproc/.github/pull_request_template.md +++ b/Dataproc/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Dataproc`, and tests in `tests/*/Dataproc`. +belongs in `Dataproc/src`, and tests in `Dataproc/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Datastore/.github/pull_request_template.md b/Datastore/.github/pull_request_template.md index bd8c2798fb75..2be2ec587c80 100644 --- a/Datastore/.github/pull_request_template.md +++ b/Datastore/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Datastore`, and tests in `tests/*/Datastore`. +belongs in `Datastore/src`, and tests in `Datastore/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Debugger/.github/pull_request_template.md b/Debugger/.github/pull_request_template.md index aaa05829e46b..08fa5680ce2f 100644 --- a/Debugger/.github/pull_request_template.md +++ b/Debugger/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Debugger`, and tests in `tests/*/Debugger`. +belongs in `Debugger/src`, and tests in `Debugger/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Dlp/.github/pull_request_template.md b/Dlp/.github/pull_request_template.md index 99c1c24cabbe..89f1d319b708 100644 --- a/Dlp/.github/pull_request_template.md +++ b/Dlp/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Dlp`, and tests in `tests/*/Dlp`. +belongs in `Dlp/src`, and tests in `Dlp/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/ErrorReporting/.github/pull_request_template.md b/ErrorReporting/.github/pull_request_template.md index 45084e014f6d..16503cbccd83 100644 --- a/ErrorReporting/.github/pull_request_template.md +++ b/ErrorReporting/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/ErrorReporting`, and tests in `tests/*/ErrorReporting`. +belongs in `ErrorReporting/src`, and tests in `ErrorReporting/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Firestore/.github/pull_request_template.md b/Firestore/.github/pull_request_template.md index c7d12449e986..cfef633ecc7a 100644 --- a/Firestore/.github/pull_request_template.md +++ b/Firestore/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Firestore`, and tests in `tests/*/Firestore`. +belongs in `Firestore/src`, and tests in `Firestore/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Language/.github/pull_request_template.md b/Language/.github/pull_request_template.md index c78ebc7f32f1..3da604d93626 100644 --- a/Language/.github/pull_request_template.md +++ b/Language/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Language`, and tests in `tests/*/Language`. +belongs in `Language/src`, and tests in `Language/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Logging/.github/pull_request_template.md b/Logging/.github/pull_request_template.md index e037e4001c2b..c4c69094b1cc 100644 --- a/Logging/.github/pull_request_template.md +++ b/Logging/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Logging`, and tests in `tests/*/Logging`. +belongs in `Logging/src`, and tests in `Logging/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Monitoring/.github/pull_request_template.md b/Monitoring/.github/pull_request_template.md index 0f98b5e0223c..2647e3d1c39c 100644 --- a/Monitoring/.github/pull_request_template.md +++ b/Monitoring/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Monitoring`, and tests in `tests/*/Monitoring`. +belongs in `Monitoring/src`, and tests in `Monitoring/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/OsLogin/.github/pull_request_template.md b/OsLogin/.github/pull_request_template.md index fd7921a7724e..2d03ecf61a87 100644 --- a/OsLogin/.github/pull_request_template.md +++ b/OsLogin/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/OsLogin`, and tests in `tests/*/OsLogin`. +belongs in `OsLogin/src`, and tests in `OsLogin/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/PubSub/.github/pull_request_template.md b/PubSub/.github/pull_request_template.md index 17f809944ec1..c000a0f6dd61 100644 --- a/PubSub/.github/pull_request_template.md +++ b/PubSub/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/PubSub`, and tests in `tests/*/PubSub`. +belongs in `PubSub/src`, and tests in `PubSub/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Spanner/.github/pull_request_template.md b/Spanner/.github/pull_request_template.md index ec1a5966434f..3515c7aa689a 100644 --- a/Spanner/.github/pull_request_template.md +++ b/Spanner/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Spanner`, and tests in `tests/*/Spanner`. +belongs in `Spanner/src`, and tests in `Spanner/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Speech/.github/pull_request_template.md b/Speech/.github/pull_request_template.md index c27def06e3f6..ba571e758d50 100644 --- a/Speech/.github/pull_request_template.md +++ b/Speech/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Speech`, and tests in `tests/*/Speech`. +belongs in `Speech/src`, and tests in `Speech/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Storage/.github/pull_request_template.md b/Storage/.github/pull_request_template.md index 9507e2a6b030..9299c9800132 100644 --- a/Storage/.github/pull_request_template.md +++ b/Storage/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Storage`, and tests in `tests/*/Storage`. +belongs in `Storage/src`, and tests in `Storage/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Trace/.github/pull_request_template.md b/Trace/.github/pull_request_template.md index ad0a1ab0c1f7..0b776dfa1035 100644 --- a/Trace/.github/pull_request_template.md +++ b/Trace/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Trace`, and tests in `tests/*/Trace`. +belongs in `Trace/src`, and tests in `Trace/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Translate/.github/pull_request_template.md b/Translate/.github/pull_request_template.md index dd051376cc8a..752be35a2205 100644 --- a/Translate/.github/pull_request_template.md +++ b/Translate/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Translate`, and tests in `tests/*/Translate`. +belongs in `Translate/src`, and tests in `Translate/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/VideoIntelligence/.github/pull_request_template.md b/VideoIntelligence/.github/pull_request_template.md index 5bb52227214d..dc959ea351ae 100644 --- a/VideoIntelligence/.github/pull_request_template.md +++ b/VideoIntelligence/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/VideoIntelligence`, and tests in `tests/*/VideoIntelligence`. +belongs in `VideoIntelligence/src`, and tests in `VideoIntelligence/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/Vision/.github/pull_request_template.md b/Vision/.github/pull_request_template.md index 827c3fc40f99..d8e9d8b57557 100644 --- a/Vision/.github/pull_request_template.md +++ b/Vision/.github/pull_request_template.md @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/Vision`, and tests in `tests/*/Vision`. +belongs in `Vision/src`, and tests in `Vision/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). diff --git a/dev/src/AddComponent/templates/template-pull_request_template.md.txt b/dev/src/AddComponent/templates/template-pull_request_template.md.txt index a220cd2108f4..ed712c571f5c 100644 --- a/dev/src/AddComponent/templates/template-pull_request_template.md.txt +++ b/dev/src/AddComponent/templates/template-pull_request_template.md.txt @@ -14,7 +14,7 @@ $ git clone git@github.com:GoogleCloudPlatform/google-cloud-php.git ``` * Move your changes into the correct location in that library. Library code -belongs in `src/{clientBase}`, and tests in `tests/*/{clientBase}`. +belongs in `{clientBase}/src`, and tests in `{clientBase}/tests`. * Push the changes in a new branch to a fork, and open a new pull request [here](https://github.com/GoogleCloudPlatform/google-cloud-php). From 7d71622335630066a698187233bc2d4f76ed4436 Mon Sep 17 00:00:00 2001 From: Dave Supplee Date: Fri, 23 Mar 2018 09:02:07 -0400 Subject: [PATCH 58/59] show bigtable on docs --- docs/contents/cloud-bigtable.json | 2 +- docs/contents/google-cloud.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/contents/cloud-bigtable.json b/docs/contents/cloud-bigtable.json index 5d8287d146b4..472d6d93658f 100644 --- a/docs/contents/cloud-bigtable.json +++ b/docs/contents/cloud-bigtable.json @@ -2,7 +2,7 @@ "title": "Bigtable", "pattern": "bigtable\/\\w{1,}", "services": [{ - "title": "BigtableClient", + "title": "Overview", "type": "bigtable/readme" }, { "title": "v2", diff --git a/docs/contents/google-cloud.json b/docs/contents/google-cloud.json index f2dba7bd7ed1..62c4cbd4ae53 100644 --- a/docs/contents/google-cloud.json +++ b/docs/contents/google-cloud.json @@ -8,6 +8,7 @@ ], "includes": [ "cloud-bigquery", + "cloud-bigtable", "cloud-container", "cloud-core", "cloud-dataproc", From ea2c7a9602178ab3c58633443d2801b121684396 Mon Sep 17 00:00:00 2001 From: Dave Supplee Date: Fri, 23 Mar 2018 09:10:09 -0400 Subject: [PATCH 59/59] fix doc generation --- dev/src/DocGenerator/Command/Docs.php | 49 ++++++++++++---------- dev/src/DocGenerator/DocGenerator.php | 18 +++----- dev/src/DocGenerator/Parser/CodeParser.php | 5 ++- 3 files changed, 38 insertions(+), 34 deletions(-) diff --git a/dev/src/DocGenerator/Command/Docs.php b/dev/src/DocGenerator/Command/Docs.php index adcd6f6b8bb1..db3211c599da 100644 --- a/dev/src/DocGenerator/Command/Docs.php +++ b/dev/src/DocGenerator/Command/Docs.php @@ -88,6 +88,12 @@ protected function execute(InputInterface $input, OutputInterface $output) 'tocTemplate' => $this->cliBasePath .'/../'. self::TOC_TEMPLATE, 'overview' => $this->cliBasePath .'/../'. self::OVERVIEW_FILE ]; + $commonExcludes = [ + '.github', + 'tests', + 'CONTRIBUTING.md', + 'bootstrap.php' + ]; $components = $this->getComponents(dirname($this->cliBasePath), $paths['source']); $tocTemplate = json_decode(file_get_contents($paths['tocTemplate']), true); @@ -103,15 +109,17 @@ protected function execute(InputInterface $input, OutputInterface $output) } } - foreach ($components as $component) { - $input = $paths['project'] . $component['path'] .'/src'; - $source = $this->getFilesList($input, ['php', 'md'], [ - 'CONTRIBUTING.md' - ]); + foreach ($components as $comp) { + $input = $paths['project'] . $comp['path']; + $source = $this->getFilesList( + $input, + ['php', 'md'], + $commonExcludes + ); $this->generateComponentDocumentation( $output, $source, - $component, + $comp, $paths, $tocTemplate, $release, @@ -122,24 +130,23 @@ protected function execute(InputInterface $input, OutputInterface $output) if (!$component || $component === 'google-cloud') { $projectRealPath = realpath($paths['project']); - $source = $this->getFilesList($projectRealPath, [ - 'php', 'md' - ], [ - '/vendor', - '/dev', - '/build', - '/docs', - '/tests', - '.github', - '/CODE_OF_CONDUCT.md', - '/README.md', - 'bootstrap.php' - ]); - + $source = $this->getFilesList( + $projectRealPath, + ['php', 'md'], + array_merge($commonExcludes, [ + '/vendor', + '/dev', + '/build', + '/docs', + '/tests', + '/CODE_OF_CONDUCT.md', + '/README.md', + ]) + ); $component = [ 'id' => 'google-cloud', - 'path' => 'src/' + 'path' => '' ]; $this->generateComponentDocumentation( diff --git a/dev/src/DocGenerator/DocGenerator.php b/dev/src/DocGenerator/DocGenerator.php index 38d8e341f0b0..70fa16f5f0fc 100644 --- a/dev/src/DocGenerator/DocGenerator.php +++ b/dev/src/DocGenerator/DocGenerator.php @@ -69,18 +69,12 @@ public function generate($basePath, $pretty) $rootPath = realpath(dirname($this->executionPath)); foreach ($this->files as $file) { - if ($basePath) { - // in umbrella package, folder order is reverse of expected. - // i.e. Foo/src/FooClient.php. - // this conditional strips the `src` and creates a path with the parent folder name. - if (!$this->isComponent) { - $currentFile = str_replace('src/', '', trim(str_replace($rootPath, '', $file), '/')); - } else { - $currentFileArr = explode($basePath, trim($file, '/')); - if (isset($currentFileArr[1])) { - $currentFile = trim($currentFileArr[1], '/'); - } - } + $currentFileArr = $this->isComponent + ? explode("/$basePath/", $file) + : explode("$rootPath/", $file); + + if (isset($currentFileArr[1])) { + $currentFile = str_replace('src/', '', $currentFileArr[1]); } $isPhp = strrpos($file, '.php') == strlen($file) - strlen('.php'); diff --git a/dev/src/DocGenerator/Parser/CodeParser.php b/dev/src/DocGenerator/Parser/CodeParser.php index 4f86e3109dfd..da6d18b3681a 100644 --- a/dev/src/DocGenerator/Parser/CodeParser.php +++ b/dev/src/DocGenerator/Parser/CodeParser.php @@ -693,7 +693,10 @@ private function hasInternalType($type) $matches = []; preg_match(self::CLASS_TYPE_REGEX, $type, $matches); $type = $matches[1]; - $file = $this->projectRoot . '/src' . str_replace('\\', '/', substr($type, 12)) . '.php'; + $parts = explode('/', str_replace('\\', '/', substr($type, 13))); + array_splice($parts, 1, 0, 'src'); + $file = $this->projectRoot . '/' . implode('/', $parts) . '.php'; + return file_exists($file); }