/** * Test get/set bold */ 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()); }