TABLE;
$this->
assertEquals($expected,
$this->
getOutputContent($output));
} public function testSectionOutput() { $sections =
[];
$stream =
$this->
getOutputStream(true
);
$output =
new ConsoleSectionOutput($stream->
getStream(),
$sections,
$stream->
getVerbosity(),
$stream->
isDecorated(),
new OutputFormatter());
$table =
new Table($output);
$table ->
setHeaders(['ISBN', 'Title', 'Author', 'Price'
]) ->
setRows([ ['99921-58-10-7', 'Divine Comedy', 'Dante Alighieri', '9.95'
],
]);
$table->
render();
$table->
appendRow(['9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens', '139.25'
]);