public static function isSupported() { return function_exists('opcache_compile_file') && ini_get('opcache.enable'); }
public function createCachePool() { if (!PhpFilesAdapter::isSupported()) { $this->markTestSkipped('OPcache extension is not enabled.'); } return new PhpFilesAdapter('sf-cache'); }