|
16 | 16 | use Symfony\Bundle\FrameworkBundle\Translation\Translator; |
17 | 17 | use Symfony\Component\Filesystem\Filesystem; |
18 | 18 | use Symfony\Component\Translation\Formatter\MessageFormatter; |
| 19 | +use Symfony\Component\Translation\Loader\YamlFileLoader; |
19 | 20 | use Symfony\Component\Translation\MessageCatalogue; |
20 | 21 |
|
21 | 22 | class TranslatorTest extends TestCase |
@@ -123,7 +124,7 @@ public function testTransWithCachingWithInvalidLocaleOmittingLocale() |
123 | 124 | */ |
124 | 125 | public function testLoadResourcesWithoutCachingOmittingLocale() |
125 | 126 | { |
126 | | - $loader = new \Symfony\Component\Translation\Loader\YamlFileLoader(); |
| 127 | + $loader = new YamlFileLoader(); |
127 | 128 | $resourceFiles = [ |
128 | 129 | 'fr' => [ |
129 | 130 | __DIR__.'/../Fixtures/Resources/translations/messages.fr.yml', |
@@ -171,7 +172,7 @@ public function testGetDefaultLocaleOmittingLocaleWithPsrContainer() |
171 | 172 | */ |
172 | 173 | public function testWarmupOmittingLocale() |
173 | 174 | { |
174 | | - $loader = new \Symfony\Component\Translation\Loader\YamlFileLoader(); |
| 175 | + $loader = new YamlFileLoader(); |
175 | 176 | $resourceFiles = [ |
176 | 177 | 'fr' => [ |
177 | 178 | __DIR__.'/../Fixtures/Resources/translations/messages.fr.yml', |
@@ -259,7 +260,7 @@ public function testTransWithCachingWithInvalidLocale() |
259 | 260 |
|
260 | 261 | public function testLoadResourcesWithoutCaching() |
261 | 262 | { |
262 | | - $loader = new \Symfony\Component\Translation\Loader\YamlFileLoader(); |
| 263 | + $loader = new YamlFileLoader(); |
263 | 264 | $resourceFiles = [ |
264 | 265 | 'fr' => [ |
265 | 266 | __DIR__.'/../Fixtures/Resources/translations/messages.fr.yml', |
@@ -436,7 +437,7 @@ public function getTranslator($loader, $options = [], $loaderFomat = 'loader', $ |
436 | 437 |
|
437 | 438 | public function testWarmup() |
438 | 439 | { |
439 | | - $loader = new \Symfony\Component\Translation\Loader\YamlFileLoader(); |
| 440 | + $loader = new YamlFileLoader(); |
440 | 441 | $resourceFiles = [ |
441 | 442 | 'fr' => [ |
442 | 443 | __DIR__.'/../Fixtures/Resources/translations/messages.fr.yml', |
|
0 commit comments