Move shared strings caching strategy into its own component
This will help implementing different caching strategies: - file based - in-memory
This commit is contained in:
1 parent
cf239905d7
commit
2dcb86aae9
6 files changed
+323
-133
No files matched your search
@@ -40,7 +40,8 @@ class SharedStringsHelperTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
$this->sharedStringsHelper->extractSharedStrings();
|
||||
|
||||
$tempFolder = \ReflectionHelper::getValueOnObject($this->sharedStringsHelper, 'tempFolder');
|
||||
$cachingStrategy = \ReflectionHelper::getValueOnObject($this->sharedStringsHelper, 'cachingStrategy');
|
||||
$tempFolder = \ReflectionHelper::getValueOnObject($cachingStrategy, 'tempFolder');
|
||||
|
||||
$filesInTempFolder = $this->getFilesInFolder($tempFolder);
|
||||
$this->assertEquals(1, count($filesInTempFolder), 'One temp file should have been created in the temp folder.');
|
||||
|
||||
Reference in new issue
Block a user