setItalic() public method

Set Italic
public setItalic ( boolean $pValue = false ) : Font
$pValue boolean
return Font
Example #1
0
 /**
  * Test get/set italic
  */
 public function testSetIsItalic()
 {
     $object = new Font();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setItalic());
     $this->assertFalse($object->isItalic());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setItalic(''));
     $this->assertFalse($object->isItalic());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setItalic(false));
     $this->assertFalse($object->isItalic());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setItalic(true));
     $this->assertTrue($object->isItalic());
 }