$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) ->
setStyle($style) ;
$table->
render();
$this->
assertEquals($expected,
$this->
getOutputContent($output));
} /**
* @dataProvider renderProvider
*/
public function testRenderAddRowsOneByOne($headers,
$rows,
$style,
$expected,
$decorated = false
) {