summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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