File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
tests/PhpPresentation/Tests/Reader Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -502,9 +502,10 @@ public function testSlideLayout()
502
502
$ oPhpPresentation = $ object ->load ($ file );
503
503
$ this ->assertInstanceOf ('PhpOffice \\PhpPresentation \\PhpPresentation ' , $ oPhpPresentation );
504
504
505
- $ this ->assertCount (3 , $ oPhpPresentation ->getAllMasterSlides ());
506
- $ this ->assertCount (11 , $ oPhpPresentation ->getAllMasterSlides ()[0 ]->getAllSlideLayouts ());
507
- $ this ->assertCount (11 , $ oPhpPresentation ->getAllMasterSlides ()[1 ]->getAllSlideLayouts ());
508
- $ this ->assertCount (11 , $ oPhpPresentation ->getAllMasterSlides ()[2 ]->getAllSlideLayouts ());
505
+ $ masterSlides = $ oPhpPresentation ->getAllMasterSlides ();
506
+ $ this ->assertCount (3 , $ masterSlides );
507
+ $ this ->assertCount (11 , $ masterSlides [0 ]->getAllSlideLayouts ());
508
+ $ this ->assertCount (11 , $ masterSlides [1 ]->getAllSlideLayouts ());
509
+ $ this ->assertCount (11 , $ masterSlides [2 ]->getAllSlideLayouts ());
509
510
}
510
511
}
You can’t perform that action at this time.
0 commit comments