public function testGetContentWithTypeDotDash() { $borderFormat = new PHPRtfLite_Border_Format(1, '#888', PHPRtfLite_Border_Format::TYPE_DOTDASH); $colorTable = new PHPRtfLite_DocHead_ColorTable(); $borderFormat->setColorTable($colorTable); $this->assertEquals('\\brdrdashd\\brdrw20\\brsp0\\brdrcf2', trim($borderFormat->getContent())); }
/** * sets border format for bottom border * * @param PHPRtfLite_Border_Format $borderFormat */ public function setBorderBottom(PHPRtfLite_Border_Format $borderFormat) { $borderFormat->setColorTable($this->_rtf->getColorTable()); $this->_borderBottom = $borderFormat; }