X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FMediaWikiServicesTest.php;h=8fa0cd60ec14f313d0e6decb68c4d19465966f3e;hb=87193d29e9236a9853072f3a43ced3641b956fa8;hp=ab9a47210ee6a1054fb31ca1ae570156922c112e;hpb=c6ad2554f40f8ebbe9e38ac64ea933076f348729;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/MediaWikiServicesTest.php b/tests/phpunit/includes/MediaWikiServicesTest.php index ab9a47210e..8fa0cd60ec 100644 --- a/tests/phpunit/includes/MediaWikiServicesTest.php +++ b/tests/phpunit/includes/MediaWikiServicesTest.php @@ -1,9 +1,9 @@ createMock( MediaWiki\Services\DestructibleService::class ); + $service = $this->createMock( Wikimedia\Services\DestructibleService::class ); $service->expects( $this->once() )->method( 'destroy' ); return $service; } @@ -248,7 +248,7 @@ class MediaWikiServicesTest extends MediaWikiTestCase { $services->defineService( 'Test', function () { - $service = $this->createMock( MediaWiki\Services\DestructibleService::class ); + $service = $this->createMock( Wikimedia\Services\DestructibleService::class ); $service->expects( $this->never() )->method( 'destroy' ); return $service; } @@ -364,7 +364,7 @@ class MediaWikiServicesTest extends MediaWikiTestCase { } ) ); $sortedNames = $names; - sort( $sortedNames ); + natcasesort( $sortedNames ); $this->assertSame( $sortedNames, $names, 'Please keep service getters sorted alphabetically' );