X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fobjectcache%2FMemcachedBagOStuffTest.php;h=432754b6022bac6a722bfbda5c13b052dab699d2;hp=9cb2f9493b3a4939597de4bf9fe7bf71ce1bc711;hb=faf7cc4a09848c538320bd2b9067b1a77c0a0183;hpb=4c96ff5203daefc5c87cb2aec6f9ba1acac3b6cb diff --git a/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php b/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php index 9cb2f9493b..432754b602 100644 --- a/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php +++ b/tests/phpunit/includes/objectcache/MemcachedBagOStuffTest.php @@ -70,6 +70,7 @@ class MemcachedBagOStuffTest extends MediaWikiTestCase { /** * @dataProvider validKeyProvider + * @covers MemcachedBagOStuff::validateKeyEncoding */ public function testValidateKeyEncoding( $key ) { $this->assertSame( $key, $this->cache->validateKeyEncoding( $key ) ); @@ -86,9 +87,10 @@ class MemcachedBagOStuffTest extends MediaWikiTestCase { /** * @dataProvider invalidKeyProvider + * @covers MemcachedBagOStuff::validateKeyEncoding */ public function testValidateKeyEncodingThrowsException( $key ) { - $this->setExpectedException( 'Exception' ); + $this->setExpectedException( Exception::class ); $this->cache->validateKeyEncoding( $key ); }