Behat\Gherkin\Cache\FileCache::read PHP Метод

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

Reads feature cache from path.
public read ( string $path ) : Behat\Gherkin\Node\FeatureNode
$path string Feature path
Результат Behat\Gherkin\Node\FeatureNode
    public function read($path)
    {
        $cachePath = $this->getCachePathFor($path);
        $feature = unserialize(file_get_contents($cachePath));
        if (!$feature instanceof FeatureNode) {
            throw new CacheException(sprintf('Can not load cache for a feature "%s" from "%s".', $path, $cachePath));
        }
        return $feature;
    }