cvs: docweb /include lib_phpt_generator.inc.php
| From: | Etienne Kneuss | Date: | Thu, 30 Nov 2006 16:42:09 +0000 |
| Subject: | cvs: docweb /include lib_phpt_generator.inc.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-900@lists.php.net to get a copy of this message | ||
colder Thu Nov 30 16:42:09 2006 UTC
Modified files:
/docweb/include lib_phpt_generator.inc.php
Log:
Include the location in the test to better track errors
http://cvs.php.net/viewvc.cgi/docweb/include/lib_phpt_generator.inc.php?r1=1.3&r2=1.4&diff_format=u
Index: docweb/include/lib_phpt_generator.inc.php
diff -u docweb/include/lib_phpt_generator.inc.php:1.3 docweb/include/lib_phpt_generator.inc.php:1.4
--- docweb/include/lib_phpt_generator.inc.php:1.3 Mon Oct 16 19:58:15 2006
+++ docweb/include/lib_phpt_generator.inc.php Thu Nov 30 16:42:09 2006
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: Etienne Kneuss <colder@php.net> |
+----------------------------------------------------------------------+
-$Id: lib_phpt_generator.inc.php,v 1.3 2006/10/16 19:58:15 colder Exp $
+$Id: lib_phpt_generator.inc.php,v 1.4 2006/11/30 16:42:09 colder Exp $
*/
/**
* Parameters
@@ -36,6 +36,7 @@
define('PHPT_FORMAT_SKIPIF', "--TEST--".PHPT_EOL.
"%s (generated)".PHPT_EOL.
+ "Location: %s".PHPT_EOL.
"--SKIPIF--".PHPT_EOL.
"%s".PHPT_EOL.
"--FILE--".PHPT_EOL.
@@ -45,6 +46,7 @@
define('PHPT_FORMAT', "--TEST--".PHPT_EOL.
"%s (generated)".PHPT_EOL.
+ "Location: %s".PHPT_EOL.
"--FILE--".PHPT_EOL.
"%s".PHPT_EOL.
"--EXPECT--".PHPT_EOL.
@@ -354,12 +356,14 @@
if (empty($infos['skipif'])) {
return sprintf(PHPT_FORMAT, $infos['title'],
+ $infos['location'],
$infos['test'],
$infos['expected']);
} else {
return sprintf(PHPT_FORMAT_SKIPIF, $infos['title'],
+ $infos['location'],
$infos['skipif'],
$infos['test'],
$infos['expected']);