Underscore are not valid in language code
[lhc/web/wiklou.git] / tests / phpunit / languages / LanguageBe_taraskTest.php
1 <?php
2 require_once dirname(dirname(__FILE__)). '/bootstrap.php';
3
4 class LanguageBeTaraskTest extends MediaWikiTestCase {
5 private $lang;
6
7 function setUp() {
8 $this->lang = Language::factory( 'Be-tarask' );
9 }
10 function tearDown() {
11 unset( $this->lang );
12 }
13
14 /** see bug 23156 & r64981 */
15 function testSearchRightSingleQuotationMarkAsApostroph() {
16 $this->assertEquals(
17 "'",
18 $this->lang->normalizeForSearch( '’' ),
19 'bug 23156: U+2019 conversion to U+0027'
20 );
21 }
22 /** see bug 23156 & r64981 */
23 function testCommafy() {
24 $this->assertEquals( '1,234,567', $this->lang->commafy( '1234567' ) );
25 $this->assertEquals( '12,345', $this->lang->commafy( '12345' ) );
26 }
27 /** see bug 23156 & r64981 */
28 function testDoesNotCommafyFourDigitsNumber() {
29 $this->assertEquals( '1234', $this->lang->commafy( '1234' ) );
30 }
31 }