@@ -47,7 +47,7 @@ function waitUntilNotIdle($channel) {
4747}
4848
4949// Set up 
50- $ channelnew  Grpc \Channel ('localhost:0  ' , ['credentials '  => Grpc \ChannelCredentials::createInsecure ()]);
50+ $ channelnew  Grpc \Channel ('localhost:50101  ' , ['credentials '  => Grpc \ChannelCredentials::createInsecure ()]);
5151
5252// Test InsecureCredentials 
5353assert ('Grpc\Channel '  == get_class ($ channel
@@ -56,28 +56,16 @@ function waitUntilNotIdle($channel) {
5656$ state$ channelgetConnectivityState ();
5757assert (0  == $ state
5858
59- // Test GetConnectivityStateWithInt 
60- $ state$ channelgetConnectivityState (123 );
61- assert (0  == $ state
62- 
63- // Test GetConnectivityStateWithString 
64- $ state$ channelgetConnectivityState ('hello ' );
65- assert (0  == $ state
66- 
67- // Test GetConnectivityStateWithBool 
68- $ state$ channelgetConnectivityState (true );
69- assert (0  == $ state
70- 
7159$ channelclose ();
7260
7361// Test GetTarget 
74- $ channelnew  Grpc \Channel ('localhost:8888  ' , ['credentials '  => Grpc \ChannelCredentials::createInsecure ()]);
62+ $ channelnew  Grpc \Channel ('localhost:50102  ' , ['credentials '  => Grpc \ChannelCredentials::createInsecure ()]);
7563$ target$ channelgetTarget ();
7664assert (is_string ($ targettrue );
7765$ channelclose ();
7866
7967// Test WatchConnectivityState 
80- $ channelnew  Grpc \Channel ('localhost:0  ' , ['credentials '  => Grpc \ChannelCredentials::createInsecure ()]);
68+ $ channelnew  Grpc \Channel ('localhost:50103  ' , ['credentials '  => Grpc \ChannelCredentials::createInsecure ()]);
8169$ nowGrpc \Timeval::now ();
8270$ deadline$ nowadd (new  Grpc \Timeval (100 *1000 ));
8371
0 commit comments