final class Executor

Executes a command against a loaded project and returns its report.

Every report has "passed"; the other fields depend on the command.

Methods§

public function execute(Project $project, Options $options): array<string, mixed>

Executes a command.

Parameters

$projectProjectThe loaded project
$optionsOptionsThe command and its options

Returns

array<string, mixed> The report

Throws

InvalidInputException When the command is unknown, an option is invalid or a coverage snapshot cannot be used
JsonException When a document or the snapshot cannot be encoded
RuntimeException When a definition cannot be formatted
Test cases 17
Called from 1
Calls 18

Test cases 24§

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

Dedicated tests 17
Other tests reaching this symbol 7

Relations§

Instantiated in 1
Method calls 1