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

testVisible() public method

public testVisible ( )
    public function testVisible()
    {
        $object = new Legend();
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Legend', $object->setVisible());
        $this->assertTrue($object->isVisible());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Legend', $object->setVisible(true));
        $this->assertTrue($object->isVisible());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Legend', $object->setVisible(false));
        $this->assertFalse($object->isVisible());
    }