final class ReporterRegistry
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

The reporters available to a run.

Methods§

public function __construct(list<ReporterInterface> $reporters = [])

Parameters

$reporterslist<ReporterInterface>The reporters to register
Calls 1
public function register(ReporterInterface $reporter): void
public function has(string $name): bool

Whether a reporter is registered under that name.

Parameters

$namestring

Returns

bool
Test cases 1
public function get(string $name): ReporterInterface
public function all(): list<ReporterInterface>

The registered reporters, in alphabetical order.

Returns

Called from 1
Calls 1

Private surface 1§

Implementation details, listed for orientation only.

private array<string, ReporterInterface> $reporters = []

Test cases 8§

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

Dedicated tests 5
Other tests reaching this symbol 3

Relations§

Instantiated in 1
Method calls 2
Type declarations 5