public function testHashIndex() { $object = new Legend(); $value = rand(1, 100); $this->assertEmpty($object->getHashIndex()); $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\Chart\\Legend', $object->setHashIndex($value)); $this->assertEquals($value, $object->getHashIndex()); }