diff options
author | Wolfy-J <[email protected]> | 2018-06-13 22:39:25 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-13 22:39:25 +0300 |
commit | 9942d1a8b2163fc9a6fc1377a0760512d960502a (patch) | |
tree | 82aab1467521e8582cd9f76230d37d6d0b509a96 /php-src | |
parent | 0cb81a72d49d5d3e1f8b8198b8228fdacc932236 (diff) |
why php
Diffstat (limited to 'php-src')
-rw-r--r-- | php-src/tests/http/error.php | 9 | ||||
-rw-r--r-- | php-src/tests/http/error2.php | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/php-src/tests/http/error.php b/php-src/tests/http/error.php new file mode 100644 index 00000000..6df0d4b5 --- /dev/null +++ b/php-src/tests/http/error.php @@ -0,0 +1,9 @@ +<?php + +use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\ServerRequestInterface; + +function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface +{ + throw new Error("error"); +}
\ No newline at end of file diff --git a/php-src/tests/http/error2.php b/php-src/tests/http/error2.php new file mode 100644 index 00000000..617b5a3f --- /dev/null +++ b/php-src/tests/http/error2.php @@ -0,0 +1,9 @@ +<?php + +use Psr\Http\Message\ResponseInterface; +use Psr\Http\Message\ServerRequestInterface; + +function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface +{ + exit(); +}
\ No newline at end of file |