setFont() public method

Set font
public setFont ( Font $pFont = null ) : Paragraph
$pFont PhpOffice\PhpPresentation\Style\Font Font
return PhpOffice\PhpPresentation\Shape\RichText\Paragraph
Exemplo n.º 1
0
 public function testFont()
 {
     $object = new Series();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Series', $object->setFont());
     $this->assertNull($object->getFont());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Series', $object->setFont(new Font()));
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->getFont());
 }