Property | Type | Description | |
---|---|---|---|
$_classes | array | Class dependencies. | |
$_collector | Reference to the coverage collector driver. | ||
$_enabled | array | Status of the reporter. | |
$_prefixes | array | Store prefix by level for tree rendering. | |
$_time | float | Collect time. | |
$_verbosity | The coverage verbosity. |
Method | Description | |
---|---|---|
__call ( string $name, array $args ) : mixed | Delegates the call to the collector instance. | |
__construct ( array $config = [] ) | The Constructor. | |
collector ( ) : object | Gets the collector. | |
disable ( ) | Disables this reporter. | |
enable ( ) | Gets this reporter. | |
enabled ( ) : boolean | Gets the status of the reporter. | |
metrics ( ) | Gets the metrics about the coverage result. | |
specEnd ( object $log = null ) | Callback called after a spec execution. | |
specStart ( object $spec = null ) | Callback called on a spec start. | |
start ( array $args ) | Callback called before any specs processing. | |
stop ( object $summary ) | Callback called at the end of the process. |
Method | Description | |
---|---|---|
_getMetricsReport ( Metrics[] $children, $verbosity, array $depth, array $tab = 3, array &$maxWidth = null ) | Extract some metrics reports to display according to a verbosity parameter. | |
_renderCoverage ( Metrics $metrics ) | Outputs the coverage report of a metrics instance. | |
_renderMetrics ( Metrics $metrics, $verbosity ) | Outputs some metrics info where the metric is not the total coverage. | |
_renderMetricsReport ( array $metricsReport, array $labelWidth, array $lineWidth, array $depth ) | Outputs some metrics reports built using ::_getMetricsReport(). | |
_style ( integer $percent ) | Helper determinig a color from a coverage rate. |
public __construct ( array $config = [] ) | ||
$config | array | The config for the reporter, the options are: - `'verbosity`' _integer|string_: The verbosity level: - 1 : overall coverage value for the whole code. - 2 : overall coverage by namespaces. - 3 : overall coverage by classes. - 4 : overall coverage by methods and functions. - string : coverage for a fully namespaced (class/method/namespace) string. |
protected _getMetricsReport ( Metrics[] $children, $verbosity, array $depth, array $tab = 3, array &$maxWidth = null ) | ||
$children | Metrics[] | A array of metrics. |
$depth | array | The actual depth in the reporting. |
$tab | array | The size of the tab used for lablels. |
$maxWidth | array | Will contain the maximum width obtained for labels. |
protected _renderCoverage ( Metrics $metrics ) | ||
$metrics | Metrics | A metrics instance. |
protected _renderMetrics ( Metrics $metrics, $verbosity ) | ||
$metrics | Metrics | A metrics instance. |
protected _renderMetricsReport ( array $metricsReport, array $labelWidth, array $lineWidth, array $depth ) | ||
$metricsReport | array | An array of nested metrics reports extracted according some verbosity. |
$labelWidth | array | The width column of the label column used for padding. |
$lineWidth | array | The width column of the covered lines data used for padding. |
$depth | array | The actual depth in the reporting to build tree prefix. |
protected static array $_classes | ||
return | array |
protected array $_prefixes | ||
return | array |