summaryrefslogtreecommitdiff
path: root/php-src/tests/http
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-23 19:04:50 +0300
committerWolfy-J <[email protected]>2018-06-23 19:04:50 +0300
commit008a42fc6138e74766cdf9011a8dfc60df71b4a0 (patch)
treecdf85cb5536c8416020ca21475751dae0b9117a0 /php-src/tests/http
parent918e7de39e16eb293567427f2e8e8c3035690163 (diff)
error aggregation
Diffstat (limited to 'php-src/tests/http')
-rw-r--r--php-src/tests/http/echoerr.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/php-src/tests/http/echoerr.php b/php-src/tests/http/echoerr.php
new file mode 100644
index 00000000..da2ff4d8
--- /dev/null
+++ b/php-src/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