final class SpecificationTable

Renders the spec report: one row per item with its statement, result and passing / linked targets, followed by the failure messages.

Methods§

public function render(
    SymfonyStyle $io,
    OutputInterface $output,
    array<string, mixed> $report,
): void

Renders the specification table and the messages of failed items.

Parameters

$ioSymfonyStyleThe console style
$outputOutputInterfaceReceives the table
$reportarray<string, mixed>The spec report

Throws

InvalidInputException When a row does not have the shape of a specification record
Test cases 4
Called from 1
Calls 7
public function table(
    OutputInterface $output,
    list<string> $headers,
    list<list<string>> $rows,
): void

Renders rows with the statement column wrapped to the terminal width.

Parameters

$outputOutputInterfaceReceives the table
$headerslist<string>The ID, statement, result and tests headers
$rowslist<list<string>>The rows
Test cases 3
Called from 1
Calls 8

Test cases 11§

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

Dedicated tests 7
Other tests reaching this symbol 4

Relations§

Instantiated in 1
Method calls 1