added Row::getCellAtIndex method

This commit is contained in:
madflow authored and Adrien Loison committed 2018-02-14 21:32:10 +01:00
1 parent 21e0e9e6b1
commit 29cf6245a1
2 files changed
+22 -2

No files matched your search

+12
View File
@@ -70,6 +70,18 @@ class RowTest extends \PHPUnit\Framework\TestCase
$this->assertEquals(2, $row->getNumCells());
}
/**
* @return void
*/
public function testGetCellAtIndex()
{
$row = new Row([], null);
$cellMock = $this->getCellMock();
$row->setCellAtIndex($cellMock, 3);
$this->assertEquals($cellMock, $row->getCellAtIndex(3));
$this->assertNull($row->getCellAtIndex(10));
}
/**
* @return void
*/