8000 merged branch aboks/yaml_inlinetest (PR #2602) · barros001/symfony@f8164ec · GitHub
[go: up one dir, main page]

Skip to content

Commit f8164ec

Browse files
committed
merged branch aboks/yaml_inlinetest (PR symfony#2602)
Commits ------- e7acb23 [Yaml][Tests] Fixed missing locale string for Windows platforms which caused test to fail Discussion ---------- [Yaml][Tests] Fixed missing locale string for Windows platforms Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: - On Windows all the locale formats supplied in the test do not work, causing the test to fail. The added locale string works correctly on (at least) Windows 7.
2 parents 3c584f5 + e7acb23 commit f8164ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Symfony/Tests/Component/Yaml/InlineTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public function testDumpNumericValueWithLocale()
4747
$this->markTestSkipped('Your platform does not support locales.');
4848
}
4949

50-
setlocale(LC_ALL, 'fr_FR.UTF-8', 'fr_FR.UTF8', 'fr_FR.utf-8', 'fr_FR.utf8');
50+
setlocale(LC_ALL, 'fr_FR.UTF-8', 'fr_FR.UTF8', 'fr_FR.utf-8', 'fr_FR.utf8', 'French_France.1252');
5151

5252
$this->assertEquals('1.2', Inline::dump(1.2));
53-
$this->assertContains('fr', setlocale(LC_NUMERIC, 0));
53+
$this->assertContains('fr', strtolower(setlocale(LC_NUMERIC, 0)));
5454

5555
setlocale(LC_ALL, $locale);
5656
}

0 commit comments

Comments
 (0)
0