public function testRender($headers,
$rows,
$style,
$expected,
$decorated = false
) { $table =
new Table($output =
$this->
getOutputStream($decorated));
$table ->
setHeaders($headers) ->
setRows($rows) ->
setStyle($style) ;
$table->
render();
$this->
assertEquals($expected,
$this->
getOutputContent($output));
} /**
* @dataProvider renderProvider
*/
public function testRenderAddRows($headers,
$rows,
$style,
$expected,
$decorated = false
) { $table =
new Table($output =
$this->
getOutputStream($decorated));
$table ->
setHeaders($headers) ->
addRows($rows)