summaryrefslogtreecommitdiff
path: root/php-src/tests
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-13 20:49:26 +0300
committerWolfy-J <[email protected]>2018-06-13 20:49:26 +0300
commitfba45ff53a51bf173471e6d046fc46f0cbaf89e3 (patch)
tree0855eda2eb334d4d4f26157438649e0f58151f9d /php-src/tests
parent87fff670cc5a446f4c396c30d330ce7958e9f40f (diff)
http service test + status test
Diffstat (limited to 'php-src/tests')
-rw-r--r--php-src/tests/http/echo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/php-src/tests/http/echo.php b/php-src/tests/http/echo.php
index eeccc7e5..7004ada0 100644
--- a/php-src/tests/http/echo.php
+++ b/php-src/tests/http/echo.php
@@ -6,5 +6,5 @@ use \Psr\Http\Message\ResponseInterface;
function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
{
$resp->getBody()->write(strtoupper($req->getQueryParams()['hello']));
- return $resp;
+ return $resp->withStatus(201);
} \ No newline at end of file