示例#1
0
 /**
  * Create new instance with style name string
  */
 public function testConstructWithParamsString()
 {
     $oLink = new Link('https://github.com/PHPOffice/PHPWord', null, 'fontStyle', 'paragraphStyle');
     $this->assertEquals('fontStyle', $oLink->getFontStyle());
     $this->assertEquals('paragraphStyle', $oLink->getParagraphStyle());
 }
示例#2
0
 /**
  * Create new instance with style name string
  */
 public function testConstructWithParamsString()
 {
     $oLink = new Link('http://www.google.com', null, 'fontStyle', 'paragraphStyle');
     $this->assertEquals($oLink->getFontStyle(), 'fontStyle');
     $this->assertEquals($oLink->getParagraphStyle(), 'paragraphStyle');
 }