public function testTitleVisibility()
{
$element = '/c:chartSpace/c:chart/c:autoTitleDeleted';
$oSlide = $this->oPresentation->getActiveSlide();
$oShape = $oSlide->createChartShape();
$oLine = new Line();
$oShape->getPlotArea()->setType($oLine);
$this->assertTrue($oShape->getTitle()->isVisible());
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Title', $oShape->getTitle()->setVisible(true));
$oXMLDoc = TestHelperDOCX::getDocument($this->oPresentation, 'PowerPoint2007');
$this->assertTrue($oXMLDoc->elementExists($element, 'ppt/charts/' . $oShape->getIndexedFilename()));
$this->assertEquals('0', $oXMLDoc->getElementAttribute($element, 'val', 'ppt/charts/' . $oShape->getIndexedFilename()));
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\Title', $oShape->getTitle()->setVisible(false));
$oXMLDoc = TestHelperDOCX::getDocument($this->oPresentation, 'PowerPoint2007');
$this->assertTrue($oXMLDoc->elementExists($element, 'ppt/charts/' . $oShape->getIndexedFilename()));
$this->assertEquals('1', $oXMLDoc->getElementAttribute($element, 'val', 'ppt/charts/' . $oShape->getIndexedFilename()));
}