X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FMWTimestampTest.php;h=9735eebd4baed359422bd6d54b2f7647d63bc4fa;hp=4bca4788acd80915f512bd1c70f9dffb76928e9f;hb=a2c8c2969420a0f150c03f76e3a0bf9028fcda43;hpb=314058b0d0b8aad36b82ff0b7df2c52c89a475d1 diff --git a/tests/phpunit/includes/MWTimestampTest.php b/tests/phpunit/includes/MWTimestampTest.php index 4bca4788ac..9735eebd4b 100644 --- a/tests/phpunit/includes/MWTimestampTest.php +++ b/tests/phpunit/includes/MWTimestampTest.php @@ -23,7 +23,7 @@ class MWTimestampTest extends MediaWikiLangTestCase { $expectedOutput, // The expected output $desc // Description ) { - $user = $this->getMock( 'User' ); + $user = $this->createMock( User::class ); $user->expects( $this->any() ) ->method( 'getOption' ) ->with( 'timecorrection' ) @@ -156,7 +156,7 @@ class MWTimestampTest extends MediaWikiLangTestCase { $expectedOutput, // The expected output $desc // Description ) { - $user = $this->getMock( 'User' ); + $user = $this->createMock( User::class ); $user->expects( $this->any() ) ->method( 'getOption' ) ->with( 'timecorrection' )