public function testTableWithColspan()
{
$value = rand(2, 100);
$phpPresentation = new PhpPresentation();
$oSlide = $phpPresentation->getActiveSlide();
$oShape = $oSlide->createTableShape($value);
$oRow = $oShape->createRow();
$oCell = $oRow->getCell();
$oCell->setColSpan($value);
$pres = TestHelperDOCX::getDocument($phpPresentation, 'ODPresentation');
$element = '/office:document-content/office:body/office:presentation/draw:page/draw:frame/table:table/table:table-row/table:table-cell';
$this->assertTrue($pres->elementExists($element, 'content.xml'));
$this->assertEquals($value, $pres->getElementAttribute($element, 'table:number-columns-spanned', 'content.xml'));
}