*/ namespace Desarrolla2\Test\Cache; use Desarrolla2\Cache\Apcu as ApcuCache; /** * ApcuCacheTest */ class ApcuCacheTest extends AbstractCacheTest { public static function setUpBeforeClass(): void { // Required to check the TTL for new entries ini_set('apc.use_request_time', false); } public function createSimpleCache() { 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' ); } return new ApcuCache(); } }