cvs: docweb /include lib_phpt_generator.inc.php

[email protected] ("Etienne Kneuss")
Newsgroups php.doc.web
Message-ID <cvscolder1164904929@cvsserver>
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 <[email protected]>                             |
 +----------------------------------------------------------------------+
-$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']);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.