コード例 #1
0
 /**
  * Test create new instance
  */
 public function testConstruct()
 {
     $object = new PhpPowerpoint();
     $slide = $object->getSlide();
     $this->assertEquals(new DocumentProperties(), $object->getProperties());
     $this->assertEquals(new DocumentLayout(), $object->getLayout());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Slide', $object->getSlide());
     $this->assertEquals(1, count($object->getAllSlides()));
     $this->assertEquals(0, $object->getIndex($slide));
     $this->assertEquals(1, $object->getSlideCount());
     $this->assertEquals(0, $object->getActiveSlideIndex());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Slide\\Iterator', $object->getSlideIterator());
 }