コード例 #1
0
ファイル: LinkTest.php プロジェクト: HaiLeader/quizz
 /**
  * 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
ファイル: LinkTest.php プロジェクト: hcvcastro/pxp
 /**
  * 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');
 }