PHP_CodeCoverage_Report_Text
in package
Generates human readable output from an PHP_CodeCoverage object.
The output gets put into a text file our written to the CLI.
Tags
Table of Contents
- $colors : mixed
- $highLowerBound : mixed
- $lowUpperBound : mixed
- $showOnlySummary : mixed
- $showUncoveredFiles : mixed
- __construct() : mixed
- process() : string
- getCoverageColor() : mixed
- printCoverageCounts() : mixed
- format() : mixed
Properties
$colors
protected
mixed
$colors
= array('green' => "[30;42m", 'yellow' => "[30;43m", 'red' => "[37;41m", 'header' => "[1;37;40m", 'reset' => "[0m", 'eol' => "[2K")
$highLowerBound
protected
mixed
$highLowerBound
$lowUpperBound
protected
mixed
$lowUpperBound
$showOnlySummary
protected
mixed
$showOnlySummary
$showUncoveredFiles
protected
mixed
$showUncoveredFiles
Methods
__construct()
public
__construct(mixed $lowUpperBound, mixed $highLowerBound, mixed $showUncoveredFiles, mixed $showOnlySummary) : mixed
Parameters
- $lowUpperBound : mixed
- $highLowerBound : mixed
- $showUncoveredFiles : mixed
- $showOnlySummary : mixed
Return values
mixed —process()
public
process(PHP_CodeCoverage $coverage[, bool $showColors = false ]) : string
Parameters
- $coverage : PHP_CodeCoverage
- $showColors : bool = false
Return values
string —getCoverageColor()
protected
getCoverageColor(mixed $numberOfCoveredElements, mixed $totalNumberOfElements) : mixed
Parameters
- $numberOfCoveredElements : mixed
- $totalNumberOfElements : mixed
Return values
mixed —printCoverageCounts()
protected
printCoverageCounts(mixed $numberOfCoveredElements, mixed $totalNumberOfElements, mixed $presicion) : mixed
Parameters
- $numberOfCoveredElements : mixed
- $totalNumberOfElements : mixed
- $presicion : mixed
Return values
mixed —format()
private
format(mixed $color, mixed $padding, mixed $string) : mixed
Parameters
- $color : mixed
- $padding : mixed
- $string : mixed