for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File containing the CacheServiceDecorator class.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace eZ\Publish\Core\Persistence\Cache\Tests\Helpers;
use eZ\Publish\Core\Persistence\Cache\CacheServiceDecorator;
use Stash\Pool;
use Stash\Driver\Ephemeral;
* Class CacheServiceDecorator.
* Wraps the Cache Service for Spi cache to apply key prefix for the cache
class IntegrationTestCacheServiceDecorator extends CacheServiceDecorator
{
* Constructs the cache service decorator.
public function __construct()
$this->cachePool = new Pool(new Ephemeral());
}
* Private function for integration test runner to clear data between tests.
public function clearAllTestData()
$this->cachePool->clear();