public static function cachePath($config) { $cachePath = self::getConfigValue('cache.FileName', $config); return empty($cachePath) ? __DIR__ . self::$CACHE_PATH : $cachePath; }
/** * @dataProvider CachePathProvider */ public function testCachePath($config, $expected) { $result = AuthorizationCache::cachePath($config); $this->assertContains($expected, $result); }