| Marcus Boerger 2006-07-09, 7:56 am |
| helly Sun Jul 9 11:27:41 2006 UTC
Modified files:
/qaweb write-test.php
Log:
- Update
http://cvs.php.net/viewvc.cgi/qaweb...5&diff_format=u
Index: qaweb/write-test.php
diff -u qaweb/write-test.php:1.4 qaweb/write-test.php:1.5
--- qaweb/write-test.php:1.4 Sun Jul 9 11:17:25 2006
+++ qaweb/write-test.php Sun Jul 9 11:27:41 2006
@@ -3,7 +3,7 @@
$TITLE = "Writing Tests [PHP-QAT: Quality Assurance Team]";
$SITE_UPDATE = date("D M d H:i:s Y T", filectime($SCRIPT_FILENAME));
-/* $Id: write-test.php,v 1.4 2006/07/09 11:17:25 helly Exp $ */
+/* $Id: write-test.php,v 1.5 2006/07/09 11:27:41 helly Exp $ */
common_header();
?>
@@ -196,7 +196,7 @@
<dd><functionname>.phpt (dba_open.phpt)</dd>
<dt>General tests for extensions</dt>
-<dd><extname><no>.phpt (dba3.phpt)</dd>
+<dd><extname><no>.phpt (dba_003.phpt)</dd>
</dl>
</p>
@@ -224,13 +224,13 @@
<p>The redirected tests themselves are just normal tests.
</p>
-<hr />
-<p><b>NOTE:</b> All tests should run correctly with error_reporting(E_ALL) and
+<h3>Error reporting in tests</h3>
+<p>All tests should run correctly with error_reporting(E_ALL) and
display_errors=1. This is the default when called from run-test.php. If you
have a good reason for lowering the error reporting, use --INI-- section and
comment this in your testcode.</p>
-<p><b>NOTE:</b> If your test intentionally generates a PHP warning message use
+<p>If your test intentionally generates a PHP warning message use
$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
@@ -240,12 +240,12 @@
"in %sexample.php on line %d". We explicitly dropped the last path devider as
that is a system dependent character '/' or ''.</p>
-<p><b>NOTE:</b> Often you want to run test scripts without run-tests.php by
+<p>Often you want to run test scripts without run-tests.php by
simply executing them on commandline like any other php script. Sometimes then
it disturbs having a long --EXPECT-- block. The workaround is to use terminate
the --FILE-- section with the two lines "===DONE===" and "<?php echo "<\?php exit(0); ?\>"; ?>".
When doing so run-tests.php does not execute the line containing the exit call
-as that would suppress leak messages.
+as that would suppress leak messages.</p>
<p></p>
</td>
<td width="10"> </td>
|