src/Behat/Gherkin/Cache/FileCache.php
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;
    }
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;
    }
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 ; }
Reads feature cache from path.

@param string $path Feature path

@return FeatureNode

@throws CacheException
Reads feature cache from path .