$files =
[$this->cacheFile, "{
$this->cacheFile
}.meta"
];
foreach ($files as $file) { if (file_exists($file)) { @
unlink($file);
} } } public function testGetPath() { $cache =
new ResourceCheckerConfigCache($this->cacheFile
);
$this->
assertSame($this->cacheFile,
$cache->
getPath());
} public function testCacheIsNotFreshIfEmpty() { $checker =
$this->
createMock(ResourceCheckerInterface::
class) ->
expects($this->
never())->
method('supports'
);
/* If there is nothing in the cache, it needs to be filled (and thus it's not fresh).
It does not matter if you provide checkers or not. */