--TEST-- 27.phpt: thead, tfoot, tbody with mixed function calls --FILE-- getHeader(); $tfoot =& $table->getFooter(); $tbody =& $table->getBody(); $thead->setAutoFill('foo'); $tfoot->setAutoFill('bar'); $data[0][] = 'Test'; $data[1][] = 'Test'; $data[2][] = 'Test'; foreach($data as $key => $value) { $thead->setCellAttributes($key, $key, array('style' => 'border: 1px solid purple;')); $tfoot->setCellContents($key, $key, 'some content', 'TH'); $tbody->addRow($value, 'bgcolor="darkblue"'); } // output echo $table->toHTML(); ?> --EXPECT--
foo | foo | foo |
foo | foo | foo |
foo | foo | foo |
some content | bar | bar |
---|---|---|
bar | some content | bar |
bar | bar | some content |
Test | ||
Test | ||
Test |