/** * Test get/set name */ public function testSetGetName() { $object = new Font(); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setName()); $this->assertEquals('Calibri', $object->getName()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setName('')); $this->assertEquals('Calibri', $object->getName()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setName('Arial')); $this->assertEquals('Arial', $object->getName()); }