Abstract class for common CoverageReport methods. Provides several template methods for custom output.
__construct( array $coverage , CakeBaseReporter $reporter )
Constructor
$coverage CakeBaseReporter $reporter _calculateCoveredLines( array $fileLines , array $coverageData )
Calculates how many lines are covered and what the total number of executable lines is.
Handles both PHPUnit3.5 and 3.6 formats.
3.5 uses -1 for uncovered, and -2 for dead. 3.6 uses array() for uncovered and null for dead.
$fileLines $coverageData array_setParams( CakeBaseReporter $reporter )
Pulls params out of the reporter.
CakeBaseReporter $reporter filterCoverageDataByPath( string $path )
Filters the coverage data by path. Files not in the provided path will be removed.
$path arraygenerateDiff( string $filename , array $fileLines , array $coverageData )
Generates an coverage 'diff' for $file based on $coverageData.
$filename $fileLines $coverageData stringgetPathFilter( )
Gets the base path that the files we are interested in live in.
stringreport( )
Generates report to display.
stringsetCoverage( array $coverage )
Set the coverage data array
$coverage
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/2.7/class-BaseCoverageReport.html