PhpOffice\PhpPresentation\Tests\Shape\Chart\LegendTest::testHashIndex PHP Method

testHashIndex() public method

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