Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 41 lines (37 sloc) 574 Bytes
--TEST--
25.phpt: tbody, tfoot and addRow (thead not in output)
--FILE--
<?php
// $Id$
require_once 'HTML/Table.php';
$table =& new HTML_Table();
$tbody =& $table->getBody();
$tfoot =& $table->getFooter();
$data[0][] = 'Test';
$data[1][] = 'Test';
foreach($data as $key => $value) {
$tbody->addRow($value);
$tfoot->addRow($value);
}
// output
echo $table->toHTML();
?>
--EXPECT--
<table>
<tfoot>
<tr>
<td>Test</td>
</tr>
<tr>
<td>Test</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Test</td>
</tr>
<tr>
<td>Test</td>
</tr>
</tbody>
</table>
Something went wrong with that request. Please try again.