示例#1
0
 /**
  * Init
  */
 protected function setUp()
 {
     $this->testable = new FactoryBackend();
     $factory = new FactoryFrontend();
     $this->frontendAdapter = $factory->getAdapter('Data', []);
 }
示例#2
0
 /**
  * @expectedException \Exception
  * @expectedExceptionMessage Class "Phalcon\Cache\Frontend\Fake" is not exists
  */
 public function testGetAdapterFake()
 {
     $this->testable->getAdapter('Fake', []);
 }
示例#3
0
 /**
  * Get cache adapter frontend
  *
  * @return FrontendInterface
  */
 protected function getCacheAdapterFrontend()
 {
     /* @var Config $cacheConfig */
     $cacheConfig = $this->config->cache->frontend;
     return $this->frontendFactory->getAdapter($cacheConfig->adapter, $cacheConfig->toArray());
 }