summaryrefslogtreecommitdiff
path: root/README.TESTING
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-10-25 18:09:55 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-10-25 18:09:55 +0000
commitb26230150c32b7902b3bff4373d8b1bb2680c538 (patch)
tree3f74ccddd8cbdcb2726ca5e97e57cfc9f078794e /README.TESTING
parentc88e0fd5de3d197c92b7f2849d3331c266035965 (diff)
downloadphp-git-b26230150c32b7902b3bff4373d8b1bb2680c538.tar.gz
Added note about error reporting in tests.
Diffstat (limited to 'README.TESTING')
-rw-r--r--README.TESTING7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.TESTING b/README.TESTING
index 4e2e00eb1f..54b52113df 100644
--- a/README.TESTING
+++ b/README.TESTING
@@ -247,6 +247,13 @@ When you use an include file for the SKIPIF section it should be named
"skipif.inc" and an include file used in the FILE section of many tests
should be named "test.inc".
+If your test intentionally generates a PHP warning message, insert
+'track_errors=1' into the --INI-- section. This will store the
+warning inside a $php_errormsg variable, which you can then output.
+This will result in a consistent error message output across all platforms
+and PHP configurations, preventing your test from failing due inconsistencies
+in the error message content.
+
[How to help us]
----------------
If you find bug in PHP, you can submit bug report AND test script