Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

--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>