public function testMetaDataFailure() { $storage = new ezcCacheStorageFileApcArray($this->getTempDir(__CLASS__), array('ttl' => 1)); $storage->reset(); $metaDataKey = urlencode($storage->getLocation()) . '_' . $storage->options->metaDataKey; $this->assertFalse(apc_fetch($metaDataKey), 'Meta data file existed before the storage was created.'); $restoredMeta = $storage->restoreMetaData(); $this->assertNull($restoredMeta, 'Meta data not restored correctly.'); $this->assertFalse(apc_fetch($metaDataKey), 'Meta data file existed before the storage was created.'); $this->removeTempDir(); }