/** * 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()); }
/** * 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'); }