/**
  * Test set/get borderColor
  */
 public function testSetGetBorderColor()
 {
     $expected = 'red';
     $object = new TextBox();
     $object->setBorderColor($expected);
     $this->assertEquals($expected, $object->getBorderColor());
 }
示例#2
0
 /**
  * Writer border
  */
 private function writeBorder(TextBoxStyle $style)
 {
     $xmlWriter = $this->getXmlWriter();
     // Border size
     $borderSize = $style->getBorderSize();
     if ($borderSize !== null) {
         $xmlWriter->writeAttribute('strokeweight', $borderSize . 'pt');
     }
     // Border color
     $borderColor = $style->getBorderColor();
     if (empty($borderColor)) {
         $xmlWriter->writeAttribute('stroked', 'f');
     } else {
         $xmlWriter->writeAttribute('strokecolor', $borderColor);
     }
     //@todo <v:stroke dashstyle="dashDot" linestyle="thickBetweenThin"/>
 }