diff options
author | jboeuf <jboeuf@users.noreply.github.com> | 2015-12-16 15:49:46 -0800 |
---|---|---|
committer | jboeuf <jboeuf@users.noreply.github.com> | 2015-12-16 15:49:46 -0800 |
commit | 62ae50d4ac824bbb9a6c732ac61fced4c2f2576b (patch) | |
tree | bf8d0b3292bba9ac0b9ee49f3413d4d36d37562b /src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php | |
parent | 416000f43fa93533e71d3180f6705cde013ae34d (diff) | |
parent | 6bd3180dfdda95d9ce824c88579f2dca87a65302 (diff) |
Merge pull request #4487 from stanley-cheung/php_insecure_channel_creds
PHP: make ChannelCredentials::createInsecure explicit
Diffstat (limited to 'src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php')
-rw-r--r-- | src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php b/src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php index 5a20e684c7..6bb1955ccb 100644 --- a/src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php +++ b/src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php @@ -39,7 +39,8 @@ class GeneratedCodeWithCallbackTest extends AbstractGeneratedCodeTest { self::$client = new math\MathClient( getenv('GRPC_TEST_HOST'), - ['update_metadata' => function ($a_hash, + ['credentials' => Grpc\ChannelCredentials::createInsecure(), + 'update_metadata' => function ($a_hash, $client = []) { $a_copy = $a_hash; $a_copy['foo'] = ['bar']; @@ -48,7 +49,7 @@ class GeneratedCodeWithCallbackTest extends AbstractGeneratedCodeTest }]); } - public static function tearDownAfterClass() + public function tearDown() { self::$client->close(); } |