Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
18.phpt: addCol 1 cell 2 column with no extra options
3
--FILE--
4
<?php
5
// $Id: 18.phpt 297540 2010-04-05 19:58:39Z wiesemann $
6
require_once 'HTML/Table.php';
7
$table = new HTML_Table();
8
 
9
$data[0][] = 'Test';
10
$data[0][] = 'Test';
11
 
12
foreach($data as $key => $value) {
13
    $table->addCol($value);
14
}
15
 
16
// output
17
echo $table->toHTML();
18
?>
19
--EXPECT--
20
<table>
21
	<tr>
22
		<td>Test</td>
23
	</tr>
24
	<tr>
25
		<td>Test</td>
26
	</tr>
27
</table>