Neos\Cache\Tests\Unit\Backend\SimpleFileBackendTest::setThrowsExceptionIfCachePathLengthExceedsMaximumPathLength PHP Method

setThrowsExceptionIfCachePathLengthExceedsMaximumPathLength() public method

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