dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add @covers tags to objectcache tests
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
objectcache
/
BagOStuffTest.php
diff --git
a/tests/phpunit/includes/libs/objectcache/BagOStuffTest.php
b/tests/phpunit/includes/libs/objectcache/BagOStuffTest.php
index
a1afa77
..
4320d80
100644
(file)
--- 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' ) );
}
$this->assertTrue( $this->cache->add( $key, 'test' ) );
}
+ /**
+ * @covers BagOStuff::get
+ */
public function testGet() {
$value = [ 'this' => 'is', 'a' => 'test' ];
public function testGet() {
$value = [ 'this' => 'is', 'a' => 'test' ];
@@
-275,7
+278,7
@@
class BagOStuffTest extends MediaWikiTestCase {
* @covers BagOStuff::trackDuplicateKeys
*/
public function testReportDupes() {
* @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', [
$logger->expects( $this->once() )
->method( 'warning' )
->with( 'Duplicate get(): "{key}" fetched {count} times', [