Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
13.phpt: 2 row 1 column, setCellContents / getCellContents
3
--FILE--
4
<?php
5
// $Id: 13.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[1][] = '';
11
 
12
foreach($data as $key => $value) {
13
    $table->addRow($value);
14
}
15
 
16
echo $table->getCellContents(0, 0) . "\n";
17
$table->setCellContents(0, 0, 'FOOBAR');
18
echo $table->getCellContents(0, 0) . "\n";
19
// output
20
echo $table->toHTML();
21
?>
22
--EXPECT--
23
Test
24
FOOBAR
25
<table>
26
	<tr>
27
		<td>FOOBAR</td>
28
	</tr>
29
	<tr>
30
		<td>&nbsp;</td>
31
	</tr>
32
</table>