final class CoverageThresholds

Reads the per-source coverage thresholds of the configuration.

Methods§

public function read(mixed $value, array<string, Source> $sources): array<string, float>

Reads coverage.sources.

Parameters

$valuemixedThe decoded coverage.sources mapping
$sourcesarray<string, Source>The declared sources by ID

Returns

array<string, float> The thresholds by source ID

Throws

InvalidInputException When a threshold names an unknown source or is not a percentage
Test cases 4
Called from 1
Calls 3

Test cases 15§

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

Dedicated tests 4
Other tests reaching this symbol 11

Relations§

Instantiated in 1
Method calls 1