Documentation

Text
in package

FinalYes

Table of Contents

Constants

COLOR_EOL  = "\x1b[2K"
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

$highLowerBound  : int
$lowUpperBound  : int
$showOnlySummary  : bool
$showUncoveredFiles  : bool

Methods

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

Constants

COLOR_EOL

private string COLOR_EOL = "\x1b[2K"

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

$highLowerBound

private int $highLowerBound

$lowUpperBound

private int $lowUpperBound

$showOnlySummary

private bool $showOnlySummary

$showUncoveredFiles

private bool $showUncoveredFiles

Methods

__construct()

public __construct([int $lowUpperBound = 50 ][, int $highLowerBound = 90 ][, bool $showUncoveredFiles = false ][, bool $showOnlySummary = false ]) : mixed
Parameters
$lowUpperBound : int = 50
$highLowerBound : int = 90
$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