public function testTypeBar3DBarDirection()
{
$oSlide = $this->oPresentation->getActiveSlide();
$oShape = $oSlide->createChartShape();
$oShape->setResizeProportional(false)->setHeight(550)->setWidth(700)->setOffsetX(120)->setOffsetY(80);
$oBar3D = new Bar3D();
$oBar3D->setBarDirection(Bar3D::DIRECTION_HORIZONTAL);
$oSeries = new Series('Downloads', $this->seriesData);
$oBar3D->addSeries($oSeries);
$oShape->getPlotArea()->setType($oBar3D);
$oXMLDoc = TestHelperDOCX::getDocument($this->oPresentation, 'PowerPoint2007');
$element = '/c:chartSpace/c:chart/c:plotArea/c:bar3DChart/c:barDir';
$this->assertTrue($oXMLDoc->elementExists($element, 'ppt/charts/' . $oShape->getIndexedFilename()));
$this->assertEquals(Bar3D::DIRECTION_HORIZONTAL, $oXMLDoc->getElementAttribute($element, 'val', 'ppt/charts/' . $oShape->getIndexedFilename()));
}