summaryrefslogtreecommitdiff
path: root/php-src/tests
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-11 22:21:39 +0300
committerWolfy-J <[email protected]>2018-06-11 22:21:39 +0300
commit1633a8ae539d423a88ec983b0bc531238d982a98 (patch)
treefe5bd8637d221e5209df7de081118709b1bfad6e /php-src/tests
parentec9cc7d1b90148c757ffab76e43d88798c20e5e0 (diff)
coverage
Diffstat (limited to 'php-src/tests')
-rw-r--r--php-src/tests/http/header.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/php-src/tests/http/header.php b/php-src/tests/http/header.php
index 9bb15ccd..e5b295b6 100644
--- a/php-src/tests/http/header.php
+++ b/php-src/tests/http/header.php
@@ -1,9 +1,11 @@
<?php
-use \Psr\Http\Message\ServerRequestInterface;
-use \Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\ResponseInterface;
+use Psr\Http\Message\ServerRequestInterface;
function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
{
+ $resp->getBody()->write(strtoupper($req->getHeaderLine('input')));
+
return $resp->withAddedHeader("Header", $req->getQueryParams()['hello']);
} \ No newline at end of file