@@ -254,24 +254,24 @@ public function testTranslator()
254254 $ files = array_map ('realpath ' , $ options ['resource_files ' ]['en ' ]);
255255 $ ref = new \ReflectionClass ('Symfony\Component\Validator\Validation ' );
256256 $ this ->assertContains (
257- strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/validators.en.xlf ' , '/ ' , DIRECTORY_SEPARATOR ),
257+ strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/validators.en.xlf ' , '/ ' , \ DIRECTORY_SEPARATOR ),
258258 $ files ,
259259 '->registerTranslatorConfiguration() finds Validator translation resources '
260260 );
261261 $ ref = new \ReflectionClass ('Symfony\Component\Form\Form ' );
262262 $ this ->assertContains (
263- strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/validators.en.xlf ' , '/ ' , DIRECTORY_SEPARATOR ),
263+ strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/validators.en.xlf ' , '/ ' , \ DIRECTORY_SEPARATOR ),
264264 $ files ,
265265 '->registerTranslatorConfiguration() finds Form translation resources '
266266 );
267267 $ ref = new \ReflectionClass ('Symfony\Component\Security\Core\Security ' );
268268 $ this ->assertContains (
269- strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/security.en.xlf ' , '/ ' , DIRECTORY_SEPARATOR ),
269+ strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/security.en.xlf ' , '/ ' , \ DIRECTORY_SEPARATOR ),
270270 $ files ,
271271 '->registerTranslatorConfiguration() finds Security translation resources '
272272 );
273273 $ this ->assertContains (
274- strtr (__DIR__ .'/Fixtures/translations/test_paths.en.yml ' , '/ ' , DIRECTORY_SEPARATOR ),
274+ strtr (__DIR__ .'/Fixtures/translations/test_paths.en.yml ' , '/ ' , \ DIRECTORY_SEPARATOR ),
275275 $ files ,
276276 '->registerTranslatorConfiguration() finds translation resources in custom paths '
277277 );
@@ -396,10 +396,10 @@ public function testValidationPaths()
396396 $ this ->assertCount (2 , $ xmlMappings );
397397 try {
398398 // Testing symfony/symfony
399- $ this ->assertStringEndsWith ('Component ' .DIRECTORY_SEPARATOR .'Form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
399+ $ this ->assertStringEndsWith ('Component ' .\ DIRECTORY_SEPARATOR .'Form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
400400 } catch (\Exception $ e ) {
401401 // Testing symfony/framework-bundle with deps=high
402- $ this ->assertStringEndsWith ('symfony ' .DIRECTORY_SEPARATOR .'form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
402+ $ this ->assertStringEndsWith ('symfony ' .\ DIRECTORY_SEPARATOR .'form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
403403 }
404404 $ this ->assertStringEndsWith ('TestBundle/Resources/config/validation.xml ' , $ xmlMappings [1 ]);
405405
@@ -423,10 +423,10 @@ public function testValidationPathsUsingCustomBundlePath()
423423
424424 try {
425425 // Testing symfony/symfony
426- $ this ->assertStringEndsWith ('Component ' .DIRECTORY_SEPARATOR .'Form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
426+ $ this ->assertStringEndsWith ('Component ' .\ DIRECTORY_SEPARATOR .'Form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
427427 } catch (\Exception $ e ) {
428428 // Testing symfony/framework-bundle with deps=high
429- $ this ->assertStringEndsWith ('symfony ' .DIRECTORY_SEPARATOR .'form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
429+ $ this ->assertStringEndsWith ('symfony ' .\ DIRECTORY_SEPARATOR .'form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
430430 }
431431 $ this ->assertStringEndsWith ('CustomPathBundle/Resources/config/validation.xml ' , $ xmlMappings [1 ]);
432432
0 commit comments