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

testSetIsBold() 공개 메소드

Test get/set bold
public testSetIsBold ( )
    public function testSetIsBold()
    {
        $object = new Font();
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setBold());
        $this->assertFalse($object->isBold());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setBold(''));
        $this->assertFalse($object->isBold());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setBold(false));
        $this->assertFalse($object->isBold());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setBold(true));
        $this->assertTrue($object->isBold());
    }