PhpOffice\PhpPresentation\Tests\Writer\AbstractWriterTest::testConstruct PHP Method

testConstruct() public method

Test create new instance
public testConstruct ( )
    public function testConstruct()
    {
        $oStubWriter = $this->getMockForAbstractClass('PhpOffice\\PhpPresentation\\Writer\\AbstractWriter');
        $oStubZip = $this->getMockForAbstractClass('PhpOffice\\Common\\Adapter\\Zip\\ZipInterface');
        $this->assertNull($oStubWriter->getZipAdapter());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Writer\\AbstractWriter', $oStubWriter->setZipAdapter($oStubZip));
        $this->assertInstanceOf('PhpOffice\\Common\\Adapter\\Zip\\ZipInterface', $oStubWriter->getZipAdapter());
    }
AbstractWriterTest