Пример #1
0
 /**
  * Test get/set subscript
  */
 public function testSetIsSubScript()
 {
     $object = new Font();
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Style\\Font', $object->setSubScript());
     $this->assertFalse($object->isSubScript());
     $this->assertTrue($object->isSuperScript());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Style\\Font', $object->setSubScript(''));
     $this->assertFalse($object->isSubScript());
     $this->assertTrue($object->isSuperScript());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Style\\Font', $object->setSubScript(false));
     $this->assertFalse($object->isSubScript());
     $this->assertTrue($object->isSuperScript());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Style\\Font', $object->setSubScript(true));
     $this->assertTrue($object->isSubScript());
     $this->assertFalse($object->isSuperScript());
 }