PhpOffice\PhpPresentation\Style\Font::isSuperScript PHP Method

isSuperScript() public method

Get SuperScript
public isSuperScript ( ) : boolean
return boolean
    public function isSuperScript()
    {
        return $this->superScript;
    }

Usage Example

Esempio n. 1
0
 /**
  * Test get/set superscript
  */
 public function testSetIsSuperScript()
 {
     $object = new Font();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setSuperScript());
     $this->assertFalse($object->isSuperScript());
     $this->assertTrue($object->isSubScript());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setSuperScript(''));
     $this->assertFalse($object->isSuperScript());
     $this->assertTrue($object->isSubScript());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setSuperScript(false));
     $this->assertFalse($object->isSuperScript());
     $this->assertTrue($object->isSubScript());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setSuperScript(true));
     $this->assertTrue($object->isSuperScript());
     $this->assertFalse($object->isSubScript());
 }