diff options
author | Wolfy-J <[email protected]> | 2018-06-13 20:49:26 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-13 20:49:26 +0300 |
commit | fba45ff53a51bf173471e6d046fc46f0cbaf89e3 (patch) | |
tree | 0855eda2eb334d4d4f26157438649e0f58151f9d /php-src/tests | |
parent | 87fff670cc5a446f4c396c30d330ce7958e9f40f (diff) |
http service test + status test
Diffstat (limited to 'php-src/tests')
-rw-r--r-- | php-src/tests/http/echo.php | 2 |
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 |