Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (30 sloc) 0.498 kB
--TEST--
12.phpt: 2 row 2 column, setAutoGrow / getAutoGrow
--FILE--
<?php
// $Id$
require_once 'HTML/Table.php';
$table = new HTML_Table();
$table->setAutoGrow(true);
$data[0][] = 'Test';
$data[1][] = '';
$data[1][] = 'Test';
foreach($data as $key => $value) {
$table->addRow($value);
}
var_dump($table->getAutoGrow());
// output
echo $table->toHTML();
?>
--EXPECT--
bool(true)
<table>
<tr>
<td>Test</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>Test</td>
</tr>
</table>
Jump to Line
Something went wrong with that request. Please try again.