public function testGetSetIndex() { $expectedVal = rand(1, 100); $object = new Author(); $this->assertNull($object->getIndex()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment\\Author', $object->setIndex($expectedVal)); $this->assertEquals($expectedVal, $object->getIndex()); }