Skip to content

Commit 701727b

Browse files
committed
#161 : Unit Tests
1 parent 9fc3a2c commit 701727b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/PhpPresentation/Tests/Reader/PowerPoint2007Test.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,10 @@ public function testSlideLayout()
502502
$oPhpPresentation = $object->load($file);
503503
$this->assertInstanceOf('PhpOffice\\PhpPresentation\\PhpPresentation', $oPhpPresentation);
504504

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());
509510
}
510511
}

0 commit comments

Comments
 (0)