You are here

public function LegacyTableHelperTest::testRenderAddRows in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Helper/LegacyTableHelperTest.php \Symfony\Component\Console\Tests\Helper\LegacyTableHelperTest::testRenderAddRows()

@dataProvider testRenderProvider

File

vendor/symfony/console/Tests/Helper/LegacyTableHelperTest.php, line 54

Class

LegacyTableHelperTest
@group legacy

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testRenderAddRows($headers, $rows, $layout, $expected) {
  $table = new TableHelper();
  $table
    ->setHeaders($headers)
    ->addRows($rows)
    ->setLayout($layout);
  $table
    ->render($output = $this
    ->getOutputStream());
  $this
    ->assertEquals($expected, $this
    ->getOutputContent($output));
}