From 6bd3180dfdda95d9ce824c88579f2dca87a65302 Mon Sep 17 00:00:00 2001 From: Stanley Cheung Date: Wed, 16 Dec 2015 12:58:19 -0800 Subject: php: make channel credentials createInsecure explicit --- src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/php/tests/generated_code/GeneratedCodeWithCallbackTest.php') 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(); } -- cgit v1.2.3