Re: cvs: pear-core /PEAR RunTest.php
| From: | Laurent Laville | Date: | Sun, 26 Apr 2009 06:51:31 +0000 |
| Subject: | Re: cvs: pear-core /PEAR RunTest.php | ||
| References: | 1 | Groups: | php.pear.cvs php.pear.core |
| Request: | Send a blank email to pear-core+get-8370@lists.php.net to get a copy of this message | ||
Hi Helgi,
I've applied fixed below on my PEAR local copy, and I confirm that Bug #16122 is fixed as explained by report.
But I think I've found another problem with PEAR run-tests. I'll investigate later this afternoon. Here are a resume of what I found it strange.
pear run-tests -pu php_compatinfo
Running 1 tests
TOTAL TIME: 00:00
1 PASSED TESTS
0 SKIPPED TESTS
Seems OK but too fast on my opinion. So I check with
pear run-tests -ul <file>
Where <file> is
C:\wamp\bin\php\php5.2.9-2\tests\PHP_CompatInfo\tests\AllTests.php
And I got these results (as expected)
Running 1 tests
PHPUnit 3.3.16 by Sebastian Bergmann.
S.....S.......SSS....SSS.SS.....SS................S.SSS....S 60 / 74
............SS
Time: 18 seconds
OK, but incomplete or skipped tests!
Tests: 74, Assertions: 67, Skipped: 19.
TOTAL TIME: 00:20
1 PASSED TESTS
0 SKIPPED TESTS
18/20 seconds is "normal" compared to 0 (too fast to be honest).
dufuz Sat Apr 25 20:12:47 2009 UTCModified files: /pear-core/PEAR RunTest.php Log:Fix Gregs commit for #11883 - A break can not happen in an if This fixes Bug #16122 PEAR RunTest failed to run as expected http://cvs.php.net/viewvc.cgi/pear-core/PEAR/RunTest.php?r1=1.74&r2=1.75&diff_format=u Index: pear-core/PEAR/RunTest.php diff -u pear-core/PEAR/RunTest.php:1.74 pear-core/PEAR/RunTest.php:1.75 --- pear-core/PEAR/RunTest.php:1.74 Tue Feb 24 23:38:22 2009 +++ pear-core/PEAR/RunTest.php Sat Apr 25 20:12:47 2009 @@ -10,7 +10,7 @@* @author Greg Beaver <cellog@php.net>* @copyright 1997-2009 The Authors* @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: RunTest.php,v 1.74 2009/02/24 23:38:22 dufuz Exp $ + * @version CVS: $Id: RunTest.php,v 1.75 2009/04/25 20:12:47 dufuz Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.3.3*/ @@ -245,12 +245,11 @@{ if (!file_exists($file) && file_exists(getcwd() . DIRECTORY_SEPARATOR . $file)) { $file = realpath(getcwd() . DIRECTORY_SEPARATOR . $file); - break; } elseif (file_exists($file)) { $file = realpath($file); } - $cmd = $this->_preparePhpBin($this->_php, $file. $ini_settings); + $cmd = $this->_preparePhpBin($this->_php, $file, $ini_settings); if (isset($this->_logger)) { $this->_logger->log(2, 'Running command "' . $cmd . '"'); }