summaryrefslogtreecommitdiffhomepage
path: root/test/php/404
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-05-22 20:20:14 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-05-22 20:20:14 +0300
commit3b7238996ad68f3c56a031e72e0b2f9aa0c8662c (patch)
treeb491b30834997e406d6139aaf39d7bc6140d7f30 /test/php/404
parent7d224bfc9e39cb7885885bb554ca21ab26f5ddd0 (diff)
downloadunit-3b7238996ad68f3c56a031e72e0b2f9aa0c8662c.tar.gz
unit-3b7238996ad68f3c56a031e72e0b2f9aa0c8662c.tar.bz2
Tests: initial PHP application tests.
Diffstat (limited to '')
-rw-r--r--test/php/404/404.html6
-rw-r--r--test/php/404/index.php4
2 files changed, 10 insertions, 0 deletions
diff --git a/test/php/404/404.html b/test/php/404/404.html
new file mode 100644
index 00000000..6d0c635a
--- /dev/null
+++ b/test/php/404/404.html
@@ -0,0 +1,6 @@
+<html>
+<head><title>404 Not Found</title></head>
+<body bgcolor="white">
+<center><h1>404 Not Found</h1></center>
+</body>
+</html>
diff --git a/test/php/404/index.php b/test/php/404/index.php
new file mode 100644
index 00000000..92afdf19
--- /dev/null
+++ b/test/php/404/index.php
@@ -0,0 +1,4 @@
+<?php
+http_response_code(404);
+include('404.html');
+?>