/** * Get cache adapter backend * * @return BackendInterface */ protected function getCacheAdapterBackend() { /* @var Config $cacheConfig */ $cacheConfig = $this->config->cache->backend; $frontendAdapter = $this->getCacheAdapterFrontend(); return $this->backendFactory->getAdapter($cacheConfig->adapter, $frontendAdapter, $cacheConfig->toArray()); }
/** * @expectedException \Exception * @expectedExceptionMessage Class "Phalcon\Cache\Backend\Fake" is not exists */ public function testGetAdapterFake() { $this->testable->getAdapter('Fake', $this->frontendAdapter, $this->getCacheOptions()); }