summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/http/stuck.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/http/stuck.php b/tests/http/stuck.php
new file mode 100644
index 00000000..7df8b0f7
--- /dev/null
+++ b/tests/http/stuck.php
@@ -0,0 +1,11 @@
+<?php
+
+use \Psr\Http\Message\ServerRequestInterface;
+use \Psr\Http\Message\ResponseInterface;
+
+function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
+{
+ sleep(10);
+ $resp->getBody()->write(strtoupper($req->getQueryParams()['hello']));
+ return $resp->withStatus(201);
+} \ No newline at end of file