/** * gets cell width * * @return float */ public function getWidth() { if ($this->_width) { return $this->_width; } return $this->_table->getColumn($this->_columnIndex)->getWidth(); }
/** * tests getColumn * @depends testGetColumn * @expectedException PHPRtfLite_Exception */ public function testGetColumnWithInvalidIndex(PHPRtfLite_Table $table) { $this->assertType('PHPRtfLite_Table_Column', $table->getColumn(4)); }