From 85a0368b1b43355199676c1f6e1b5b02fd13b72e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 11 Dec 2020 18:23:31 +0000 Subject: [PATCH] add assert --- src/php/tests/unit_tests/CallInvokerTest.php | 2 ++ src/php/tests/unit_tests/ChannelTest.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/php/tests/unit_tests/CallInvokerTest.php b/src/php/tests/unit_tests/CallInvokerTest.php index 300d805cb04..4663695298b 100644 --- a/src/php/tests/unit_tests/CallInvokerTest.php +++ b/src/php/tests/unit_tests/CallInvokerTest.php @@ -176,11 +176,13 @@ class CallInvokerTest extends \PHPUnit\Framework\TestCase public function testCreateDefaultCallInvoker() { $call_invoker = new \Grpc\DefaultCallInvoker(); + $this->assertNotNull($call_invoker); } public function testCreateCallInvoker() { $call_invoker = new CallInvokerUpdateChannel(); + $this->assertNotNull($call_invoker); } public function testCallInvokerAccessChannel() diff --git a/src/php/tests/unit_tests/ChannelTest.php b/src/php/tests/unit_tests/ChannelTest.php index 3796e6216aa..6c054409119 100644 --- a/src/php/tests/unit_tests/ChannelTest.php +++ b/src/php/tests/unit_tests/ChannelTest.php @@ -39,8 +39,9 @@ class ChannelTest extends \PHPUnit\Framework\TestCase public function testConstructorCreateSsl() { - new Grpc\Channel('localhost:50033', + $channel = new Grpc\Channel('localhost:50033', ['credentials' => \Grpc\ChannelCredentials::createSsl()]); + $this->assertNotNull($channel); } public function testGetConnectivityState()