X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2Fobjectcache%2FBagOStuffTest.php;h=4320d80249b06442b939fc8c768205832e1a8add;hp=a1afa777260f2269a34d2b2d6312a1daea5eb790;hb=cf0ebed65ad14dc9a48b0d69e0d77fc5f4f83e92;hpb=84851a43f3ea8ea146c4d82c55fd01b9fa302347 diff --git a/tests/phpunit/includes/libs/objectcache/BagOStuffTest.php b/tests/phpunit/includes/libs/objectcache/BagOStuffTest.php index a1afa77726..4320d80249 100644 --- a/tests/phpunit/includes/libs/objectcache/BagOStuffTest.php +++ b/tests/phpunit/includes/libs/objectcache/BagOStuffTest.php @@ -163,6 +163,9 @@ class BagOStuffTest extends MediaWikiTestCase { $this->assertTrue( $this->cache->add( $key, 'test' ) ); } + /** + * @covers BagOStuff::get + */ public function testGet() { $value = [ 'this' => 'is', 'a' => 'test' ]; @@ -275,7 +278,7 @@ class BagOStuffTest extends MediaWikiTestCase { * @covers BagOStuff::trackDuplicateKeys */ public function testReportDupes() { - $logger = $this->getMock( 'Psr\Log\NullLogger' ); + $logger = $this->createMock( Psr\Log\NullLogger::class ); $logger->expects( $this->once() ) ->method( 'warning' ) ->with( 'Duplicate get(): "{key}" fetched {count} times', [