PhpOffice\PhpPresentation\Tests\Style\FontTest::testSetIsBold PHP Method

testSetIsBold() public method

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