CodeExplorer ChainCacheClearer example
@
unlink(self::
$cacheDir);
} public function testInjectClearersInConstructor() { $clearer =
$this->
createMock(CacheClearerInterface::
class);
$clearer ->
expects($this->
once()) ->
method('clear'
);
$chainClearer =
new ChainCacheClearer([$clearer]);
$chainClearer->
clear(self::
$cacheDir);
}}