PhpOffice\PhpPresentation\Tests\PhpPresentationTest::testConstruct PHP Method

testConstruct() public method

Test create new instance
public testConstruct ( )
    public function testConstruct()
    {
        $object = new PhpPresentation();
        $slide = $object->getSlide();
        $this->assertEquals(new DocumentProperties(), $object->getDocumentProperties());
        $this->assertEquals(new DocumentLayout(), $object->getLayout());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\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\\PhpPresentation\\Slide\\Iterator', $object->getSlideIterator());
    }