public static function isEnabled($config) { $value = self::getConfigValue('cache.enabled', $config); return empty($value) ? false : trim($value) == true || trim($value) == 'true'; }
/** * * @dataProvider EnabledProvider */ public function testIsEnabled($config, $expected) { $result = AuthorizationCache::isEnabled($config); $this->assertEquals($expected, $result); }