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()); }
protected function setUp() { $this->poolManager = Factory::createPoolManager(); }