Merge "Follow-up 3535a5f327: Remove old CSS now caches have expired"
[lhc/web/wiklou.git] / tests / phpunit / includes / auth / ThrottlePreAuthenticationProviderTest.php
index 58982de..0f9b262 100644 (file)
@@ -3,11 +3,12 @@
 namespace MediaWiki\Auth;
 
 use Wikimedia\TestingAccessWrapper;
+use stdClass;
 
 /**
  * @group AuthManager
  * @group Database
- * @covers MediaWiki\Auth\ThrottlePreAuthenticationProvider
+ * @covers \MediaWiki\Auth\ThrottlePreAuthenticationProvider
  */
 class ThrottlePreAuthenticationProviderTest extends \MediaWikiTestCase {
        public function testConstructor() {
@@ -121,7 +122,7 @@ class ThrottlePreAuthenticationProviderTest extends \MediaWikiTestCase {
                $user = \User::newFromName( 'RandomUser' );
                $creator = \User::newFromName( $creatorname );
                if ( $hook ) {
-                       $mock = $this->getMockBuilder( 'stdClass' )
+                       $mock = $this->getMockBuilder( stdClass::class )
                                ->setMethods( [ 'onExemptFromAccountCreationThrottle' ] )
                                ->getMock();
                        $mock->expects( $this->any() )->method( 'onExemptFromAccountCreationThrottle' )