Index: trunk/phase3/tests/phpunit/languages/LanguageSrTest.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | * @file |
14 | 14 | */ |
15 | 15 | |
16 | | -require_once dirname(dirname(__FILE__)). '/bootstrap.php'; |
| 16 | +require_once dirname( dirname( __FILE__ ) ) . '/bootstrap.php'; |
17 | 17 | |
18 | 18 | /** Tests for MediaWiki languages/LanguageTr.php */ |
19 | 19 | class LanguageSrTest extends MediaWikiTestCase { |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | private $lang; |
22 | 22 | |
23 | 23 | function setUp() { |
24 | | - $this->lang = Language::factory( 'Sr' ); |
| 24 | + $this->lang = Language::factory( 'sr' ); |
25 | 25 | } |
26 | 26 | function tearDown() { |
27 | 27 | unset( $this->lang ); |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | | - * @author Nikola Smolenski |
| 66 | + * @author Nikola Smolenski |
67 | 67 | */ |
68 | 68 | function testConversionToCyrillic() { |
69 | 69 | $this->assertEquals( 'абвг', |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | $this->assertEquals( 'абвгшђжчћ', |
79 | 79 | $this->convertToCyrillic( 'абвгšđžčć' ) |
80 | 80 | ); |
81 | | - //Roman numerals are not converted |
| 81 | + // Roman numerals are not converted |
82 | 82 | $this->assertEquals( 'а I б II в III г IV шђжчћ', |
83 | 83 | $this->convertToCyrillic( 'a I b II v III g IV šđžčć' ) |
84 | 84 | ); |
— | — | @@ -121,7 +121,7 @@ |
122 | 122 | } |
123 | 123 | /** @dataProvider providePluralTwoForms */ |
124 | 124 | function testPluralTwoForms( $result, $value ) { |
125 | | - $forms = array( 'one', 'several' ); |
| 125 | + $forms = array( 'one', 'several' ); |
126 | 126 | $this->assertEquals( $result, $this->lang->convertPlural( $value, $forms ) ); |
127 | 127 | } |
128 | 128 | function providePluralTwoForms() { |