summaryrefslogtreecommitdiff
path: root/php-src/tests
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-13 22:24:57 +0300
committerWolfy-J <[email protected]>2018-06-13 22:24:57 +0300
commitaf6869588e3128b502d308fc630f9853db2ec24b (patch)
treec321e57c75ea72d9a20c30dc3521cc699a5d885c /php-src/tests
parentdf4c11fb59b8ffca369f14eededda82884ee4dad (diff)
more tests + rpc tests
Diffstat (limited to 'php-src/tests')
-rw-r--r--php-src/tests/http/pid.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/php-src/tests/http/pid.php b/php-src/tests/http/pid.php
new file mode 100644
index 00000000..1cc322bf
--- /dev/null
+++ b/php-src/tests/http/pid.php
@@ -0,0 +1,11 @@
+<?php
+
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\ServerRequestInterface;
+
+function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
+{
+ $resp->getBody()->write(getmypid());
+
+ return $resp;
+} \ No newline at end of file