MediaWiki REL1_30
LanguageArqTest.php
Go to the documentation of this file.
1<?php
15 public function testFormatNum( $result, $value ) {
16 $this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
17 }
18
19 public static function provideNumber() {
20 return [
21 [ '1.234.567', '1234567' ],
22 [ '-12,89', -12.89 ],
23 ];
24 }
25
26}
Tests for MediaWiki languages/LanguageArq.php.
testFormatNum( $result, $value)
provideNumber Language::formatNum
Helping class to run tests using a clean language instance.