Tests: Make phpunit providers "public static".
[lhc/web/wiklou.git] / tests / phpunit / includes / json / ServicesJsonTest.php
index 8f2421a..5051830 100644 (file)
@@ -14,7 +14,7 @@ class ServicesJsonTest extends MediaWikiTestCase {
                if ( !function_exists( 'json_encode' ) ) {
                        $this->markTestIncomplete( 'No PHP json support, unable to test' );
                        return;
-               } elseif( strtolower( json_encode( "\xf0\xa0\x80\x80" ) ) != '"\ud840\udc00"' ) {
+               } elseif ( strtolower( json_encode( "\xf0\xa0\x80\x80" ) ) != '"\ud840\udc00"' ) {
                        $this->markTestIncomplete( 'Have buggy PHP json support, unable to test' );
                        return;
                } else {
@@ -47,7 +47,7 @@ class ServicesJsonTest extends MediaWikiTestCase {
                }
        }
 
-       function provideValuesToEncode() {
+       public static function provideValuesToEncode() {
                $obj = new stdClass();
                $obj->property = 'value';
                $obj->property2 = null;
@@ -71,7 +71,7 @@ class ServicesJsonTest extends MediaWikiTestCase {
                );
        }
 
-       function provideValuesToDecode() {
+       public static function provideValuesToDecode() {
                return array(
                        array( '1', 'basic integer' ),
                        array( '-1', 'negative integer' ),