Documentation

Text
in package

FinalYes

Table of Contents

Constants

COLOR_GREEN  = "\x1b[30;42m"
COLOR_HEADER  = "\x1b[1;37;40m"
COLOR_RED  = "\x1b[37;41m"
COLOR_RESET  = "\x1b[0m"
COLOR_YELLOW  = "\x1b[30;43m"

Properties

$showOnlySummary  : bool
$showUncoveredFiles  : bool
$thresholds  : Thresholds

Methods

__construct()  : mixed
process()  : string
coverageColor()  : string
format()  : string
printCoverageCounts()  : string

Constants

COLOR_GREEN

private string COLOR_GREEN = "\x1b[30;42m"

COLOR_HEADER

private string COLOR_HEADER = "\x1b[1;37;40m"

COLOR_RED

private string COLOR_RED = "\x1b[37;41m"

COLOR_RESET

private string COLOR_RESET = "\x1b[0m"

COLOR_YELLOW

private string COLOR_YELLOW = "\x1b[30;43m"

Properties

$showOnlySummary read-only

private bool $showOnlySummary

$showUncoveredFiles read-only

private bool $showUncoveredFiles

Methods

__construct()

public __construct(Thresholds $thresholds[, bool $showUncoveredFiles = false ][, bool $showOnlySummary = false ]) : mixed
Parameters
$thresholds : Thresholds
$showUncoveredFiles : bool = false
$showOnlySummary : bool = false

process()

public process(CodeCoverage $coverage[, bool $showColors = false ]) : string
Parameters
$coverage : CodeCoverage
$showColors : bool = false
Return values
string

coverageColor()

private coverageColor(int $numberOfCoveredElements, int $totalNumberOfElements) : string
Parameters
$numberOfCoveredElements : int
$totalNumberOfElements : int
Return values
string

format()

private format(string $color, int $padding, false|string $string) : string
Parameters
$color : string
$padding : int
$string : false|string
Return values
string

printCoverageCounts()

private printCoverageCounts(int $numberOfCoveredElements, int $totalNumberOfElements, int $precision) : string
Parameters
$numberOfCoveredElements : int
$totalNumberOfElements : int
$precision : int
Return values
string

        
On this page

Search results