protected function setUp()
 {
     $poolManager = Factory::createPoolManager();
     $poolManager->addPool('books', new ArrayCachePool());
     $cacheHandler = Factory::createCacheHandler($poolManager);
     $proxyGenerator = Factory::createProxyGenerator($cacheHandler);
     $this->poolManager = $poolManager;
     $this->keyGenerator = Factory::createKeyGenerator();
     $this->service = $proxyGenerator->generate(new BookService());
 }
Exemplo n.º 2
0
 protected function setUp()
 {
     $this->poolManager = Factory::createPoolManager();
 }