Set SubScript
public setSubScript ( boolean $pValue = false ) : |
||
$pValue | boolean | |
리턴 |
/** * Test get/set subscript */ public function testSetIsSubScript() { $object = new Font(); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setSubScript()); $this->assertFalse($object->isSubScript()); $this->assertTrue($object->isSuperScript()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setSubScript('')); $this->assertFalse($object->isSubScript()); $this->assertTrue($object->isSuperScript()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setSubScript(false)); $this->assertFalse($object->isSubScript()); $this->assertTrue($object->isSuperScript()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setSubScript(true)); $this->assertTrue($object->isSubScript()); $this->assertFalse($object->isSuperScript()); }