cvs: pear /HTML_Table/tests 18.phpt 19.phpt
| From: | Helgi �ormar �orbj�rnsson | Date: | Wed, 26 Oct 2005 16:29:16 +0000 |
| Subject: | cvs: pear /HTML_Table/tests 18.phpt 19.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35873@lists.php.net to get a copy of this message | ||
dufuz Wed Oct 26 12:29:16 2005 EDT
Added files:
/pear/HTML_Table/tests 18.phpt 19.phpt
Log:
add basic tests for addCol
http://cvs.php.net/co.php/pear/HTML_Table/tests/18.phpt?r=1.1&p=1
Index: pear/HTML_Table/tests/18.phpt
+++ pear/HTML_Table/tests/18.phpt
--TEST--
18.phpt: addCol 1 cell 2 column with no extra options
--FILE--
<?php
// $Id: 18.phpt,v 1.1 2005/10/26 16:29:16 dufuz Exp $
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>
http://cvs.php.net/co.php/pear/HTML_Table/tests/19.phpt?r=1.1&p=1
Index: pear/HTML_Table/tests/19.phpt
+++ pear/HTML_Table/tests/19.phpt
--TEST--
19.phpt: addCol 2 cell 2 column with no extra options
--FILE--
<?php
// $Id: 19.phpt,v 1.1 2005/10/26 16:29:16 dufuz Exp $
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->addCol($value);
}
// output
echo $table->toHTML();
?>
--EXPECT--
<table>
<tr>
<td>Test</td>
<td>Test</td>
</tr>
<tr>
<td>Test</td>
<td>Test</td>
</tr>
</table>