public function testLoadSerializedFileNotExists() { $file = tempnam(sys_get_temp_dir(), 'PhpPowerpoint_Serialized'); $oArchive = new \ZipArchive(); $oArchive->open($file, \ZipArchive::CREATE); $oArchive->addFromString('PHPPowerPoint.xml', ''); $oArchive->close(); $object = new Serialized(); $this->assertNull($object->load($file)); }
/** * @expectedException \Exception * @expectedExceptionMessage Could not open for reading! File does not exist. */ public function testFileSupportsNotExists() { $object = new Serialized(); $object->fileSupportsUnserializePHPPowerPoint(''); }