|
@@ -108,9 +108,11 @@ class Mustache_Cache_FilesystemCache extends Mustache_Cache_AbstractCache
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
@mkdir($dirName, 0777, true);
|
|
@mkdir($dirName, 0777, true);
|
|
|
|
|
+ // @codeCoverageIgnoreStart
|
|
|
if (!is_dir($dirName)) {
|
|
if (!is_dir($dirName)) {
|
|
|
throw new Mustache_Exception_RuntimeException(sprintf('Failed to create cache directory "%s".', $dirName));
|
|
throw new Mustache_Exception_RuntimeException(sprintf('Failed to create cache directory "%s".', $dirName));
|
|
|
}
|
|
}
|
|
|
|
|
+ // @codeCoverageIgnoreEnd
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return $dirName;
|
|
return $dirName;
|
|
@@ -143,13 +145,17 @@ class Mustache_Cache_FilesystemCache extends Mustache_Cache_AbstractCache
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // @codeCoverageIgnoreStart
|
|
|
$this->log(
|
|
$this->log(
|
|
|
Mustache_Logger::ERROR,
|
|
Mustache_Logger::ERROR,
|
|
|
'Unable to rename Mustache temp cache file: "{tempName}" -> "{fileName}"',
|
|
'Unable to rename Mustache temp cache file: "{tempName}" -> "{fileName}"',
|
|
|
array('tempName' => $tempFile, 'fileName' => $fileName)
|
|
array('tempName' => $tempFile, 'fileName' => $fileName)
|
|
|
);
|
|
);
|
|
|
|
|
+ // @codeCoverageIgnoreEnd
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // @codeCoverageIgnoreStart
|
|
|
throw new Mustache_Exception_RuntimeException(sprintf('Failed to write cache file "%s".', $fileName));
|
|
throw new Mustache_Exception_RuntimeException(sprintf('Failed to write cache file "%s".', $fileName));
|
|
|
|
|
+ // @codeCoverageIgnoreEnd
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|