https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110559

Revision: 110559
Author:   nikerabbit
Date:     2012-02-02 11:14:26 +0000 (Thu, 02 Feb 2012)
Log Message:
-----------
Whitespace cleanup

Modified Paths:
--------------
    trunk/phase3/tests/phpunit/languages/LanguageSrTest.php

Modified: trunk/phase3/tests/phpunit/languages/LanguageSrTest.php
===================================================================
--- trunk/phase3/tests/phpunit/languages/LanguageSrTest.php     2012-02-02 
10:33:42 UTC (rev 110558)
+++ trunk/phase3/tests/phpunit/languages/LanguageSrTest.php     2012-02-02 
11:14:26 UTC (rev 110559)
@@ -12,7 +12,7 @@
  * @file
  */
 
-require_once dirname(dirname(__FILE__)). '/bootstrap.php';
+require_once dirname( dirname( __FILE__ ) ) . '/bootstrap.php';
 
 /** Tests for MediaWiki languages/LanguageTr.php */
 class LanguageSrTest extends MediaWikiTestCase {
@@ -20,7 +20,7 @@
        private $lang;
 
        function setUp() {
-               $this->lang = Language::factory( 'Sr' );
+               $this->lang = Language::factory( 'sr' );
        }
        function tearDown() {
                unset( $this->lang );
@@ -62,7 +62,7 @@
        }
 
        /**
-        * @author Nikola Smolenski 
+        * @author Nikola Smolenski
         */
        function testConversionToCyrillic() {
                $this->assertEquals( 'абвг',
@@ -77,7 +77,7 @@
                $this->assertEquals( 'абвгшђжчћ',
                        $this->convertToCyrillic( 'абвгšđžčć' )
                );
-               //Roman numerals are not converted
+               // Roman numerals are not converted
                $this->assertEquals( 'а I б II в III г IV шђжчћ',
                        $this->convertToCyrillic( 'a I b II v III g IV šđžčć' )
                );
@@ -121,7 +121,7 @@
        }
        /** @dataProvider providePluralTwoForms */
        function testPluralTwoForms( $result, $value ) {
-               $forms =  array( 'one', 'several' );
+               $forms = array( 'one', 'several' );
                $this->assertEquals( $result, $this->lang->convertPlural( 
$value, $forms ) );
        }
        function providePluralTwoForms() {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to