Changeset 95

Show
Ignore:
Timestamp:
07/11/06 13:43:03 (2 years ago)
Author:
mrook
Message:

Fix stripping error when more than one class is defined in a sourcefile

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/classes/phing/tasks/ext/coverage/CoverageReportTask.php

    r82 r95  
    232232        protected function transformCoverageInformation($filename, $coverageInformation) 
    233233        { 
     234                // Strip last line of coverage information 
     235                end($coverageInformation); 
     236                unset($coverageInformation[key($coverageInformation)]); 
     237                 
    234238                $classes = PHPUnit2Util::getDefinedClasses($filename, $this->classpath); 
    235239                 
     
    251255                                $methodscovered = 0; 
    252256                                $methodcount = 0; 
    253                                  
    254                                 end($coverageInformation); 
    255                                 unset($coverageInformation[key($coverageInformation)]); 
    256257                                 
    257258                                // Strange PHP5 reflection bug, classes without parent class or implemented interfaces seem to start one line off