@@ -254,24 +254,24 @@ public function testTranslator()
254
254
$ files = array_map ('realpath ' , $ options ['resource_files ' ]['en ' ]);
255
255
$ ref = new \ReflectionClass ('Symfony\Component\Validator\Validation ' );
256
256
$ 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 ),
258
258
$ files ,
259
259
'->registerTranslatorConfiguration() finds Validator translation resources '
260
260
);
261
261
$ ref = new \ReflectionClass ('Symfony\Component\Form\Form ' );
262
262
$ 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 ),
264
264
$ files ,
265
265
'->registerTranslatorConfiguration() finds Form translation resources '
266
266
);
267
267
$ ref = new \ReflectionClass ('Symfony\Component\Security\Core\Security ' );
268
268
$ 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 ),
270
270
$ files ,
271
271
'->registerTranslatorConfiguration() finds Security translation resources '
272
272
);
273
273
$ this ->assertContains (
274
- strtr (__DIR__ .'/Fixtures/translations/test_paths.en.yml ' , '/ ' , DIRECTORY_SEPARATOR ),
274
+ strtr (__DIR__ .'/Fixtures/translations/test_paths.en.yml ' , '/ ' , \ DIRECTORY_SEPARATOR ),
275
275
$ files ,
276
276
'->registerTranslatorConfiguration() finds translation resources in custom paths '
277
277
);
@@ -396,10 +396,10 @@ public function testValidationPaths()
396
396
$ this ->assertCount (2 , $ xmlMappings );
397
397
try {
398
398
// 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 ]);
400
400
} catch (\Exception $ e ) {
401
401
// 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 ]);
403
403
}
404
404
$ this ->assertStringEndsWith ('TestBundle/Resources/config/validation.xml ' , $ xmlMappings [1 ]);
405
405
@@ -423,10 +423,10 @@ public function testValidationPathsUsingCustomBundlePath()
423
423
424
424
try {
425
425
// 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 ]);
427
427
} catch (\Exception $ e ) {
428
428
// 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 ]);
430
430
}
431
431
$ this ->assertStringEndsWith ('CustomPathBundle/Resources/config/validation.xml ' , $ xmlMappings [1 ]);
432
432
0 commit comments