From e83cee7690a19ced1fc9a225d9f7bd487a9bde5b Mon Sep 17 00:00:00 2001 From: Takashi Matsuo Date: Thu, 19 Jul 2018 10:34:42 -0700 Subject: [PATCH] Bandaid for protobuf 4761 (#1176) * Temporary workaround for protobuf extension issue https://github.com/google/protobuf/issues/4761 * Bump gax to 0.36 * Configure comparators for the unit test * Revert back to normal TestCase * Install protobuf extension in the PHP 7.2 test runner * Revert to TestCase --- composer.json | 2 +- unit-bootstrap.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ee627d9..859525b 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "squizlabs/php_codesniffer": "2.*", "phpdocumentor/reflection": "^3.0", "erusev/parsedown": "^1.6", - "google/gax": "^0.35", + "google/gax": "^0.36", "opis/closure": "^3" }, "suggest": { diff --git a/unit-bootstrap.php b/unit-bootstrap.php index f11c038..4fc3021 100644 --- a/unit-bootstrap.php +++ b/unit-bootstrap.php @@ -1,3 +1,10 @@ register(new MessageAwareArrayComparator()); +\SebastianBergmann\Comparator\Factory::getInstance()->register(new ProtobufMessageComparator()); +\SebastianBergmann\Comparator\Factory::getInstance()->register(new ProtobufGPBEmptyComparator());