Initial Commit
This commit is contained in:
27
database/php/pear/tests/18.phpt
Normal file
27
database/php/pear/tests/18.phpt
Normal file
@@ -0,0 +1,27 @@
|
||||
--TEST--
|
||||
18.phpt: addCol 1 cell 2 column with no extra options
|
||||
--FILE--
|
||||
<?php
|
||||
// $Id: 18.phpt 297540 2010-04-05 19:58:39Z wiesemann $
|
||||
require_once 'HTML/Table.php';
|
||||
$table = new HTML_Table();
|
||||
|
||||
$data[0][] = 'Test';
|
||||
$data[0][] = 'Test';
|
||||
|
||||
foreach($data as $key => $value) {
|
||||
$table->addCol($value);
|
||||
}
|
||||
|
||||
// output
|
||||
echo $table->toHTML();
|
||||
?>
|
||||
--EXPECT--
|
||||
<table>
|
||||
<tr>
|
||||
<td>Test</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Test</td>
|
||||
</tr>
|
||||
</table>
|
||||
Reference in New Issue
Block a user