summaryrefslogtreecommitdiff
path: root/php-src/tests/http/error.php
diff options
context:
space:
mode:
Diffstat (limited to 'php-src/tests/http/error.php')
-rw-r--r--php-src/tests/http/error.php9
1 files changed, 9 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