/**
* @test
* @expectedException \Neos\Cache\Exception
*/
public function setCacheThrowsExceptionOnNonWritableDirectory()
{
$mockEnvironmentConfiguration = $this->getMockBuilder(EnvironmentConfiguration::class)->setMethods(null)->setConstructorArgs([__DIR__ . '~Testing', 'vfs://Some/NonExisting/Directory/', 1024])->getMock();
$simpleFileBackend = new SimpleFileBackend($mockEnvironmentConfiguration, []);
$simpleFileBackend->setCache($this->mockCacheFrontend);
$this->getSimpleFileBackend();
}