PhpOffice\PhpPresentation\Tests\Style\FontTest::testSetIsSuperScript PHP Метод

testSetIsSuperScript() публичный Метод

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());
    }