@@ -287,10 +287,10 @@ public function testTypeLine()
287
287
public function testTypeLineMarker ()
288
288
{
289
289
do {
290
- $ expectedSymbol = array_rand (Marker::$ SYMBOL );
291
- } while ($ expectedSymbol == Marker::SYMBOL_NONE );
290
+ $ expectedSymbol = array_rand (Marker::$ arraySymbol );
291
+ } while ($ expectedSymbol == Marker::SYMBOL_NONE );
292
292
$ expectedSize = rand (2 , 72 );
293
- $ expectedElementSymbol = '/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:ser/c:marker/c:symbol ' ;
293
+ $ expectedEltSymbol = '/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:ser/c:marker/c:symbol ' ;
294
294
$ expectedElementSize = '/c:chartSpace/c:chart/c:plotArea/c:lineChart/c:ser/c:marker/c:size ' ;
295
295
296
296
$ oSlide = $ this ->oPresentation ->getActiveSlide ();
@@ -302,9 +302,9 @@ public function testTypeLineMarker()
302
302
$ oShape ->getPlotArea ()->setType ($ oLine );
303
303
304
304
$ oXMLDoc = TestHelperDOCX::getDocument ($ this ->oPresentation , 'PowerPoint2007 ' );
305
- $ this ->assertTrue ($ oXMLDoc ->elementExists ($ expectedElementSymbol , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
305
+ $ this ->assertTrue ($ oXMLDoc ->elementExists ($ expectedEltSymbol , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
306
306
$ this ->assertTrue ($ oXMLDoc ->elementExists ($ expectedElementSize , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
307
- $ this ->assertEquals ($ expectedSymbol , $ oXMLDoc ->getElementAttribute ($ expectedElementSymbol , 'val ' , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
307
+ $ this ->assertEquals ($ expectedSymbol , $ oXMLDoc ->getElementAttribute ($ expectedEltSymbol , 'val ' , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
308
308
$ this ->assertEquals ($ expectedSize , $ oXMLDoc ->getElementAttribute ($ expectedElementSize , 'val ' , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
309
309
310
310
$ oSeries ->getMarker ()->setSize (1 );
@@ -325,7 +325,7 @@ public function testTypeLineMarker()
325
325
$ oLine ->setSeries (array ($ oSeries ));
326
326
327
327
$ oXMLDoc = TestHelperDOCX::getDocument ($ this ->oPresentation , 'PowerPoint2007 ' );
328
- $ this ->assertFalse ($ oXMLDoc ->elementExists ($ expectedElementSymbol , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
328
+ $ this ->assertFalse ($ oXMLDoc ->elementExists ($ expectedEltSymbol , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
329
329
$ this ->assertFalse ($ oXMLDoc ->elementExists ($ expectedElementSize , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
330
330
}
331
331
@@ -360,7 +360,7 @@ public function testTypeLineSeriesOutline()
360
360
$ oXMLDoc = TestHelperDOCX::getDocument ($ this ->oPresentation , 'PowerPoint2007 ' );
361
361
$ this ->assertTrue ($ oXMLDoc ->fileExists ('ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
362
362
$ this ->assertTrue ($ oXMLDoc ->elementExists ($ expectedElement , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
363
- $ this ->assertEquals ($ expectedWidthEmu , $ oXMLDoc ->getElementAttribute ($ expectedElement , 'w ' ,'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
363
+ $ this ->assertEquals ($ expectedWidthEmu , $ oXMLDoc ->getElementAttribute ($ expectedElement , 'w ' , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
364
364
$ this ->assertTrue ($ oXMLDoc ->elementExists ($ expectedElement .'/a:solidFill ' , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
365
365
}
366
366
@@ -539,10 +539,10 @@ public function testTypeScatter()
539
539
public function testTypeScatterMarker ()
540
540
{
541
541
do {
542
- $ expectedSymbol = array_rand (Marker::$ SYMBOL );
543
- } while ($ expectedSymbol == Marker::SYMBOL_NONE );
542
+ $ expectedSymbol = array_rand (Marker::$ arraySymbol );
543
+ } while ($ expectedSymbol == Marker::SYMBOL_NONE );
544
544
$ expectedSize = rand (2 , 72 );
545
- $ expectedElementSymbol = '/c:chartSpace/c:chart/c:plotArea/c:scatterChart/c:ser/c:marker/c:symbol ' ;
545
+ $ expectedEltSymbol = '/c:chartSpace/c:chart/c:plotArea/c:scatterChart/c:ser/c:marker/c:symbol ' ;
546
546
$ expectedElementSize = '/c:chartSpace/c:chart/c:plotArea/c:scatterChart/c:ser/c:marker/c:size ' ;
547
547
548
548
$ oSlide = $ this ->oPresentation ->getActiveSlide ();
@@ -554,9 +554,9 @@ public function testTypeScatterMarker()
554
554
$ oShape ->getPlotArea ()->setType ($ oScatter );
555
555
556
556
$ oXMLDoc = TestHelperDOCX::getDocument ($ this ->oPresentation , 'PowerPoint2007 ' );
557
- $ this ->assertTrue ($ oXMLDoc ->elementExists ($ expectedElementSymbol , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
557
+ $ this ->assertTrue ($ oXMLDoc ->elementExists ($ expectedEltSymbol , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
558
558
$ this ->assertTrue ($ oXMLDoc ->elementExists ($ expectedElementSize , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
559
- $ this ->assertEquals ($ expectedSymbol , $ oXMLDoc ->getElementAttribute ($ expectedElementSymbol , 'val ' , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
559
+ $ this ->assertEquals ($ expectedSymbol , $ oXMLDoc ->getElementAttribute ($ expectedEltSymbol , 'val ' , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
560
560
$ this ->assertEquals ($ expectedSize , $ oXMLDoc ->getElementAttribute ($ expectedElementSize , 'val ' , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
561
561
562
562
$ oSeries ->getMarker ()->setSize (1 );
@@ -577,7 +577,7 @@ public function testTypeScatterMarker()
577
577
$ oScatter ->setSeries (array ($ oSeries ));
578
578
579
579
$ oXMLDoc = TestHelperDOCX::getDocument ($ this ->oPresentation , 'PowerPoint2007 ' );
580
- $ this ->assertFalse ($ oXMLDoc ->elementExists ($ expectedElementSymbol , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
580
+ $ this ->assertFalse ($ oXMLDoc ->elementExists ($ expectedEltSymbol , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
581
581
$ this ->assertFalse ($ oXMLDoc ->elementExists ($ expectedElementSize , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
582
582
}
583
583
@@ -612,7 +612,7 @@ public function testTypeScatterSeriesOutline()
612
612
$ oXMLDoc = TestHelperDOCX::getDocument ($ this ->oPresentation , 'PowerPoint2007 ' );
613
613
$ this ->assertTrue ($ oXMLDoc ->fileExists ('ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
614
614
$ this ->assertTrue ($ oXMLDoc ->elementExists ($ expectedElement , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
615
- $ this ->assertEquals ($ expectedWidthEmu , $ oXMLDoc ->getElementAttribute ($ expectedElement , 'w ' ,'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
615
+ $ this ->assertEquals ($ expectedWidthEmu , $ oXMLDoc ->getElementAttribute ($ expectedElement , 'w ' , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
616
616
$ this ->assertTrue ($ oXMLDoc ->elementExists ($ expectedElement .'/a:solidFill ' , 'ppt/charts/ ' .$ oShape ->getIndexedFilename ()));
617
617
}
618
618
0 commit comments