public function tearDown()
{
$this->File->clear();
$resources = realpath(Libraries::get(true, 'resources'));
$paths = array("{$resources}/tmp/cache", "{$resources}/tmp/cache/templates");
if ($this->_hasEmpty) {
foreach ($paths as $path) {
$path = realpath($path);
if (is_dir($path) && is_writable($path)) {
touch("{$resources}/empty");
}
}
}
unset($this->File);
}