final class Project

A loaded project: its items and sources, runners, extensions and coverage gates.

Properties§

public string $directory
public array<string, Item> $items
public array<string, Source> $sources
public array<string, RunnerConfig> $runners
public array<string, string> $sourceExtensions
public array<string, string> $runnerExtensions
public float $minimum
public float $diffMinimum
public array<string, float> $sourceThresholds
public list<string> $files
public array<string, mixed> $markdown = []

Methods§

public function __construct(
    public string $directory,
    public array<string, Item> $items,
    public array<string, Source> $sources,
    public array<string, RunnerConfig> $runners,
    public array<string, string> $sourceExtensions,
    public array<string, string> $runnerExtensions,
    public float $minimum,
    public float $diffMinimum,
    public array<string, float> $sourceThresholds,
    public list<string> $files,
    public array<string, mixed> $markdown = [],
)

Parameters

$directorystringThe directory of the configuration file
$itemsarray<string, Item>Every item by ID
$sourcesarray<string, Source>Every declared source by ID
$runnersarray<string, RunnerConfig>Configured runners by name
$sourceExtensionsarray<string, string>Source extension classes by format
$runnerExtensionsarray<string, string>Runner extension classes by name
$minimumfloatThe overall coverage threshold in percent
$diffMinimumfloatThe threshold for units new or changed since a snapshot
$sourceThresholdsarray<string, float>Coverage thresholds by source ID
$fileslist<string>The configuration file followed by the definition files
$markdownarray<string, mixed>The markdown options of the configuration

Test cases 38§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 36

Relations§

Instantiated in 1
Type declarations 9