f90e19c3
Andrea Petta
plugin update
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php
require_once 'PHPUnit/Framework.php';
require_once dirname(__FILE__) . '/../../../lib/PHPRtfLite.php';
/**
* Test class for PHPRtfLite_Table_Row.
*/
class PHPRtfLite_Table_RowTest extends PHPUnit_Framework_TestCase
{
/**
* @var PHPRtfLite_Table
*/
private $_table;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$rtf = new PHPRtfLite;
$this->_table = $rtf->addSection()->addTable();
}
/**
* tests getCellByIndex
* @return void
*/
public function testGetCellByIndex()
{
$this->_table->addRow(5);
$row = $this->_table->getRow(1);
$this->assertType('PHPRtfLite_Table_Cell', $row->getCellByIndex(5));
}
}
|