PhpOffice\PhpPresentation\Tests\Style\FontTest::testSetIsSubScript PHP 메소드

testSetIsSubScript() 공개 메소드

Test get/set subscript
public testSetIsSubScript ( )
    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());
    }