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