setItalic() 공개 메소드

Set Italic
public setItalic ( boolean $pValue = false ) : Font
$pValue boolean
리턴 Font
예제 #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());
 }