CodeExplorer getStoreMetadata example
$this->store =
new Store(sys_get_temp_dir().'/http_cache'
);
} protected function tearDown(): void
{ HttpCacheTestCase::
clearDirectory(sys_get_temp_dir().'/http_cache'
);
} public function testReadsAnEmptyArrayWithReadWhenNothingCachedAtKey() { $this->
assertEmpty($this->
getStoreMetadata('/nothing'
));
} public function testUnlockFileThatDoesExist() { $this->
storeSimpleEntry();
$this->store->
lock($this->request
);
$this->
assertTrue($this->store->
unlock($this->request
));
} public function testUnlockFileThatDoesNotExist() {