cvs: pear-core /PEAR RunTest.php /PEAR/Command Test.php Test.xml
| From: | Greg Beaver | Date: | Fri, 16 Feb 2007 20:27:18 +0000 |
| Subject: | cvs: pear-core /PEAR RunTest.php /PEAR/Command Test.php Test.xml | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5424@lists.php.net to get a copy of this message | ||
cellog Fri Feb 16 20:27:18 2007 UTC
Modified files:
/pear-core/PEAR/Command Test.php Test.xml
/pear-core/PEAR RunTest.php
Log:
fix run-tests --cgi for POST/GET tests
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/Command/Test.php?r1=1.13&r2=1.14&diff_format=u
Index: pear-core/PEAR/Command/Test.php
diff -u pear-core/PEAR/Command/Test.php:1.13 pear-core/PEAR/Command/Test.php:1.14
--- pear-core/PEAR/Command/Test.php:1.13 Fri Feb 16 05:36:57 2007
+++ pear-core/PEAR/Command/Test.php Fri Feb 16 20:27:18 2007
@@ -17,7 +17,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Test.php,v 1.13 2007/02/16 05:36:57 cellog Exp $
+ * @version CVS: $Id: Test.php,v 1.14 2007/02/16 20:27:18 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -88,6 +88,7 @@
'cgi' => array(
'shortopt' => 'c',
'doc' => 'CGI php executable (needed for tests with POST/GET
section)',
+ 'arg' => 'PHPCGI',
),
),
'doc' => '[testfile|dir ...]
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/Command/Test.xml?r1=1.5&r2=1.6&diff_format=u
Index: pear-core/PEAR/Command/Test.xml
diff -u pear-core/PEAR/Command/Test.xml:1.5 pear-core/PEAR/Command/Test.xml:1.6
--- pear-core/PEAR/Command/Test.xml:1.5 Fri Feb 16 05:36:57 2007
+++ pear-core/PEAR/Command/Test.xml Fri Feb 16 20:27:18 2007
@@ -40,6 +40,7 @@
<cgi>
<shortopt>c</shortopt>
<doc>CGI php executable (needed for tests with POST/GET section)</doc>
+ <arg>PHPCGI</arg>
</cgi>
</options>
<doc>[testfile|dir ...]
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/RunTest.php?r1=1.25&r2=1.26&diff_format=u
Index: pear-core/PEAR/RunTest.php
diff -u pear-core/PEAR/RunTest.php:1.25 pear-core/PEAR/RunTest.php:1.26
--- pear-core/PEAR/RunTest.php:1.25 Fri Feb 16 05:36:57 2007
+++ pear-core/PEAR/RunTest.php Fri Feb 16 20:27:18 2007
@@ -16,7 +16,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: RunTest.php,v 1.25 2007/02/16 05:36:57 cellog Exp $
+ * @version CVS: $Id: RunTest.php,v 1.26 2007/02/16 20:27:18 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.3.3
*/
@@ -250,6 +250,12 @@
$section_text['INI']), $ini_settings);
}
$ini_settings = $this->settings2params($ini_settings);
+ $shortname = str_replace($cwd . DIRECTORY_SEPARATOR, '', $file);
+ if (!isset($this->_options['simple'])) {
+ $tested = trim($section_text['TEST']) . "[$shortname]";
+ } else {
+ $tested = trim($section_text['TEST']) . ' ';
+ }
if (!empty($section_text['GET']) || !empty($section_text['POST'])) {
if (empty($this->_options['cgi'])) {
if (!isset($this->_options['quiet'])) {
@@ -262,12 +268,6 @@
}
$php = $this->_options['cgi'];
}
- $shortname = str_replace($cwd . DIRECTORY_SEPARATOR, '', $file);
- if (!isset($this->_options['simple'])) {
- $tested = trim($section_text['TEST']) . "[$shortname]";
- } else {
- $tested = trim($section_text['TEST']) . ' ';
- }
$temp_dir = $test_dir = realpath(dirname($file));
$main_file_name = basename($file,'phpt');