]> granicus.if.org Git - php/commitdiff
Added note about error reporting in tests.
authorIlia Alshanetsky <iliaa@php.net>
Fri, 25 Oct 2002 18:09:55 +0000 (18:09 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 25 Oct 2002 18:09:55 +0000 (18:09 +0000)
README.TESTING

index 4e2e00eb1f0fc009bc07c821cd4c35c766ae63e5..54b52113df79a2d7e1f74f9886ddee13be511363 100644 (file)
@@ -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