8000 [FrameworkBundle] fixed *FrameworkExtensionTest::testTranslator fail … · meistro2k/symfony@85a53c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 85a53c1

Browse files
committed
[FrameworkBundle] fixed *FrameworkExtensionTest::testTranslator fail on Windows on master branch
1 parent a1e6cfb commit 85a53c1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,15 @@ public function testTranslator()
182182
}
183183
}
184184

185-
$files = array_map(function($resource) use ($resources) { return str_replace(realpath(__DIR__.'/../../../../..').'/', '', realpath($resource[1])); }, $resources);
185+
$rootDirectory = str_replace('/', DIRECTORY_SEPARATOR, realpath(__DIR__.'/../../../../..').'/');
186+
$files = array_map(function($resource) use ($rootDirectory, $resources) { return str_replace($rootDirectory, '', realpath($resource[1])); }, $resources);
186187
$this->assertContains(
187-
'Symfony/Component/Validator/Resources/translations/validators.en.xlf',
188+
str_replace('/', DIRECTORY_SEPARATOR, 'Symfony/Component/Validator/Resources/translations/validators.en.xlf'),
188189
$files,
189190
'->registerTranslatorConfiguration() finds Validator translation resources'
190191
);
191192
$this->assertContains(
192-
'Symfony/Component/Form/Resources/translations/validators.en.xlf',
193+
str_replace('/', DIRECTORY_SEPARATOR, 'Symfony/Component/Form/Resources/translations/validators.en.xlf'),
193194
$files,
194195
'->registerTranslatorConfiguration() finds Form translation resources'
195196
);

0 commit comments

Comments
 (0)
0