PayPal\Cache\AuthorizationCache::cachePath PHP Method

cachePath() public static method

Returns the cache file path
public static cachePath ( $config ) : string
$config
return string
    public static function cachePath($config)
    {
        $cachePath = self::getConfigValue('cache.FileName', $config);
        return empty($cachePath) ? __DIR__ . self::$CACHE_PATH : $cachePath;
    }

Usage Example

コード例 #1
0
 /**
  * @dataProvider CachePathProvider
  */
 public function testCachePath($config, $expected)
 {
     $result = AuthorizationCache::cachePath($config);
     $this->assertContains($expected, $result);
 }