summaryrefslogtreecommitdiff
path: root/php-src
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-13 22:39:25 +0300
committerWolfy-J <[email protected]>2018-06-13 22:39:25 +0300
commit9942d1a8b2163fc9a6fc1377a0760512d960502a (patch)
tree82aab1467521e8582cd9f76230d37d6d0b509a96 /php-src
parent0cb81a72d49d5d3e1f8b8198b8228fdacc932236 (diff)
why php
Diffstat (limited to 'php-src')
-rw-r--r--php-src/tests/http/error.php9
-rw-r--r--php-src/tests/http/error2.php9
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