Pinq\Tests\Integration\Caching\CacheTest::__construct PHP Method

__construct() public method

public __construct ( $name = null, array $data = [], $dataName = '' )
$data array
    public function __construct($name = null, array $data = [], $dataName = '')
    {
        parent::__construct($name, $data, $dataName);
        self::$rootCacheDirectory = __DIR__ . DIRECTORY_SEPARATOR . 'CacheFiles' . DIRECTORY_SEPARATOR;
        if (!is_dir(self::$rootCacheDirectory)) {
            mkdir(self::$rootCacheDirectory, 511, true);
        }
    }

Usage Example

Beispiel #1
0
 public function __construct($name = null, array $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     self::$cacheFilePath = self::$rootCacheDirectory . 'CSVCache.cache';
 }