public function testDelete() {
$key = 'key_to_delete';
$time = time() + 1;
$path = Libraries::get(true, 'resources') . "/tmp/cache/{$key}";
file_put_contents($path, "{:expiry:$time}\ndata");
$this->assertTrue(file_exists($path));
$closure = $this->File->delete($key);
$this->assertTrue(is_callable($closure));
$params = compact('key');
$this->assertTrue($closure($this->File, $params, null));
$key = 'non_existent';
$params = compact('key');
$this->assertFalse($closure($this->File, $params, null));
}