public function testRowGetColumnWidthsBeforeRendering() { $row = new Table\Row(); $this->setExpectedException('Zend\\Text\\Table\\Exception\\UnexpectedValueException', 'render() must be called'); $row->getColumnWidths(); }
public function testRowGetColumnWidthsBeforeRendering() { $row = new Table\Row(); try { $row->getColumnWidths(); $this->fail('An expected Zend_Text_Table_Exception has not been raised'); } catch (Table\Exception $expected) { $this->assertContains('No columns were rendered yet', $expected->getMessage()); } }