Documentation

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
since

Class available since Release 1.1.0

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' => "", 'yellow' => "", 'red' => "", 'header' => "", 'reset' => "", 'eol' => "")

$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
Return values
mixed

Search results