PHP Класс Behat\Gherkin\Cache\FileCache

Caches feature into a file.
Автор: Konstantin Kudryashov ([email protected])
Наследование: implements Behat\Gherkin\Cache\CacheInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $path ) Initializes file cache.
isFresh ( string $path, integer $timestamp ) : boolean Checks that cache for feature exists and is fresh.
read ( string $path ) : Behat\Gherkin\Node\FeatureNode Reads feature cache from path.
write ( string $path, Behat\Gherkin\Node\FeatureNode $feature ) Caches feature node.

Защищенные методы

Метод Описание
getCachePathFor ( string $path ) : string Returns feature cache file path from features path.

Описание методов

__construct() публичный Метод

Initializes file cache.
public __construct ( string $path )
$path string Path to the folder where to store caches.

getCachePathFor() защищенный Метод

Returns feature cache file path from features path.
protected getCachePathFor ( string $path ) : string
$path string Feature path
Результат string

isFresh() публичный Метод

Checks that cache for feature exists and is fresh.
public isFresh ( string $path, integer $timestamp ) : boolean
$path string Feature path
$timestamp integer The last time feature was updated
Результат boolean

read() публичный Метод

Reads feature cache from path.
public read ( string $path ) : Behat\Gherkin\Node\FeatureNode
$path string Feature path
Результат Behat\Gherkin\Node\FeatureNode

write() публичный Метод

Caches feature node.
public write ( string $path, Behat\Gherkin\Node\FeatureNode $feature )
$path string Feature path
$feature Behat\Gherkin\Node\FeatureNode Feature instance