Merge "Remove trailing spaces from IP addr in Special:DeletedContributions"
[lhc/web/wiklou.git] / tests / phpunit / languages / classes / LanguageSrTest.php
index b64fd67..b846c56 100644 (file)
  *  - Tests for LanguageConverter and Language should probably be separate..
  */
 
-/** Tests for MediaWiki languages/LanguageSr.php */
+/**
+ * @covers LanguageSr
+ * @covers SrConverter
+ */
 class LanguageSrTest extends LanguageClassesTestCase {
        /**
         * @covers LanguageConverter::convertTo
@@ -38,11 +41,11 @@ class LanguageSrTest extends LanguageClassesTestCase {
        public function testMixedConversions() {
                $this->assertCyrillic(
                        'шђчћжШЂЧЋЖ - šđčćž',
-                       'Mostly cyrillic characters'
+                       'Mostly Cyrillic characters'
                );
                $this->assertLatin(
                        'šđč枊ĐČĆŽ - шђчћж',
-                       'Mostly latin characters'
+                       'Mostly Latin characters'
                );
        }
 
@@ -51,11 +54,11 @@ class LanguageSrTest extends LanguageClassesTestCase {
         */
        public function testSameAmountOfLatinAndCyrillicGetConverted() {
                $this->assertConverted(
-                       '4 latin: šđčć | 4 cyrillic: шђчћ',
+                       '4 Latin: šđčć | 4 Cyrillic: шђчћ',
                        'sr-ec'
                );
                $this->assertConverted(
-                       '4 latin: šđčć | 4 cyrillic: шђчћ',
+                       '4 Latin: šđčć | 4 Cyrillic: шђчћ',
                        'sr-el'
                );
        }
@@ -65,7 +68,7 @@ class LanguageSrTest extends LanguageClassesTestCase {
         * @covers LanguageConverter::convertTo
         */
        public function testConversionToCyrillic() {
-               // A simple convertion of Latin to Cyrillic
+               // A simple conversion of Latin to Cyrillic
                $this->assertEquals( 'абвг',
                        $this->convertToCyrillic( 'abvg' )
                );
@@ -73,7 +76,7 @@ class LanguageSrTest extends LanguageClassesTestCase {
                $this->assertEquals( 'ljабnjвгdž',
                        $this->convertToCyrillic( '-{lj}-ab-{nj}-vg-{dž}-' )
                );
-               // A simple convertion of Cyrillic to Cyrillic
+               // A simple conversion of Cyrillic to Cyrillic
                $this->assertEquals( 'абвг',
                        $this->convertToCyrillic( 'абвг' )
                );
@@ -107,11 +110,11 @@ class LanguageSrTest extends LanguageClassesTestCase {
         * @covers LanguageConverter::convertTo
         */
        public function testConversionToLatin() {
-               // A simple convertion of Latin to Latin
+               // A simple conversion of Latin to Latin
                $this->assertEquals( 'abcd',
                        $this->convertToLatin( 'abcd' )
                );
-               // A simple convertion of Cyrillic to Latin
+               // A simple conversion of Cyrillic to Latin
                $this->assertEquals( 'abcd',
                        $this->convertToLatin( 'абцд' )
                );
@@ -208,7 +211,7 @@ class LanguageSrTest extends LanguageClassesTestCase {
 
        /**
         * Verifiy the given Cyrillic text is not converted when using
-        * using the cyrillic variant and converted to Latin when using
+        * using the Cyrillic variant and converted to Latin when using
         * the Latin variant.
         * @param string $text Text to convert
         * @param string $msg Optional message