Tests: Make phpunit providers "public static".
[lhc/web/wiklou.git] / tests / phpunit / includes / site / SiteTest.php
index 255e2de..8033784 100644 (file)
@@ -201,7 +201,7 @@ class SiteTest extends MediaWikiTestCase {
                $this->assertEquals( '', $site->getProtocol() );
        }
 
-       public function provideGetPageUrl() {
+       public static function provideGetPageUrl() {
                //NOTE: the assumption that the URL is built by replacing $1
                //      with the urlencoded version of $page
                //      is true for Site but not guaranteed for subclasses.
@@ -244,8 +244,7 @@ class SiteTest extends MediaWikiTestCase {
        protected function assertTypeOrFalse( $type, $value ) {
                if ( $value === false ) {
                        $this->assertTrue( true );
-               }
-               else {
+               } else {
                        $this->assertInternalType( $type, $value );
                }
        }
@@ -265,4 +264,4 @@ class SiteTest extends MediaWikiTestCase {
                $this->assertEquals( $serialization, serialize( $newInstance ) );
        }
 
-}
\ No newline at end of file
+}