public function testClear()
{
$key = 'key_to_clear';
$time = time() + 1;
$path = Libraries::get(true, 'resources') . "/tmp/cache/{$key}";
file_put_contents($path, "{:expiry:{$time}}\ndata");
$result = $this->File->clear();
$this->assertTrue($result);
$this->assertFileNotExists($path);
$result = touch(Libraries::get(true, 'resources') . "/tmp/cache/empty");
$this->assertTrue($result);
}