diff --git a/.github/emulator/start-emulator.sh b/.github/emulator/start-emulator.sh
index ee10d785cce4..cf27bb3972f8 100755
--- a/.github/emulator/start-emulator.sh
+++ b/.github/emulator/start-emulator.sh
@@ -1,9 +1,9 @@
#!/bin/sh -eux
-docker pull -q gcr.io/google.com/cloudsdktool/cloud-sdk:342.0.0-emulators
+docker pull -q gcr.io/google.com/cloudsdktool/cloud-sdk:384.0.1-emulators
CONTAINER=`docker run \
-d \
-p 8085:8085 \
- gcr.io/google.com/cloudsdktool/cloud-sdk:342.0.0-emulators gcloud beta emulators $1 start --host-port=0.0.0.0:8085 --project=emulator-project`
+ gcr.io/google.com/cloudsdktool/cloud-sdk:384.0.1-emulators gcloud beta emulators $1 start --host-port=0.0.0.0:8085 --project=emulator-project`
sleep 10
docker logs $CONTAINER
diff --git a/.github/workflows/bigtable-emulator-system-tests.yaml b/.github/workflows/bigtable-emulator-system-tests.yaml
index 96831012f00e..6428e778ec8d 100644
--- a/.github/workflows/bigtable-emulator-system-tests.yaml
+++ b/.github/workflows/bigtable-emulator-system-tests.yaml
@@ -2,11 +2,7 @@ on:
push:
branches:
- main
- paths:
- - 'Bigtable/**'
pull_request:
- paths:
- - 'Bigtable/**'
name: Run Bigtable System Tests With Emulator
jobs:
test:
diff --git a/.github/workflows/datastore-emulator-system-tests.yaml b/.github/workflows/datastore-emulator-system-tests.yaml
index 41a3bca692b0..1a50d631a3c4 100644
--- a/.github/workflows/datastore-emulator-system-tests.yaml
+++ b/.github/workflows/datastore-emulator-system-tests.yaml
@@ -1,13 +1,9 @@
+name: Run Datastore System Tests With Emulator
on:
push:
branches:
- main
- paths:
- - 'Datastore/**'
pull_request:
- paths:
- - 'Datastore/**'
-name: Run Datastore System Tests With Emulator
jobs:
test:
runs-on: ubuntu-latest
@@ -26,7 +22,9 @@ jobs:
- name: Install dependencies
run: |
- composer update --prefer-dist --no-interaction --no-suggest -d Datastore/
+ composer config minimum-stability dev -d Datastore/
+ composer config repositories.local path "../Core" -d Datastore
+ composer require "google/cloud-core:*" -d Datastore/
- name: Run system tests
run: |
diff --git a/.github/workflows/firestore-emulator-system-tests.yaml b/.github/workflows/firestore-emulator-system-tests.yaml
index 4148be837eed..ea617d9d44a9 100644
--- a/.github/workflows/firestore-emulator-system-tests.yaml
+++ b/.github/workflows/firestore-emulator-system-tests.yaml
@@ -2,11 +2,7 @@ on:
push:
branches:
- main
- paths:
- - 'Firestore/**'
pull_request:
- paths:
- - 'Firestore/**'
name: Run Firestore System Tests With Emulator
jobs:
test:
diff --git a/.github/workflows/pubsub-emulator-system-tests.yaml b/.github/workflows/pubsub-emulator-system-tests.yaml
index 46250b528d68..78a4ae6b0978 100644
--- a/.github/workflows/pubsub-emulator-system-tests.yaml
+++ b/.github/workflows/pubsub-emulator-system-tests.yaml
@@ -2,11 +2,7 @@ on:
push:
branches:
- main
- paths:
- - 'PubSub/**'
pull_request:
- paths:
- - 'PubSub/**'
name: Run PubSub System Tests With Emulator
jobs:
test:
@@ -22,11 +18,13 @@ jobs:
with:
php-version: '7.4'
tools: pecl
- extensions: grpc-1.38.0
+ extensions: grpc
- name: Install dependencies
run: |
- composer update --prefer-dist --no-interaction --no-suggest -d PubSub/
+ composer config minimum-stability dev -d PubSub/
+ composer config repositories.local path "../Core" -d PubSub
+ composer require "google/cloud-core:*" -d PubSub/
- name: Run system tests
run: |
diff --git a/.github/workflows/spanner-emulator-system-tests.yaml b/.github/workflows/spanner-emulator-system-tests.yaml
index 4fa1e4ca238f..9fcb8d4c4a0e 100644
--- a/.github/workflows/spanner-emulator-system-tests.yaml
+++ b/.github/workflows/spanner-emulator-system-tests.yaml
@@ -2,14 +2,10 @@ on:
push:
branches:
- main
- paths:
- - 'Spanner/**'
pull_request:
- paths:
- - 'Spanner/**'
name: Run Spanner System Tests With Emulator
jobs:
- php-test:
+ test:
runs-on: ubuntu-latest
services:
@@ -39,10 +35,12 @@ jobs:
with:
php-version: '7.4'
tools: pecl
- extensions: bcmath, grpc-1.37.1
+ extensions: bcmath, grpc
- name: Install dependencies
run: |
+ composer config minimum-stability dev -d Spanner/
+ composer config repositories.local --json '{"type":"path", "url": "../Core", "options": {"versions": {"google/cloud-core": "1.45"}}}' -d Spanner
composer update --prefer-dist --no-interaction --no-suggest -d Spanner/
- name: Run system tests
diff --git a/Datastore/tests/Unit/Connection/GrpcTest.php b/Datastore/tests/Unit/Connection/GrpcTest.php
index 9c2b89ce28c6..f662c6d29822 100644
--- a/Datastore/tests/Unit/Connection/GrpcTest.php
+++ b/Datastore/tests/Unit/Connection/GrpcTest.php
@@ -50,7 +50,6 @@ class GrpcTest extends TestCase
use ExpectException;
use GrpcTestTrait;
use GrpcTrait;
- use ExpectException;
const PROJECT_ID = 'my-project';
diff --git a/Datastore/tests/Unit/DatastoreClientTest.php b/Datastore/tests/Unit/DatastoreClientTest.php
index c890f149153d..2a47ef34be8b 100644
--- a/Datastore/tests/Unit/DatastoreClientTest.php
+++ b/Datastore/tests/Unit/DatastoreClientTest.php
@@ -44,10 +44,9 @@
*/
class DatastoreClientTest extends TestCase
{
- use ExpectException;
use DatastoreOperationRefreshTrait;
- use GrpcTestTrait;
use ExpectException;
+ use GrpcTestTrait;
const PROJECT = 'example-project';
const TRANSACTION = 'transaction-id';
diff --git a/Datastore/tests/Unit/DatastoreSessionHandlerTest.php b/Datastore/tests/Unit/DatastoreSessionHandlerTest.php
index 27c6890f5887..7525ca8b441d 100644
--- a/Datastore/tests/Unit/DatastoreSessionHandlerTest.php
+++ b/Datastore/tests/Unit/DatastoreSessionHandlerTest.php
@@ -35,7 +35,6 @@
*/
class DatastoreSessionHandlerTest extends TestCase
{
- use ExpectException;
use AssertIsType;
use ExpectException;
diff --git a/Datastore/tests/Unit/EntityMapperTest.php b/Datastore/tests/Unit/EntityMapperTest.php
index 1656d1757989..c1c9f787f2d1 100644
--- a/Datastore/tests/Unit/EntityMapperTest.php
+++ b/Datastore/tests/Unit/EntityMapperTest.php
@@ -35,7 +35,6 @@
*/
class EntityMapperTest extends TestCase
{
- use ExpectException;
use AssertIsType;
use ExpectException;
diff --git a/Datastore/tests/Unit/OperationTest.php b/Datastore/tests/Unit/OperationTest.php
index 97e0a7f46b1c..85f80a8c439b 100644
--- a/Datastore/tests/Unit/OperationTest.php
+++ b/Datastore/tests/Unit/OperationTest.php
@@ -38,7 +38,6 @@
*/
class OperationTest extends TestCase
{
- use ExpectException;
use AssertIsType;
use ExpectException;
diff --git a/Spanner/tests/System/ReadTest.php b/Spanner/tests/System/ReadTest.php
index bac1ae15bc8c..437dd2615579 100644
--- a/Spanner/tests/System/ReadTest.php
+++ b/Spanner/tests/System/ReadTest.php
@@ -20,7 +20,6 @@
use Google\Cloud\Spanner\KeyRange;
use Google\Cloud\Spanner\KeySet;
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;
-use Yoast\PHPUnitPolyfills\Polyfills\AssertStringContains;
/**
* @group spanner
@@ -28,7 +27,6 @@
*/
class ReadTest extends SpannerTestCase
{
- use AssertStringContains;
use ExpectException;
private static $readTableName;
@@ -86,8 +84,8 @@ public function testRangeReadSingleKeyOpen()
$res = $db->read(self::$rangeTableName, $keyset, array_keys(self::$dataset[0]));
$rows = iterator_to_array($res->rows());
- $this->assertStringNotContainsString(self::$dataset[0], $rows);
- $this->assertStringNotContainsString(self::$dataset[10], $rows);
+ $this->assertNotContains(self::$dataset[0], $rows);
+ $this->assertNotContains(self::$dataset[10], $rows);
}
/**
@@ -108,8 +106,8 @@ public function testRangeReadSingleKeyClosed()
$res = $db->read(self::$rangeTableName, $keyset, array_keys(self::$dataset[0]));
$rows = iterator_to_array($res->rows());
- $this->assertStringContainsString(self::$dataset[0], $rows);
- $this->assertStringContainsString(self::$dataset[10], $rows);
+ $this->assertContains(self::$dataset[0], $rows);
+ $this->assertContains(self::$dataset[10], $rows);
}
/**
@@ -129,8 +127,8 @@ public function testRangeReadSingleKeyOpenClosed()
$res = $db->read(self::$rangeTableName, $keyset, array_keys(self::$dataset[0]));
$rows = iterator_to_array($res->rows());
- $this->assertStringNotContainsString(self::$dataset[0], $rows);
- $this->assertStringContainsString(self::$dataset[10], $rows);
+ $this->assertNotContains(self::$dataset[0], $rows);
+ $this->assertContains(self::$dataset[10], $rows);
}
/**
@@ -150,8 +148,8 @@ public function testRangeReadSingleKeyClosedOpen()
$res = $db->read(self::$rangeTableName, $keyset, array_keys(self::$dataset[0]));
$rows = iterator_to_array($res->rows());
- $this->assertStringContainsString(self::$dataset[0], $rows);
- $this->assertStringNotContainsString(self::$dataset[10], $rows);
+ $this->assertContains(self::$dataset[0], $rows);
+ $this->assertNotContains(self::$dataset[10], $rows);
}
/**
@@ -170,8 +168,8 @@ public function testRangeReadPartialKeyOpen()
$res = $db->read(self::$rangeTableName, $keyset, array_keys(self::$dataset[0]));
$rows = iterator_to_array($res->rows());
- $this->assertStringNotContainsString(self::$dataset[0], $rows);
- $this->assertStringNotContainsString(self::$dataset[10], $rows);
+ $this->assertNotContains(self::$dataset[0], $rows);
+ $this->assertNotContains(self::$dataset[10], $rows);
}
/**
@@ -192,8 +190,8 @@ public function testRangeReadPartialKeyClosed()
$res = $db->read(self::$rangeTableName, $keyset, array_keys(self::$dataset[0]));
$rows = iterator_to_array($res->rows());
- $this->assertStringContainsString(self::$dataset[0], $rows);
- $this->assertStringContainsString(self::$dataset[10], $rows);
+ $this->assertContains(self::$dataset[0], $rows);
+ $this->assertContains(self::$dataset[10], $rows);
}
/**
@@ -214,8 +212,8 @@ public function testRangeReadIndexSingleKeyOpen()
'index' => $this->getIndexName(self::$rangeTableName, 'complex')
]);
$rows = iterator_to_array($res->rows());
- $this->assertStringNotContainsString(self::$dataset[0], $rows);
- $this->assertStringNotContainsString(self::$dataset[10], $rows);
+ $this->assertNotContains(self::$dataset[0], $rows);
+ $this->assertNotContains(self::$dataset[10], $rows);
}
/**
@@ -238,8 +236,8 @@ public function testRangeReadIndexSingleKeyClosed()
'index' => $this->getIndexName(self::$rangeTableName, 'complex')
]);
$rows = iterator_to_array($res->rows());
- $this->assertStringContainsString(self::$dataset[0], $rows);
- $this->assertStringContainsString(self::$dataset[10], $rows);
+ $this->assertContains(self::$dataset[0], $rows);
+ $this->assertContains(self::$dataset[10], $rows);
}
/**
@@ -261,8 +259,8 @@ public function testRangeReadIndexSingleKeyOpenClosed()
'index' => $this->getIndexName(self::$rangeTableName, 'complex')
]);
$rows = iterator_to_array($res->rows());
- $this->assertStringNotContainsString(self::$dataset[0], $rows);
- $this->assertStringContainsString(self::$dataset[10], $rows);
+ $this->assertNotContains(self::$dataset[0], $rows);
+ $this->assertContains(self::$dataset[10], $rows);
}
/**
@@ -284,8 +282,8 @@ public function testRangeReadIndexSingleKeyClosedOpen()
'index' => $this->getIndexName(self::$rangeTableName, 'complex')
]);
$rows = iterator_to_array($res->rows());
- $this->assertStringContainsString(self::$dataset[0], $rows);
- $this->assertStringNotContainsString(self::$dataset[10], $rows);
+ $this->assertContains(self::$dataset[0], $rows);
+ $this->assertNotContains(self::$dataset[10], $rows);
}
/**
@@ -306,8 +304,8 @@ public function testRangeReadIndexPartialKeyOpen()
'index' => $this->getIndexName(self::$rangeTableName, 'complex')
]);
$rows = iterator_to_array($res->rows());
- $this->assertStringNotContainsString(self::$dataset[0], $rows);
- $this->assertStringNotContainsString(self::$dataset[10], $rows);
+ $this->assertNotContains(self::$dataset[0], $rows);
+ $this->assertNotContains(self::$dataset[10], $rows);
}
/**
@@ -330,8 +328,8 @@ public function testRangeReadIndexPartialKeyClosed()
'index' => $this->getIndexName(self::$rangeTableName, 'complex')
]);
$rows = iterator_to_array($res->rows());
- $this->assertStringContainsString(self::$dataset[0], $rows);
- $this->assertStringContainsString(self::$dataset[10], $rows);
+ $this->assertContains(self::$dataset[0], $rows);
+ $this->assertContains(self::$dataset[10], $rows);
}
/**
@@ -400,8 +398,8 @@ public function testReadPoint()
$res = $db->read(self::$readTableName, $keyset, array_keys($dataset[0]));
$rows = $res->rows();
foreach ($rows as $index => $row) {
- $this->assertStringContainsString($row, $dataset);
- $this->assertStringContainsString($row, $points);
+ $this->assertContains($row, $dataset);
+ $this->assertContains($row, $points);
}
}
@@ -430,8 +428,8 @@ public function testReadPointOverIndex()
]);
$rows = $res->rows();
foreach ($rows as $index => $row) {
- $this->assertStringContainsString($row, $dataset);
- $this->assertStringContainsString($row, $points);
+ $this->assertContains($row, $dataset);
+ $this->assertContains($row, $points);
}
}
diff --git a/dev/src/DocGenerator/DocBlock/DescriptionFactory.php b/dev/src/DocGenerator/DocBlock/DescriptionFactory.php
index 018d8853b2e6..86ddf42bb64d 100644
--- a/dev/src/DocGenerator/DocBlock/DescriptionFactory.php
+++ b/dev/src/DocGenerator/DocBlock/DescriptionFactory.php
@@ -116,10 +116,10 @@ private function lex(string $contents) : array
(?:
# Because we did not catch the tag delimiters earlier, we must be explicit with them here.
# Notice that this also matches "{}", as a way to later introduce it as an escape sequence.
- {(?1)?\}
+ \{(?1)?\}
|
# Make sure we match hanging "{".
- {
+ \{
)
# Match content after the nested inline tag.
[^{}]*
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 8f633ac1c818..08b89c3d9ef7 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -19,10 +19,10 @@
./tests/Unit
-
-
-
+
+
+