From: Marcus Boerger Date: Mon, 4 Nov 2002 10:43:22 +0000 (+0000) Subject: -testing the tests X-Git-Tag: php-4.3.0RC1~302 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b927548d3524903b03866f90892bf405db25aec;p=php -testing the tests -moved tests/dirname.phpt to tests/run-test/test007.phpt because many tests use this to find their additional files. -no more tests in tests directly only in subdirectories --- diff --git a/tests/run-test/test001.phpt b/tests/run-test/test001.phpt new file mode 100644 index 0000000000..370d09c953 --- /dev/null +++ b/tests/run-test/test001.phpt @@ -0,0 +1,6 @@ +--TEST-- +EXPECT +--FILE-- +abc +--EXPECT-- +abc \ No newline at end of file diff --git a/tests/run-test/test002.phpt b/tests/run-test/test002.phpt new file mode 100644 index 0000000000..7b91f35c8d --- /dev/null +++ b/tests/run-test/test002.phpt @@ -0,0 +1,18 @@ +--TEST-- +EXPECTF +--FILE-- +123 +-123 ++123 ++1.1 +abc +0abc +x +--EXPECTF-- +%d +%i +%i +%f +%s +%x +%c \ No newline at end of file diff --git a/tests/run-test/test003.phpt b/tests/run-test/test003.phpt new file mode 100644 index 0000000000..c1afad15f7 --- /dev/null +++ b/tests/run-test/test003.phpt @@ -0,0 +1,6 @@ +--TEST-- +EXPECTREGEX +--FILE-- +abcde12314235xyz34264768286abcde +--EXPECTREGEX-- +[abcde]+[0-5]*xyz[2-8]+abcde \ No newline at end of file diff --git a/tests/run-test/test004.phpt b/tests/run-test/test004.phpt new file mode 100644 index 0000000000..19dbdede8c --- /dev/null +++ b/tests/run-test/test004.phpt @@ -0,0 +1,10 @@ +--TEST-- +INI section allows '=' +--INI-- +arg_separator.input== +--FILE-- + +--EXPECT-- +string(1) "=" \ No newline at end of file diff --git a/tests/run-test/test005.phpt b/tests/run-test/test005.phpt new file mode 100644 index 0000000000..04f62105a4 --- /dev/null +++ b/tests/run-test/test005.phpt @@ -0,0 +1,28 @@ +--TEST-- +Error message handling +--FILE-- + +--EXPECTF-- +string(1) "1" +string(4) "2047" +string(1) "0" +string(1) "1" +string(1) "0" +NULL +string(%d) "%sivision by zer%s" diff --git a/tests/run-test/test006.phpt b/tests/run-test/test006.phpt new file mode 100644 index 0000000000..4dca66a4f7 --- /dev/null +++ b/tests/run-test/test006.phpt @@ -0,0 +1,9 @@ +--TEST-- +Error messages are shown +--FILE-- + +--EXPECTREGEX-- +.*Division by zero.* diff --git a/tests/dirname.phpt b/tests/run-test/test007.phpt similarity index 100% rename from tests/dirname.phpt rename to tests/run-test/test007.phpt