public function setThrowsExceptionIfCachePathLengthExceedsMaximumPathLength()
{
$cachePath = 'vfs://Foo';
$mockEnvironmentConfiguration = $this->createEnvironmentConfigurationMock([__DIR__ . '~Testing', 'vfs://Foo/', 5]);
$entryIdentifier = 'BackendFileTest';
$backend = $this->getMockBuilder(FileBackend::class)->setMethods(['setTag', 'writeCacheFile'])->disableOriginalConstructor()->getMock();
$backend->expects($this->once())->method('writeCacheFile')->willReturn(false);
$this->inject($backend, 'environmentConfiguration', $mockEnvironmentConfiguration);
$backend->setCacheDirectory($cachePath);
$backend->set($entryIdentifier, 'cache data');
}