svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/CoverageAnalyzer/ Aggregator.php
| From: | Helgi Þormar Þorbjörnsson | Date: | Sat, 20 Mar 2010 17:50:44 +0000 |
| Subject: | svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/CoverageAnalyzer/ Aggregator.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9314@lists.php.net to get a copy of this message | ||
dufuz Sat, 20 Mar 2010 17:50:44 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=296466
Log:
Make sure the xdebug files exists before trying to do anything with them. Also add more new lines to
make the output easier to read.
Changed paths:
U pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/CoverageAnalyzer/Aggregator.php
Modified: pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/CoverageAnalyzer/Aggregator.php
===================================================================
--- pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/CoverageAnalyzer/Aggregator.php 2010-03-20
16:29:31 UTC (rev 296465)
+++ pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/CoverageAnalyzer/Aggregator.php 2010-03-20
17:50:44 UTC (rev 296466)
@@ -130,6 +130,10 @@
function retrieveXdebug($path, $testid)
{
+ if (file_exists($path) === false) {
+ return;
+ }
+
$source = '$xdebug = ' . file_get_contents($path) . ";\n";
eval($source);
$this->sqlite->addCoverage(str_replace('.xdebug', '.phpt',
$path), $testid, $xdebug);
@@ -156,6 +160,7 @@
if (strpos((string) $file, '.svn')) {
continue;
}
+
$xdebugs[] = realpath((string) $file);
}
echo count($xdebugs), ' total...';
@@ -176,6 +181,8 @@
array_unshift($xdebugs, '');
unset($xdebugs[0]);
$test = array_flip($xdebugs);
+
+ echo "\n\n";
foreach ($this->sqlite->retrieveTestPaths() as $path) {
$xdebugpath = str_replace('.phpt', '.xdebug', $path);
if (isset($test[$xdebugpath]) || isset($unmodified[$xdebugpath])) {