@@ -657,29 +657,29 @@ public function testTranslator()
657
657
$ files = array_map ('realpath ' , $ options ['resource_files ' ]['en ' ]);
658
658
$ ref = new \ReflectionClass ('Symfony\Component\Validator\Validation ' );
659
659
$ this ->assertContains (
660
- strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/validators.en.xlf ' , '/ ' , DIRECTORY_SEPARATOR ),
660
+ strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/validators.en.xlf ' , '/ ' , \ DIRECTORY_SEPARATOR ),
661
661
$ files ,
662
662
'->registerTranslatorConfiguration() finds Validator translation resources '
663
663
);
664
664
$ ref = new \ReflectionClass ('Symfony\Component\Form\Form ' );
665
665
$ this ->assertContains (
666
- strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/validators.en.xlf ' , '/ ' , DIRECTORY_SEPARATOR ),
666
+ strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/validators.en.xlf ' , '/ ' , \ DIRECTORY_SEPARATOR ),
667
667
$ files ,
668
668
'->registerTranslatorConfiguration() finds Form translation resources '
669
669
);
670
670
$ ref = new \ReflectionClass ('Symfony\Component\Security\Core\Security ' );
671
671
$ this ->assertContains (
672
- strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/security.en.xlf ' , '/ ' , DIRECTORY_SEPARATOR ),
672
+ strtr (\dirname ($ ref ->getFileName ()).'/Resources/translations/security.en.xlf ' , '/ ' , \ DIRECTORY_SEPARATOR ),
673
673
$ files ,
674
674
'->registerTranslatorConfiguration() finds Security translation resources '
675
675
);
676
676
$ this ->assertContains (
677
- strtr (__DIR__ .'/Fixtures/translations/test_paths.en.yml ' , '/ ' , DIRECTORY_SEPARATOR ),
677
+ strtr (__DIR__ .'/Fixtures/translations/test_paths.en.yml ' , '/ ' , \ DIRECTORY_SEPARATOR ),
678
678
$ files ,
679
679
'->registerTranslatorConfiguration() finds translation resources in custom paths '
680
680
);
681
681
$ this ->assertContains (
682
- strtr (__DIR__ .'/translations/test_default.en.xlf ' , '/ ' , DIRECTORY_SEPARATOR ),
682
+ strtr (__DIR__ .'/translations/test_default.en.xlf ' , '/ ' , \ DIRECTORY_SEPARATOR ),
683
683
$ files ,
684
684
'->registerTranslatorConfiguration() finds translation resources in default path '
685
685
);
@@ -728,7 +728,7 @@ public function testValidation()
728
728
$ ref = new \ReflectionClass ('Symfony\Component\Form\Form ' );
729
729
$ xmlMappings = array (
730
730
\dirname ($ ref ->getFileName ()).'/Resources/config/validation.xml ' ,
731
- strtr ($ projectDir .'/config/validator/foo.xml ' , '/ ' , DIRECTORY_SEPARATOR ),
731
+ strtr ($ projectDir .'/config/validator/foo.xml ' , '/ ' , \ DIRECTORY_SEPARATOR ),
732
732
);
733
733
734
734
$ calls = $ container ->getDefinition ('validator.builder ' )->getMethodCalls ();
@@ -822,10 +822,10 @@ public function testValidationPaths()
822
822
$ this ->assertCount (3 , $ xmlMappings );
823
823
try {
824
824
// Testing symfony/symfony
825
- $ this ->assertStringEndsWith ('Component ' .DIRECTORY_SEPARATOR .'Form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
825
+ $ this ->assertStringEndsWith ('Component ' .\ DIRECTORY_SEPARATOR .'Form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
826
826
} catch (\Exception $ e ) {
827
827
// Testing symfony/framework-bundle with deps=high
828
- $ this ->assertStringEndsWith ('symfony ' .DIRECTORY_SEPARATOR .'form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
828
+ $ this ->assertStringEndsWith ('symfony ' .\ DIRECTORY_SEPARATOR .'form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
829
829
}
830
830
$ this ->assertStringEndsWith ('TestBundle/Resources/config/validation.xml ' , $ xmlMappings [1 ]);
831
831
@@ -849,10 +849,10 @@ public function testValidationPathsUsingCustomBundlePath()
849
849
850
850
try {
851
851
// Testing symfony/symfony
852
- $ this ->assertStringEndsWith ('Component ' .DIRECTORY_SEPARATOR .'Form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
852
+ $ this ->assertStringEndsWith ('Component ' .\ DIRECTORY_SEPARATOR .'Form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
853
853
} catch (\Exception $ e ) {
854
854
// Testing symfony/framework-bundle with deps=high
855
- $ this ->assertStringEndsWith ('symfony ' .DIRECTORY_SEPARATOR .'form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
855
+ $ this ->assertStringEndsWith ('symfony ' .\ DIRECTORY_SEPARATOR .'form/Resources/config/validation.xml ' , $ xmlMappings [0 ]);
856
856
}
857
857
$ this ->assertStringEndsWith ('CustomPathBundle/Resources/config/validation.xml ' , $ xmlMappings [1 ]);
858
858
@@ -1096,15 +1096,15 @@ public function testSerializerMapping()
1096
1096
1097
1097
foreach ($ expectedLoaders as $ definition ) {
1098
1098
if (is_file ($ arg = $ definition ->getArgument (0 ))) {
1099
- $ definition ->replaceArgument (0 , strtr ($ arg , '/ ' , DIRECTORY_SEPARATOR ));
1099
+ $ definition ->replaceArgument (0 , strtr ($ arg , '/ ' , \ DIRECTORY_SEPARATOR ));
1100
1100
}
1101
1101
$ definition ->setPublic (false );
1102
1102
}
1103
1103
1104
1104
$ loaders = $ container ->getDefinition ('serializer.mapping.chain_loader ' )->getArgument (0 );
1105
1105
foreach ($ loaders as $ loader ) {
1106
1106
if (is_file ($ arg = $ loader ->getArgument (0 ))) {
1107
- $ loader ->replaceArgument (0 , strtr ($ arg , '/ ' , DIRECTORY_SEPARATOR ));
1107
+ $ loader ->replaceArgument (0 , strtr ($ arg , '/ ' , \ DIRECTORY_SEPARATOR ));
1108
1108
}
1109
1109
}
1110
1110
$ this ->assertEquals ($ expectedLoaders , $ loaders );
0 commit comments