Skip to content

Commit

Permalink
Bandaid for protobuf 4761 (#1176)
Browse files Browse the repository at this point in the history
* Temporary workaround for protobuf extension issue

protocolbuffers/protobuf#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
  • Loading branch information
Takashi Matsuo authored Jul 19, 2018
1 parent 0cef27c commit e83cee7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
7 changes: 7 additions & 0 deletions unit-bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<?php

use Google\ApiCore\Testing\MessageAwareArrayComparator;
use Google\ApiCore\Testing\ProtobufMessageComparator;
use Google\ApiCore\Testing\ProtobufGPBEmptyComparator;

date_default_timezone_set('UTC');
\SebastianBergmann\Comparator\Factory::getInstance()->register(new MessageAwareArrayComparator());
\SebastianBergmann\Comparator\Factory::getInstance()->register(new ProtobufMessageComparator());
\SebastianBergmann\Comparator\Factory::getInstance()->register(new ProtobufGPBEmptyComparator());

0 comments on commit e83cee7

Please sign in to comment.