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