Symfony\Component\Console\Tests\Helper\TableTest::testRenderAddRowsOneByOne PHP Method

testRenderAddRowsOneByOne() public method

public testRenderAddRowsOneByOne ( $headers, $rows, $style, $expected )
    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));
    }