public function testMetaDataFailure() { $temp = $this->createTempDir(__CLASS__); $storage = new ezcCacheStorageFileArray($temp); $this->assertFalse(file_exists($storage->getLocation() . $storage->options->metaDataFile), 'Meta data file existed before the storage was created.'); $restoredMeta = $storage->restoreMetaData(); $this->assertNull($restoredMeta, 'Meta data not restored correctly.'); $this->assertFalse(file_exists($storage->getLocation() . $storage->options->metaDataFile), 'Meta data file existed before the storage was created.'); $this->removeTempDir(); }