@@ -104,34 +104,6 @@ public function testTransWithCachingWithInvalidLocale()
104
104
$ translator ->trans ('foo ' );
105
105
}
106
106
107
- public function testLoadResourcesWithCaching ()
108
- {
109
- $ loader = new \Symfony \Component \Translation \Loader \YamlFileLoader ();
110
- $ resourceFiles = array (
111
- 'fr ' => array (
112
- __DIR__ .'/../Fixtures/Resources/translations/messages.fr.yml ' ,
113
- ),
114
- );
115
-
116
- // prime the cache
117
- $ translator = $ this ->getTranslator ($ loader , array ('cache_dir ' => $ this ->tmpDir , 'resource_files ' => $ resourceFiles ), 'yml ' );
118
- $ translator ->setLocale ('fr ' );
119
-
120
- $ this ->assertEquals ('répertoire ' , $ translator ->trans ('folder ' ));
121
-
122
- // do it another time as the cache is primed now
123
- $ translator = $ this ->getTranslator ($ loader , array ('cache_dir ' => $ this ->tmpDir ), 'yml ' );
124
- $ translator ->setLocale ('fr ' );
125
-
126
- $ this ->assertEquals ('répertoire ' , $ translator ->trans ('folder ' ));
127
-
128
- // refresh cache when resources is changed in debug mode.
129
- $ translator = $ this ->getTranslator ($ loader , array ('cache_dir ' => $ this ->tmpDir , 'debug ' => true ), 'yml ' );
130
- $ translator ->setLocale ('fr ' );
131
-
132
- $ this ->assertEquals ('folder ' , $ translator ->trans ('folder ' ));
133
- }
134
-
135
107
public function testLoadResourcesWithoutCaching ()
136
108
{
137
109
$ loader = new \Symfony \Component \Translation \Loader \YamlFileLoader ();
0 commit comments