for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yiisoft\CacheOld\Tests;
use Yiisoft\CacheOld\Cache;
use Yiisoft\CacheOld\CacheInterface;
use Yiisoft\CacheOld\WinCache;
/**
* Class for testing wincache backend.
* @group wincache
* @group caching
*/
class WinCacheTest extends CacheTest
{
public static function setUpBeforeClass(): void
if (!extension_loaded('wincache')) {
self::markTestSkipped('Required extension "wincache" is not loaded');
}
if (!ini_get('wincache.enablecli')) {
self::markTestSkipped('Wincache is installed but not enabled. Enable with "wincache.enablecli" from php.ini. Skipping.');
if (!ini_get('wincache.ucenabled')) {
self::markTestSkipped('Wincache user cache disabled. Enable with "wincache.ucenabled" from php.ini. Skipping.');
protected function createCacheInstance(): CacheInterface
return new Cache(new WinCache());