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