You are here

public function TableTest::testRenderAddRows in Zircon Profile 8

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

@dataProvider testRenderProvider

File

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

Class

TableTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

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