X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FFallbackTest.php;h=0a1b7d0ccfe8eade2e69b7c2b02ade1f7ca92a83;hb=829b2e7d0169ba977cec42df6ee83eb60de51045;hp=910b766f7c14c50d69cd26c94900d8cefdf42fee;hpb=bb48a4618edf75a1390057d8bd49ef8a71e9b5af;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/FallbackTest.php b/tests/phpunit/includes/FallbackTest.php index 910b766f7c..0a1b7d0ccf 100644 --- a/tests/phpunit/includes/FallbackTest.php +++ b/tests/phpunit/includes/FallbackTest.php @@ -4,16 +4,16 @@ * @covers Fallback */ class FallbackTest extends MediaWikiTestCase { - public function testFallbackMbstringFunctions() { - if ( !extension_loaded( 'mbstring' ) ) { - $this->markTestSkipped( "The mb_string functions must be installed to test the fallback functions" ); + $this->markTestSkipped( + "The mb_string functions must be installed to test the fallback functions" + ); } $sampleUTF = "Östergötland_coat_of_arms.png"; - //mb_substr + // mb_substr $substr_params = array( array( 0, 0 ), array( 5, -4 ), @@ -35,21 +35,21 @@ class FallbackTest extends MediaWikiTestCase { ); } - //mb_strlen + // mb_strlen $this->assertEquals( mb_strlen( $sampleUTF ), Fallback::mb_strlen( $sampleUTF ), 'Fallback mb_strlen' ); - //mb_str(r?)pos + // mb_str(r?)pos $strpos_params = array( - //array( 'ter' ), - //array( 'Ö' ), - //array( 'Ö', 3 ), - //array( 'oat_', 100 ), - //array( 'c', -10 ), - //Broken for now + // array( 'ter' ), + // array( 'Ö' ), + // array( 'Ö', 3 ), + // array( 'oat_', 100 ), + // array( 'c', -10 ), + // Broken for now ); foreach ( $strpos_params as $param_set ) {