summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Strehle <tim@strehle.de>2013-09-03 14:38:52 +0200
committerTim Strehle <tim@strehle.de>2013-09-03 14:40:43 +0200
commit5ffaf95d3f6d8634cdc218ea6bfdb24c7887148c (patch)
tree500db34f23763c9513817532943e02bb127697b5 /tests
parent04fcf6a98b8901ae7c442aa92368c82fa7bd671d (diff)
downloadphp-git-5ffaf95d3f6d8634cdc218ea6bfdb24c7887148c.tar.gz
run-tests.php: Adding support for sections EXPECT_EXTERNAL, EXPECTF_EXTERNAL and EXPECTREGEX_EXTERNAL. (Issue 55736)
Diffstat (limited to 'tests')
-rw-r--r--tests/run-test/test011.phpt6
-rw-r--r--tests/run-test/test011.txt1
-rw-r--r--tests/run-test/test012.phpt12
-rw-r--r--tests/run-test/test012.txt7
-rw-r--r--tests/run-test/test013.phpt6
-rw-r--r--tests/run-test/test013.txt1
6 files changed, 33 insertions, 0 deletions
diff --git a/tests/run-test/test011.phpt b/tests/run-test/test011.phpt
new file mode 100644
index 0000000000..17f1f7aee6
--- /dev/null
+++ b/tests/run-test/test011.phpt
@@ -0,0 +1,6 @@
+--TEST--
+EXPECT_EXTERNAL
+--FILE--
+abc
+--EXPECT_EXTERNAL--
+test011.txt
diff --git a/tests/run-test/test011.txt b/tests/run-test/test011.txt
new file mode 100644
index 0000000000..8baef1b4ab
--- /dev/null
+++ b/tests/run-test/test011.txt
@@ -0,0 +1 @@
+abc
diff --git a/tests/run-test/test012.phpt b/tests/run-test/test012.phpt
new file mode 100644
index 0000000000..8213aa2a56
--- /dev/null
+++ b/tests/run-test/test012.phpt
@@ -0,0 +1,12 @@
+--TEST--
+EXPECTF_EXTERNAL
+--FILE--
+123
+-123
++123
++1.1
+abc
+0abc
+x
+--EXPECTF_EXTERNAL--
+test012.txt
diff --git a/tests/run-test/test012.txt b/tests/run-test/test012.txt
new file mode 100644
index 0000000000..bb293214b1
--- /dev/null
+++ b/tests/run-test/test012.txt
@@ -0,0 +1,7 @@
+%d
+%i
+%i
+%f
+%s
+%x
+%c
diff --git a/tests/run-test/test013.phpt b/tests/run-test/test013.phpt
new file mode 100644
index 0000000000..79ccd20de2
--- /dev/null
+++ b/tests/run-test/test013.phpt
@@ -0,0 +1,6 @@
+--TEST--
+EXPECTREGEX_EXTERNAL
+--FILE--
+abcde12314235xyz34264768286abcde
+--EXPECTREGEX_EXTERNAL--
+test013.txt
diff --git a/tests/run-test/test013.txt b/tests/run-test/test013.txt
new file mode 100644
index 0000000000..6c280ece4d
--- /dev/null
+++ b/tests/run-test/test013.txt
@@ -0,0 +1 @@
+[abcde]+[0-5]*xyz[2-8]+abcde