public function testLoopContinuously()
{
$oPhpPresentation = new PhpPresentation();
$oXMLDoc = TestHelperDOCX::getDocument($oPhpPresentation, 'PowerPoint2007');
$this->assertTrue($oXMLDoc->fileExists('ppt/presProps.xml'));
$element = '/p:presentationPr/p:showPr';
$this->assertFalse($oXMLDoc->elementExists($element, 'ppt/presProps.xml'));
$oPhpPresentation->getPresentationProperties()->setLoopContinuouslyUntilEsc(true);
$oXMLDoc = TestHelperDOCX::getDocument($oPhpPresentation, 'PowerPoint2007');
$this->assertTrue($oXMLDoc->fileExists('ppt/presProps.xml'));
$element = '/p:presentationPr/p:showPr';
$this->assertTrue($oXMLDoc->elementExists($element, 'ppt/presProps.xml'));
$this->assertTrue($oXMLDoc->attributeElementExists($element, 'loop', 'ppt/presProps.xml'));
$this->assertEquals(1, $oXMLDoc->getElementAttribute($element, 'loop', 'ppt/presProps.xml'));
}