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:
Adrien Loison committed 2015-07-11 14:12:18 -07:00
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.');