isSubScript() public method

Get SubScript
public isSubScript ( ) : boolean
return boolean
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());
 }