Neos\Flow\Tests\Unit\Session\SessionTest::createCache PHP Method

createCache() protected method

Creates a cache for testing
protected createCache ( string $name ) : Neos\Cache\Frontend\VariableFrontend
$name string
return Neos\Cache\Frontend\VariableFrontend
    protected function createCache($name)
    {
        $backend = new FileBackend(new EnvironmentConfiguration('Session Testing', 'vfs://Foo/', PHP_MAXPATHLEN));
        $cache = new VariableFrontend($name, $backend);
        $cache->initializeObject();
        $backend->setCache($cache);
        $cache->flush();
        return $cache;
    }
SessionTest