From e6071a15c2cf06d484a787d4064bfe3b8817a263 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 8 May 2019 21:41:19 +0200 Subject: [PATCH] fixed test on Windows --- .../Component/Translation/Tests/Extractor/PhpExtractorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Translation/Tests/Extractor/PhpExtractorTest.php b/src/Symfony/Component/Translation/Tests/Extractor/PhpExtractorTest.php index 957d9df290..a6d7c5001c 100644 --- a/src/Symfony/Component/Translation/Tests/Extractor/PhpExtractorTest.php +++ b/src/Symfony/Component/Translation/Tests/Extractor/PhpExtractorTest.php @@ -70,7 +70,7 @@ EOF; $this->assertEquals($expectedCatalogue, $actualCatalogue); - $filename = __DIR__.'/../fixtures/extractor/translation.html.php'; + $filename = str_replace(\DIRECTORY_SEPARATOR, '/', __DIR__).'/../fixtures/extractor/translation.html.php'; $this->assertEquals(['sources' => [$filename.':2']], $catalogue->getMetadata('single-quoted key')); $this->assertEquals(['sources' => [$filename.':43']], $catalogue->getMetadata('other-domain-test-no-params-short-array', 'not_messages')); }