summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-05 12:29:12 +0300
committerWolfy-J <[email protected]>2019-05-05 12:29:12 +0300
commite6acf9d57099c69ce58b1121716528825095814f (patch)
treee072766b682fa40521aeb4661094ea0779bb1123 /tests
parentee12d7b834b501beed56945a54fdabe8bbdd4570 (diff)
testing limits
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