File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/Symfony/Component/Translation/Tests/Command Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,17 @@ public function testLintTargetLanguageIsCaseInsensitive()
105
105
$ this ->assertStringContainsString ('[OK] All 1 XLIFF files contain valid syntax. ' , trim ($ tester ->getDisplay ()));
106
106
}
107
107
108
+ public function testLintSucceedsWhenLocaleInFileAndInTargetLanguageNameUsesDashesInsteadOfUnderscores ()
109
+ {
110
+ $ tester = $ this ->createCommandTester ();
111
+ $ filename = $ this ->createFile ('note ' , 'en-GB ' , 'messages.en-GB.xlf ' );
112
+
113
+ $ tester ->execute (['filename ' => $ filename ], ['decorated ' => false ]);
114
+
115
+ $ this ->assertEquals (0 , $ tester ->getStatusCode ());
116
+ $ this ->assertStringContainsString ('[OK] All 1 XLIFF files contain valid syntax. ' , trim ($ tester ->getDisplay ()));
117
+ }
118
+
108
119
public function testLintFileNotReadable ()
109
120
{
110
121
$ this ->expectException (\RuntimeException::class);
You can’t perform that action at this time.
0 commit comments