Files
GseTDDUebungKCLR/database/php/pear/tests/3.phpt
Riley Schneider b732d8d4b5 Initial Commit
2025-12-03 16:38:10 +01:00

31 lines
494 B
PHP

--TEST--
3.phpt: addRow 2 row 2 column with no extra options
--FILE--
<?php
// $Id: 3.phpt 297540 2010-04-05 19:58:39Z wiesemann $
require_once 'HTML/Table.php';
$table = new HTML_Table();
$data[0][] = 'Test';
$data[0][] = 'Test';
$data[1][] = 'Test';
$data[1][] = 'Test';
foreach($data as $key => $value) {
$table->addRow($value);
}
// output
echo $table->toHTML();
?>
--EXPECT--
<table>
<tr>
<td>Test</td>
<td>Test</td>
</tr>
<tr>
<td>Test</td>
<td>Test</td>
</tr>
</table>