aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/distrib/php/distribtest.php
diff options
context:
space:
mode:
Diffstat (limited to 'test/distrib/php/distribtest.php')
-rw-r--r--test/distrib/php/distribtest.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/distrib/php/distribtest.php b/test/distrib/php/distribtest.php
new file mode 100644
index 0000000000..318c6f9cf0
--- /dev/null
+++ b/test/distrib/php/distribtest.php
@@ -0,0 +1,13 @@
+<?php
+
+$channel = new Grpc\Channel('localhost:1000', [
+ 'credentials' => Grpc\ChannelCredentials::createInsecure()
+]);
+
+$deadline = Grpc\Timeval::infFuture();
+$call = new Grpc\Call($channel,
+ 'dummy_method',
+ $deadline);
+
+$call->cancel();
+$channel->close();