public function TableTest::testRenderAddRowsOneByOne in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Helper/TableTest.php \Symfony\Component\Console\Tests\Helper\TableTest::testRenderAddRowsOneByOne()
@dataProvider testRenderProvider
File
- vendor/
symfony/ console/ Tests/ Helper/ TableTest.php, line 70
Class
Namespace
Symfony\Component\Console\Tests\HelperCode
public function testRenderAddRowsOneByOne($headers, $rows, $style, $expected) {
$table = new Table($output = $this
->getOutputStream());
$table
->setHeaders($headers)
->setStyle($style);
foreach ($rows as $row) {
$table
->addRow($row);
}
$table
->render();
$this
->assertEquals($expected, $this
->getOutputContent($output));
}