*/ namespace Desarrolla2\Test\Cache\Adapter; use Desarrolla2\Cache\Cache; use Desarrolla2\Cache\Adapter\Apcu; /** * ApcuCacheTest */ class ApcuCacheTest extends AbstractCacheTest { public function setUp() { if (!extension_loaded('apcu')) { $this->markTestSkipped( 'The APCu extension is not available.' ); } if (!ini_get('apc.enable_cli')) { $this->markTestSkipped( 'You need to enable apc.enable_cli' ); } $this->cache = new Cache(new Apcu()); } /** * @return array */ public function dataProviderForOptionsException() { return [ ['ttl', 0, '\Desarrolla2\Cache\Exception\CacheException'], ['file', 100, '\Desarrolla2\Cache\Exception\CacheException'], ]; } }