summaryrefslogtreecommitdiffhomepage
path: root/test/php
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2020-05-15 04:21:25 +0100
committerAndrei Zeliankou <zelenkov@nginx.com>2020-05-15 04:21:25 +0100
commit82471c1dd33fc13a18a334113b2c220cc06f3d5b (patch)
tree8a2af0ab16a1a932b93e518e449545fe5e1d7604 /test/php
parentea841400f543fa4139adca926fefdd8565c227d2 (diff)
downloadunit-82471c1dd33fc13a18a334113b2c220cc06f3d5b.tar.gz
unit-82471c1dd33fc13a18a334113b2c220cc06f3d5b.tar.bz2
Tests: added tests for "targets" option.
Diffstat (limited to 'test/php')
-rw-r--r--test/php/targets/1.php4
-rw-r--r--test/php/targets/2/2.php4
-rw-r--r--test/php/targets/index.php4
3 files changed, 12 insertions, 0 deletions
diff --git a/test/php/targets/1.php b/test/php/targets/1.php
new file mode 100644
index 00000000..09f7ae2c
--- /dev/null
+++ b/test/php/targets/1.php
@@ -0,0 +1,4 @@
+<?php
+header('Content-Length: 1');
+echo '1';
+?>
diff --git a/test/php/targets/2/2.php b/test/php/targets/2/2.php
new file mode 100644
index 00000000..0c5d27c6
--- /dev/null
+++ b/test/php/targets/2/2.php
@@ -0,0 +1,4 @@
+<?php
+header('Content-Length: 1');
+echo '2';
+?>
diff --git a/test/php/targets/index.php b/test/php/targets/index.php
new file mode 100644
index 00000000..88239d5f
--- /dev/null
+++ b/test/php/targets/index.php
@@ -0,0 +1,4 @@
+<?php
+header('Content-Length: 5');
+echo 'index';
+?>