summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-12-20 14:56:47 +0300
committerWolfy-J <[email protected]>2018-12-20 14:56:47 +0300
commitc63dd02f3ea0dfa326cfd20f259b235aca3fba1b (patch)
tree4feef09cc17c98d9acd295268737bb67cff0498d /tests
parentea60c3e1eba96cd140e4c89b710de3a98f523f43 (diff)
added tests for USER_AGENT
Diffstat (limited to 'tests')
-rw-r--r--tests/http/user-agent.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/http/user-agent.php b/tests/http/user-agent.php
new file mode 100644
index 00000000..029f49e9
--- /dev/null
+++ b/tests/http/user-agent.php
@@ -0,0 +1,10 @@
+<?php
+
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\ServerRequestInterface;
+
+function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
+{
+ $resp->getBody()->write($_SERVER['HTTP_USER_AGENT']);
+ return $resp;
+} \ No newline at end of file